On a headless Ubuntu 16.04 machine I'm running I have increasing package corruption issues that I cannot resolve.
Similar issues are reported elsewhere but solutions offered are not working. The most common recommendation is to try apt-get clean and apt-get install -f. It's not helping.
I have tried manually cleaning out /var/cache/apt/archives, without luck.
Today the problem got even more severe, with the message
Code:
dpkg-deb (subprocess): decompressing archive member: internal bzip2 read error: 'DATA_ERROR'
Again, solutions offered at various places did not help.
Now when I try
Code:
sudo apt-get clean
sudo apt-get install -f
I get
Code:
Unpacking linux-image-4.4.0-104-generic (4.4.0-104.127) ...
dpkg: error processing archive /var/cache/apt/archives/linux-image-4.4.0-104-generic_4.4.0-104.127_amd64.deb (--unpack):
corrupted filesystem tarfile - corrupted package archive
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.4.0-104-generic /boot/vmlinuz-4.4.0-104-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.4.0-104-generic /boot/vmlinuz-4.4.0-104-generic
Errors were encountered while processing:
/var/cache/apt/archives/linux-image-4.4.0-104-generic_4.4.0-104.127_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
user@server:/var/cache/apt/archives$ ls
Short of a rebuild, anyone have a suggestion for a quicker fix that might work?
Thanks