0

E: Sub-process /usr/bin/dpkg returned an error code (2)

hi I was trying to install a package on ubuntu & i am facing the Following Problem

dpkg: error: cannot scan updates directory `/var/lib/dpkg/updates/': No such file or directory
E: Sub-process /usr/bin/dpkg returned an error code (2)

How could this be solved?

Dpkg Ubuntu Add a comment
isaiah
asked Dec 15 2018

Answer

0

It seems something Must have terrible to the directory

To fix this problem you need to do the following steps

#mkdir /var/lib/dpkg/updates
#apt-get update
#apt-get upgrade

Now try installing a package now

Add a comment
linuxhelp
asked Dec 19 2018
edited Dec 19 2018
Post your Answer