Corrupted package archive Date 10.08.2011

Asked by Dean Young

Problem - Synaptic wouldn't update. Browsers (Firefox & Chrome) keep crashing - not sure if it's related? Synaptic generated the following after failed update:

E: /var/cache/apt/archives/linux-image-2.6.32-33-generic_2.6.32-33.72_i386.deb: corrupted filesystem tarfile - corrupted package archive

Ran this script for the second time after problem re-ocurred:

dean@dean:~$ sudo fuser -vvv /var/lib/dpkg/lock
[sudo] password for dean:
dean@dean:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=10.04
DISTRIB_CODENAME=lucid
DISTRIB_DESCRIPTION="Ubuntu 10.04.3 LTS"
dean@dean:~$ uname -a
Linux dean 2.6.32-33-generic #71-Ubuntu SMP Wed Jul 20 17:30:40 UTC 2011 i686 GNU/Linux
dean@dean:~$ sudo rm /var/lib/apt/lists/lock
dean@dean:~$ sudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup
dean@dean:~$ sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status
dean@dean:~$ sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
dean@dean:~$ sudo rm -rf /var/lib/dpkg/updates/*
dean@dean:~$ sudo rm -rf /var/lib/apt/lists
dean@dean:~$ sudo rm /var/cache/apt/*.bin
dean@dean:~$ sudo mkdir /var/lib/apt/lists
dean@dean:~$ sudo mkdir /var/lib/apt/lists/partial
dean@dean:~$ LANG=C;sudo apt-get clean
dean@dean:~$ LANG=C;sudo apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
dean@dean:~$ LANG=C;sudo apt-get --purge autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
dean@dean:~$ LANG=C;sudo apt-get update -o APT::Cache-Limit=25165824
Get:1 http://archive.ubuntu.com lucid Release.gpg [189B]
Get:2 http://archive.ubuntu.com lucid-updates Release.gpg [198B]
Get:3 http://ppa.launchpad.net lucid Release.gpg [316B]
Get:4 http://archive.canonical.com lucid Release.gpg [198B]
Get:5 http://archive.ubuntu.com lucid-security Release.gpg [198B]
Get:6 http://archive.ubuntu.com lucid Release [57.2kB]
Get:7 http://ppa.launchpad.net lucid Release.gpg [316B]
Get:8 http://download.virtualbox.org lucid Release.gpg [197B]
Get:9 http://archive.ubuntu.com lucid-updates Release [44.7kB]
Get:10 http://archive.canonical.com lucid Release [8215B]
Get:11 http://ppa.launchpad.net lucid Release [14.0kB]
Get:12 http://dl.google.com stable Release.gpg [198B]
Get:13 http://archive.canonical.com lucid/partner Packages [14.7kB]
Get:14 http://archive.ubuntu.com lucid-security Release [44.7kB]
Get:15 http://download.virtualbox.org lucid Release [5447B]
Get:16 http://ppa.launchpad.net lucid Release [14.0kB]
Get:17 http://dl.google.com stable Release [1347B]
Get:18 http://archive.ubuntu.com lucid/main Packages [1386kB]
Get:19 http://download.virtualbox.org lucid/non-free Packages [1320B]
Get:20 http://dl.google.com stable/main Packages [1182B]
Get:21 http://ppa.launchpad.net lucid/main Packages [3664B]
Get:22 http://ppa.launchpad.net lucid/main Sources [1644B]
Get:23 http://ppa.launchpad.net lucid/main Packages [581B]
Get:24 http://archive.ubuntu.com lucid/main Packages [1386kB]
Get:25 http://archive.ubuntu.com lucid/restricted Packages [6208B]
Get:26 http://archive.ubuntu.com lucid/main Sources [659kB]
Get:27 http://archive.ubuntu.com lucid/main Sources [659kB]
Get:28 http://archive.ubuntu.com lucid/restricted Sources [3775B]
Get:29 http://archive.ubuntu.com lucid/universe Packages [5448kB]
Get:30 http://archive.ubuntu.com lucid/universe Sources [3165kB]
Get:31 http://archive.ubuntu.com lucid/universe Sources [3165kB]
Get:32 http://archive.ubuntu.com lucid/multiverse Packages [180kB]
Get:33 http://archive.ubuntu.com lucid/multiverse Sources [119kB]
Get:34 http://archive.ubuntu.com lucid-updates/main Packages [511kB]
Get:35 http://archive.ubuntu.com lucid-updates/restricted Packages [3240B]
Get:36 http://archive.ubuntu.com lucid-updates/main Sources [199kB]
Get:37 http://archive.ubuntu.com lucid-updates/restricted Sources [1443B]
Get:38 http://archive.ubuntu.com lucid-updates/universe Packages [221kB]
Get:39 http://archive.ubuntu.com lucid-updates/universe Sources [79.0kB]
Get:40 http://archive.ubuntu.com lucid-updates/multiverse Packages [10.5kB]
Get:41 http://archive.ubuntu.com lucid-updates/multiverse Sources [5061B]
Get:42 http://archive.ubuntu.com lucid-security/main Packages [203kB]
Get:43 http://archive.ubuntu.com lucid-security/restricted Packages [14B]
Get:44 http://archive.ubuntu.com lucid-security/main Sources [61.5kB]
Get:45 http://archive.ubuntu.com lucid-security/restricted Sources [14B]
Get:46 http://archive.ubuntu.com lucid-security/universe Packages [79.9kB]
Get:47 http://archive.ubuntu.com lucid-security/universe Sources [24.2kB]
Get:48 http://archive.ubuntu.com lucid-security/multiverse Packages [4563B]
Get:49 http://archive.ubuntu.com lucid-security/multiverse Sources [1757B]
Fetched 11.8MB in 6min 44s (29.2kB/s)
Reading package lists... Done
W: Duplicate sources.list entry http://download.virtualbox.org/virtualbox/debian/ lucid/non-free Packages (/var/lib/apt/lists/download.virtualbox.org_virtualbox_debian_dists_lucid_non-free_binary-i386_Packages)
W: You may want to run apt-get update to correct these problems
dean@dean:~$ sudo dpkg --clear-avail
dean@dean:~$ sudo dpkg --configure -a
dean@dean:~$ LANG=C;sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
dean@dean:~$ LANG=C;sudo apt-get --fix-missing install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
dean@dean:~$ LANG=C;sudo apt-get update -o APT::Cache-Limit=25165824 && sudo apt-get dist-upgrade
Hit http://archive.ubuntu.com lucid Release.gpg
Hit http://archive.ubuntu.com lucid-updates Release.gpg
Hit http://archive.ubuntu.com lucid-security Release.gpg
Hit http://archive.ubuntu.com lucid Release
Hit http://archive.ubuntu.com lucid-updates Release
Hit http://archive.ubuntu.com lucid-security Release
Hit http://archive.canonical.com lucid Release.gpg
Hit http://archive.ubuntu.com lucid/main Packages
Hit http://archive.ubuntu.com lucid/restricted Packages
Hit http://ppa.launchpad.net lucid Release.gpg
Hit http://archive.ubuntu.com lucid/main Sources
Hit http://archive.ubuntu.com lucid/restricted Sources
Hit http://ppa.launchpad.net lucid Release.gpg
Hit http://archive.ubuntu.com lucid/universe Packages
Hit http://archive.ubuntu.com lucid/universe Sources
Hit http://download.virtualbox.org lucid Release.gpg
Hit http://archive.ubuntu.com lucid/multiverse Packages
Hit http://archive.ubuntu.com lucid/multiverse Sources
Hit http://archive.ubuntu.com lucid-updates/main Packages
Hit http://archive.ubuntu.com lucid-updates/restricted Packages
Hit http://archive.canonical.com lucid Release
Hit http://archive.ubuntu.com lucid-updates/main Sources
Hit http://archive.ubuntu.com lucid-updates/restricted Sources
Hit http://archive.ubuntu.com lucid-updates/universe Packages
Hit http://archive.ubuntu.com lucid-updates/universe Sources
Hit http://ppa.launchpad.net lucid Release
Hit http://archive.ubuntu.com lucid-updates/multiverse Packages
Hit http://archive.ubuntu.com lucid-updates/multiverse Sources
Hit http://archive.ubuntu.com lucid-security/main Packages
Hit http://archive.ubuntu.com lucid-security/restricted Packages
Hit http://download.virtualbox.org lucid Release
Hit http://archive.ubuntu.com lucid-security/main Sources
Hit http://archive.ubuntu.com lucid-security/restricted Sources
Hit http://archive.canonical.com lucid/partner Packages
Hit http://archive.ubuntu.com lucid-security/universe Packages
Hit http://archive.ubuntu.com lucid-security/universe Sources
Hit http://archive.ubuntu.com lucid-security/multiverse Packages
Hit http://archive.ubuntu.com lucid-security/multiverse Sources
Hit http://ppa.launchpad.net lucid Release
Hit http://download.virtualbox.org lucid/non-free Packages
Hit http://ppa.launchpad.net lucid/main Packages
Hit http://ppa.launchpad.net lucid/main Sources
Hit http://ppa.launchpad.net lucid/main Packages
Get:1 http://dl.google.com stable Release.gpg [198B]
Get:2 http://dl.google.com stable Release [1347B]
Get:3 http://dl.google.com stable/main Packages [1182B]
Fetched 2727B in 1min 10s (39B/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  linux-image-2.6.32-33-generic
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 31.5MB of archives.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://archive.ubuntu.com/ubuntu/ lucid-updates/main linux-image-2.6.32-33-generic 2.6.32-33.72 [31.5MB]
Fetched 31.5MB in 20min 19s (25.9kB/s)
(Reading database ... 316526 files and directories currently installed.)
Preparing to replace linux-image-2.6.32-33-generic 2.6.32-33.71 (using .../linux-image-2.6.32-33-generic_2.6.32-33.72_i386.deb) ...
Done.
Unpacking replacement linux-image-2.6.32-33-generic ...
Running postrm hook script /usr/sbin/update-grub.
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.32-33-generic
Found initrd image: /boot/initrd.img-2.6.32-33-generic
Found linux image: /boot/vmlinuz-2.6.32-32-generic
Found initrd image: /boot/initrd.img-2.6.32-32-generic
Found linux image: /boot/vmlinuz-2.6.32-31-generic
Found initrd image: /boot/initrd.img-2.6.32-31-generic
Found linux image: /boot/vmlinuz-2.6.32-30-generic
Found initrd image: /boot/initrd.img-2.6.32-30-generic
Found linux image: /boot/vmlinuz-2.6.32-29-generic
Found initrd image: /boot/initrd.img-2.6.32-29-generic
Found linux image: /boot/vmlinuz-2.6.32-28-generic
Found initrd image: /boot/initrd.img-2.6.32-28-generic
Found linux image: /boot/vmlinuz-2.6.32-27-generic
Found initrd image: /boot/initrd.img-2.6.32-27-generic
Found linux image: /boot/vmlinuz-2.6.32-26-generic
Found initrd image: /boot/initrd.img-2.6.32-26-generic
Found linux image: /boot/vmlinuz-2.6.32-21-generic
Found initrd image: /boot/initrd.img-2.6.32-21-generic
Found memtest86+ image: /boot/memtest86+.bin
done
Setting up linux-image-2.6.32-33-generic (2.6.32-33.72) ...
Running depmod.
update-initramfs: Generating /boot/initrd.img-2.6.32-33-generic
Not updating initrd symbolic links since we are being updated/reinstalled
(2.6.32-33.71 was configured last, according to dpkg)
Not updating image symbolic links since we are being updated/reinstalled
(2.6.32-33.71 was configured last, according to dpkg)
Running postinst hook script /usr/sbin/update-grub.
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.32-33-generic
Found initrd image: /boot/initrd.img-2.6.32-33-generic
Found linux image: /boot/vmlinuz-2.6.32-32-generic
Found initrd image: /boot/initrd.img-2.6.32-32-generic
Found linux image: /boot/vmlinuz-2.6.32-31-generic
Found initrd image: /boot/initrd.img-2.6.32-31-generic
Found linux image: /boot/vmlinuz-2.6.32-30-generic
Found initrd image: /boot/initrd.img-2.6.32-30-generic
Found linux image: /boot/vmlinuz-2.6.32-29-generic
Found initrd image: /boot/initrd.img-2.6.32-29-generic
Found linux image: /boot/vmlinuz-2.6.32-28-generic
Found initrd image: /boot/initrd.img-2.6.32-28-generic
Found linux image: /boot/vmlinuz-2.6.32-27-generic
Found initrd image: /boot/initrd.img-2.6.32-27-generic
Found linux image: /boot/vmlinuz-2.6.32-26-generic
Found initrd image: /boot/initrd.img-2.6.32-26-generic
Found linux image: /boot/vmlinuz-2.6.32-21-generic
Found initrd image: /boot/initrd.img-2.6.32-21-generic
Found memtest86+ image: /boot/memtest86+.bin
done
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/dkms 2.6.32-33-generic /boot/vmlinuz-2.6.32-33-generic
run-parts: executing /etc/kernel/postinst.d/nvidia-common 2.6.32-33-generic /boot/vmlinuz-2.6.32-33-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 2.6.32-33-generic /boot/vmlinuz-2.6.32-33-generic

dean@dean:~$

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu synaptic Edit question
Assignee:
No assignee Edit question
Solved by:
Dean Young
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

I suggest you log a bug. I also recommend you uninstall the old kernels to save space. You have a LOT of unused kernels there which can be removed and you will be able to used the space for useful things

Revision history for this message
Eliah Kagan (degeneracypressure) said :
#2

Before reporting this or other bugs in Ubuntu, please make sure to read https://help.ubuntu.com/community/ReportingBugs carefully.

However, from the Terminal output you gave us, it looks like the problem may be solved. Do you still have problems in Synaptic?

Also, your browser crashing problem is probably totally unrelated. I recommend that you post a new question about that.

Revision history for this message
Dean Young (deandirect) said :
#3

Hi Andrew

Thanks - still some strange stuff happening. A few moments ago the system crashed and gave a message saying it was running in low graphics mode. Just a few questions:

1. How do I log a bug?
2. How do I remove the old kernels?

Regards
Dean

Revision history for this message
Eliah Kagan (degeneracypressure) said :
#4

"1. How do I log a bug?"

I'm guessing you were composing your post at the time that I submitted mine. My post (#2 as numbered at https://answers.launchpad.net/ubuntu/+source/synaptic/+question/167529) contains a link explaining how to do this. However, I would encourage you to provide the information I have requested, as it is unclear from what you've said so far if this is really a bug.

"2. How do I remove the old kernels?"

http://jaypeeonline.net/tips-tricks/howto-remove-old-ubuntu-kernels/

It's important to keep the kernel you are currently running, and it is a good idea to keep whatever kernel besides that one is the most recent, too, so that you have an alternate kernel to fall back on if there is a problem.

Revision history for this message
Dean Young (deandirect) said :
#5

Removed old kernels, but made a mistake and removed the next to latest one in error. Synaptic then gave me this:

E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
E: _cache->open() failed, please report.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#6

Whatis the output of:

uname -a

Thanks

Revision history for this message
Eliah Kagan (degeneracypressure) said :
#7

"Removed old kernels, but made a mistake and removed the next to latest one in error."

You can reinstall it in Synaptic. If you need help with this, please let us know. Please also provide the information actionparsnip has just requested. This will help us to determine if the kernel you removed is the one you are currently running, or not.

Revision history for this message
Dean Young (deandirect) said :
#8

Hi Eliah

Output is:

dean@dean:~$ uname -a
Linux dean 2.6.32-33-generic #72-Ubuntu SMP Fri Jul 29 21:08:37 UTC 2011 i686 GNU/Linux
dean@dean:~$

I'm really battling with browser crashes (mozilla & chrome) as well as synaptic not launching, Open office files not loading, etc. I am also running Virtualbox and found a duplicate file, which seems part of the problem. Sometimes, hard reboots solve the problem temporarily. Last night I launched a system check which ran for over 12 hours without resolving or generating a report. There seems to be a system-wide software problem. I'm a newbie and not really sure which way to go at the moment. Chrome browser working at the moment.

Regards
Dean

Revision history for this message
Eliah Kagan (degeneracypressure) said :
#9

Was linux-image-2.6.32-33-generic one of the packages removed? If so, you can reinstall it. If not, you should be OK--the kernel you are currently running is installed and available to be booted from, next time you boot your computer.

Are you still getting "corrupted package archive" messages?

Revision history for this message
Dean Young (deandirect) said :
#10