Corrupted package archive Date 10.08.2011
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/
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_
DISTRIB_
DISTRIB_
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/
dean@dean:~$ sudo cp -arf /var/lib/dpkg /var/lib/
dean@dean:~$ sudo cp /var/lib/
dean@dean:~$ sudo cp /var/lib/
dean@dean:~$ sudo rm -rf /var/lib/
dean@dean:~$ sudo rm -rf /var/lib/apt/lists
dean@dean:~$ sudo rm /var/cache/
dean@dean:~$ sudo mkdir /var/lib/apt/lists
dean@dean:~$ sudo mkdir /var/lib/
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-
Get:1 http://
Get:2 http://
Get:3 http://
Get:4 http://
Get:5 http://
Get:6 http://
Get:7 http://
Get:8 http://
Get:9 http://
Get:10 http://
Get:11 http://
Get:12 http://
Get:13 http://
Get:14 http://
Get:15 http://
Get:16 http://
Get:17 http://
Get:18 http://
Get:19 http://
Get:20 http://
Get:21 http://
Get:22 http://
Get:23 http://
Get:24 http://
Get:25 http://
Get:26 http://
Get:27 http://
Get:28 http://
Get:29 http://
Get:30 http://
Get:31 http://
Get:32 http://
Get:33 http://
Get:34 http://
Get:35 http://
Get:36 http://
Get:37 http://
Get:38 http://
Get:39 http://
Get:40 http://
Get:41 http://
Get:42 http://
Get:43 http://
Get:44 http://
Get:45 http://
Get:46 http://
Get:47 http://
Get:48 http://
Get:49 http://
Fetched 11.8MB in 6min 44s (29.2kB/s)
Reading package lists... Done
W: Duplicate sources.list entry http://
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-
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Get:1 http://
Get:2 http://
Get:3 http://
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-
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://
Fetched 31.5MB in 20min 19s (25.9kB/s)
(Reading database ... 316526 files and directories currently installed.)
Preparing to replace linux-image-
Done.
Unpacking replacement linux-image-
Running postrm hook script /usr/sbin/
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found memtest86+ image: /boot/memtest86
done
Setting up linux-image-
Running depmod.
update-initramfs: Generating /boot/initrd.
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/
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found memtest86+ image: /boot/memtest86
done
Examining /etc/kernel/
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
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: