An update failed, now i have missing packages.
I was updating my system when the update-manager failed to download updates. The index was broken, but it was easily repaired. I downloaded no packages, however my system is reporting falsely that all 61 updates have been installed. They have not. How can I get my package database to agree with the actual list of installed packages on my computer? Is there a way to rebuild this database?
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Manfred Hampl
- Solved:
- Last query:
- Last reply:
Revision history for this message
|
#1 |
Please follow the instructions as given in https:/
(With the one exception, that you should not open a new question but paste the output into a new message of this questions thread.)
Revision history for this message
|
#2 |
While this installed one (gwibber) package from last night that hung on download, and it installed all the updates from this morning. It failed to install all the other 60 some missing updates from last night. My system reports that all the updates are installed, yet I know that they are not because none of them ever downloaded. Here is the log:
ck@Inspiron:~$ sudo fuser -vvv /var/lib/dpkg/lock
[sudo] password for ck:
ck@Inspiron:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_
DISTRIB_
DISTRIB_
ck@Inspiron:~$ uname -a
Linux Inspiron 2.6.38-8-generic #41-Ubuntu SMP Tue Apr 5 19:29:52 UTC 2011 i686 i686 i386 GNU/Linux
ck@Inspiron:~$ sudo rm /var/lib/
ck@Inspiron:~$ sudo cp -arf /var/lib/dpkg /var/lib/
ck@Inspiron:~$ sudo cp /var/lib/
ck@Inspiron:~$ sudo cp /var/lib/
ck@Inspiron:~$ sudo rm -rf /var/lib/
ck@Inspiron:~$ sudo rm -rf /var/lib/apt/lists
ck@Inspiron:~$ sudo rm /var/cache/
ck@Inspiron:~$ sudo mkdir /var/lib/apt/lists
ck@Inspiron:~$ sudo mkdir /var/lib/
ck@Inspiron:~$ LANG=C;sudo apt-get clean
ck@Inspiron:~$ LANG=C;sudo apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
ck@Inspiron:~$ 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.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up gwibber-
Processing triggers for python-central ...
ck@Inspiron:~$ LANG=C;sudo apt-get update -o APT::Cache-
Ign http://
Ign http://
Ign http://
Ign http://
Get:1 http://
Get:2 http://
Get:3 http://
Get:4 http://
Get:5 http://
Get:6 http://
Get:7 http://
Ign http://
Get:8 http://
Get:9 http://
Get:10 http://
Ign http://
Get:11 http://
Get:12 http://
Get:13 http://
Get:14 http://
Get:15 http://
Get:16 http://
Get:17 http://
Ign http://
Ign http://
Ign http://
Ign 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://
Ign http://
Ign http://
Ign http://
Ign 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://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Fetched 13.3 MB in 31s (427 kB/s)
Reading package lists... Done
ck@Inspiron:~$ sudo dpkg --clear-avail
ck@Inspiron:~$ sudo dpkg --configure -a
Processing triggers for python-support ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
ck@Inspiron:~$ 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 19 not upgraded.
ck@Inspiron:~$ 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 19 not upgraded.
ck@Inspiron:~$ LANG=C;sudo apt-get update -o APT::Cache-
Ign http://
Ign http://
Ign http://
Ign 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://
Ign http://
Hit http://
Hit http://
Ign http://
Ign http://
Ign http://
Ign http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Ign http://
Ign http://
Ign http://
Ign http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
apt apt-transport-https apt-utils aptdaemon aptdaemon-data
gnome-
libwebkitgtk-
python-
python-
19 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 10.6 MB of archives.
After this operation, 455 kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
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://
Fetched 10.6 MB in 8s (1199 kB/s)
Preconfiguring packages ...
(Reading database ... 172381 files and directories currently installed.)
Preparing to replace libudev0 167-0ubuntu2 (using .../libudev0_
Unpacking replacement libudev0 ...
Preparing to replace libgudev-1.0-0 1:167-0ubuntu2 (using .../libgudev-
Unpacking replacement libgudev-1.0-0 ...
Preparing to replace apt 0.8.13.2ubuntu1 (using .../apt_
Unpacking replacement apt ...
Processing triggers for man-db ...
Setting up apt (0.8.13.2ubuntu2) ...
Installing new version of config file /etc/cron.daily/apt ...
gpg: key 437D05B5: "Ubuntu Archive Automatic Signing Key <email address hidden>" not changed
gpg: key FBB75451: "Ubuntu CD Image Automatic Signing Key <email address hidden>" not changed
gpg: Total number processed: 2
gpg: unchanged: 2
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
(Reading database ... 172381 files and directories currently installed.)
Preparing to replace apt-utils 0.8.13.2ubuntu1 (using .../apt-
Unpacking replacement apt-utils ...
Preparing to replace procps 1:3.2.8-10ubuntu1 (using .../procps_
stop: Unknown instance:
Unpacking replacement procps ...
Preparing to replace udev 167-0ubuntu2 (using .../udev_
Adding 'diversion of /sbin/udevadm to /sbin/udevadm.
Unpacking replacement udev ...
Preparing to replace apt-transport-https 0.8.13.2ubuntu1 (using .../apt-
Unpacking replacement apt-transport-https ...
Preparing to replace libwebkitgtk-
Unpacking replacement libwebkitgtk-
Preparing to replace libwebkitgtk-1.0-0 1.3.12-0ubuntu3 (using .../libwebkitgt
Unpacking replacement libwebkitgtk-1.0-0 ...
Preparing to replace obex-data-server 0.4.6~svn201102
Unpacking replacement obex-data-server ...
Preparing to replace unattended-upgrades 0.71ubuntu1 (using .../unattended-
Unpacking replacement unattended-upgrades ...
Preparing to replace x11-xserver-utils 7.6~1 (using .../x11-
Unpacking replacement x11-xserver-utils ...
Preparing to replace aptdaemon-data 0.41+bzr614-
Unpacking replacement aptdaemon-data ...
Preparing to replace python-
Unpacking replacement python-
Preparing to replace python-
Unpacking replacement python-
Preparing to replace python-
Unpacking replacement python-
Preparing to replace aptdaemon 0.41+bzr614-
Unpacking replacement aptdaemon ...
Preparing to replace python-aptdaemon 0.41+bzr614-
Unpacking replacement python-aptdaemon ...
Preparing to replace gnome-settings-
Unpacking replacement gnome-settings-
Processing triggers for man-db ...
Processing triggers for ureadahead ...
ureadahead will be reprofiled on next reboot
Processing triggers for hicolor-icon-theme ...
Processing triggers for gconf2 ...
Setting up libudev0 (167-0ubuntu3) ...
Setting up libgudev-1.0-0 (1:167-0ubuntu3) ...
Setting up apt-utils (0.8.13.2ubuntu2) ...
Setting up procps (1:3.2.8-10ubuntu2) ...
procps stop/waiting
Setting up udev (167-0ubuntu3) ...
udev start/running, process 3179
Removing 'diversion of /sbin/udevadm to /sbin/udevadm.
update-initramfs: deferring update (trigger activated)
Setting up apt-transport-https (0.8.13.2ubuntu2) ...
Setting up libwebkitgtk-
Setting up libwebkitgtk-1.0-0 (1.3.13-0ubuntu1) ...
Setting up obex-data-server (0.4.6-0ubuntu1) ...
Setting up unattended-upgrades (0.72ubuntu1) ...
Installing new version of config file /etc/apt/
Setting up x11-xserver-utils (7.6+2) ...
Setting up aptdaemon-data (0.41+bzr614-
Setting up python-aptdaemon (0.41+bzr614-
Setting up python-
Setting up python-
Setting up python-
Setting up aptdaemon (0.41+bzr614-
Setting up gnome-settings-
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.
ck@Inspiron:~$
Revision history for this message
|
#3 |
You say that you have seen a message during the failed upgrade that 61 updates are waiting and could not be downloaded due to a crash.
The output of the apt-get commands indicates that your system is up-to-date and has all updates applied.
This is contradictory.
Can you please start software-center and look in the history what there is shown about recent installations?
Revision history for this message
|
#4 |
Thanks Manfred Hampl, that solved my question.