I am running Ubuntu 18.04 and every time I run sudo apt-get upgrade
, I get this error:
dpkg-deb: error: tar subprocess returned error exit status 1
dpkg: error processing archive /var/cache/apt/archives/bsdutils_1%3a2.31.1-0.4ubuntu3.4_amd64.deb (--unpack):
dpkg-deb --control subprocess returned error exit status 2
Errors were encountered while processing:
/var/cache/apt/archives/bsdutils_1%3a2.31.1-0.4ubuntu3.4_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
In addition to this, when I try to install any .deb
file with sudo apt install
. I get this error:
Reading package lists... Error!
E: Sub-process Popen returned an error code (2)
E: Encountered a section with no Package: header
E: Problem with MergeList /home/paras/Downloads/code_1.37.1-1565886362_amd64.deb
E: The package lists or status file could not be parsed or opened.
Please help.