Can't update, probable corruption.

Asked by Benjamin lowden on 2011-02-01

ben@ben-desktop:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=10.04
DISTRIB_CODENAME=lucid
DISTRIB_DESCRIPTION="Ubuntu 10.04.1 LTS"
ben@ben-desktop:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=10.04
DISTRIB_CODENAME=lucid
DISTRIB_DESCRIPTION="Ubuntu 10.04.1 LTS"
ben@ben-desktop:~$ uname -a
Linux ben-desktop 2.6.32-26-generic #48-Ubuntu SMP Wed Nov 24 09:00:03 UTC 2010 i686 GNU/Linux
ben@ben-desktop:~$ sudo rm /var/lib/apt/lists/lock
ben@ben-desktop:~$ sudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup
ben@ben-desktop:~$ sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status
ben@ben-desktop:~$ sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
ben@ben-desktop:~$ sudo rm -rf /var/lib/dpkg/updates/*
ben@ben-desktop:~$ sudo rm -rf /var/lib/apt/lists
ben@ben-desktop:~$ sudo rm /var/cache/apt/*.bin
ben@ben-desktop:~$ sudo mkdir /var/lib/apt/lists
ben@ben-desktop:~$ sudo mkdir /var/lib/apt/lists/partial
ben@ben-desktop:~$ LANG=C;sudo apt-get clean
ben@ben-desktop:~$ LANG=C;sudo apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
ben@ben-desktop:~$ LANG=C;sudo apt-get update -o APT::Cache-Limit=25165824
Get:1 http://archive.canonical.com hardy Release.gpg [198B]
Get:2 http://archive.ubuntu.com lucid Release.gpg [189B]
Get:3 http://archive.ubuntu.com lucid-security Release.gpg [198B]
Get:4 http://archive.ubuntu.com jaunty Release.gpg [189B]
Get:5 http://gb.archive.ubuntu.com hardy-backports Release.gpg [198B]
Get:6 http://archive.canonical.com hardy Release [9343B]
Get:7 http://archive.ubuntu.com lucid Release [57.2kB]
Get:8 http://gb.archive.ubuntu.com hardy-backports Release [51.2kB]
Get:9 http://archive.canonical.com hardy/partner Packages [9262B]
Get:10 http://archive.ubuntu.com lucid-security Release [44.7kB]
Get:11 http://archive.canonical.com hardy/partner Sources [4146B]
Get:12 http://archive.ubuntu.com jaunty Release [74.6kB]
Get:13 http://gb.archive.ubuntu.com hardy-backports/main Packages [119kB]
Get:14 http://archive.ubuntu.com lucid/main Sources [659kB]
Get:15 http://gb.archive.ubuntu.com hardy-backports/restricted Packages [14B]
Get:16 http://gb.archive.ubuntu.com hardy-backports/universe Packages [115kB]
Get:17 http://gb.archive.ubuntu.com hardy-backports/multiverse Packages [14.6kB]
Get:18 http://gb.archive.ubuntu.com hardy-backports/main Sources [18.9kB]
Get:19 http://gb.archive.ubuntu.com hardy-backports/restricted Sources [14B]
Get:20 http://gb.archive.ubuntu.com hardy-backports/universe Sources [29.4kB]
Get:21 http://gb.archive.ubuntu.com hardy-backports/multiverse Sources [4199B]
Get:22 http://archive.ubuntu.com lucid/restricted Sources [3775B]
Get:23 http://archive.ubuntu.com lucid/restricted Packages [6208B]
Get:24 http://archive.ubuntu.com lucid/main Packages [1386kB]
Get:25 http://archive.ubuntu.com lucid/universe Packages [5448kB]
Get:26 http://archive.ubuntu.com lucid/multiverse Sources [119kB]
Get:27 http://archive.ubuntu.com lucid/universe Sources [3165kB]
Get:28 http://archive.ubuntu.com lucid/multiverse Packages [180kB]
Get:29 http://archive.ubuntu.com lucid-security/restricted Packages [14B]
Get:30 http://archive.ubuntu.com lucid-security/main Packages [131kB]
Get:31 http://archive.ubuntu.com lucid-security/universe Packages [61.0kB]
Get:32 http://archive.ubuntu.com lucid-security/restricted Sources [14B]
Get:33 http://archive.ubuntu.com lucid-security/main Sources [43.3kB]
Get:34 http://archive.ubuntu.com lucid-security/multiverse Sources [660B]
Get:35 http://archive.ubuntu.com lucid-security/universe Sources [17.6kB]
Get:36 http://archive.ubuntu.com lucid-security/multiverse Packages [2003B]
Get:37 http://archive.ubuntu.com jaunty/universe Packages [4757kB]
Fetched 16.5MB in 2min 16s (121kB/s)
Reading package lists... Done
ben@ben-desktop:~$ sudo dpkg --clear-avail
ben@ben-desktop:~$ sudo dpkg --configure -a
ben@ben-desktop:~$ LANG=C;sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  dkms fakeroot fglrx fglrx-amdcccle libc-bin libc-dev-bin libc6 libc6-amd64 libc6-dev libc6-i686
Suggested packages:
  glibc-doc
The following packages will be upgraded:
  dkms fakeroot fglrx fglrx-amdcccle libc-bin libc-dev-bin libc6 libc6-amd64 libc6-dev libc6-i686
10 upgraded, 0 newly installed, 0 to remove and 39 not upgraded.
5 not fully installed or removed.
Need to get 38.6MB of archives.
After this operation, 70.1MB of additional disk space will be used.
Do you want to continue [Y/n]?
Get:1 http://archive.ubuntu.com/ubuntu/ lucid-security/main libc-bin 2.11.1-0ubuntu7.7 [723kB]
Get:2 http://archive.ubuntu.com/ubuntu/ lucid-security/main libc6-amd64 2.11.1-0ubuntu7.7 [4183kB]
Get:3 http://archive.ubuntu.com/ubuntu/ lucid-security/main libc-dev-bin 2.11.1-0ubuntu7.7 [212kB]
Get:4 http://archive.ubuntu.com/ubuntu/ lucid-security/main libc6-dev 2.11.1-0ubuntu7.7 [4851kB]
Get:5 http://archive.ubuntu.com/ubuntu/ lucid-security/main libc6 2.11.1-0ubuntu7.7 [3892kB]
Get:6 http://archive.ubuntu.com/ubuntu/ lucid-security/main libc6-i686 2.11.1-0ubuntu7.7 [1229kB]
Get:7 http://archive.ubuntu.com/ubuntu/ lucid/main dkms 2.1.1.2-2fakesync1 [70.1kB]
Get:8 http://archive.ubuntu.com/ubuntu/ lucid/main fakeroot 1.14.4-1ubuntu1 [118kB]
Get:9 http://archive.ubuntu.com/ubuntu/ lucid/restricted fglrx 2:8.723.1-0ubuntu3 [18.2MB]
Get:10 http://archive.ubuntu.com/ubuntu/ lucid/restricted fglrx-amdcccle 2:8.723.1-0ubuntu3 [5101kB]
dpkg: warning: files list file for package `wamerican' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `ncurses-base' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `tcl8.4' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libglitz-glx1' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `python-zope.interface' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `nautilus-share' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `whois' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libplasma-geolocation-interface4' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `mesa-utils' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libv4l-0' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `apt-xapian-index' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libakonadiprivate1' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libfuse2' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libwildmidi0' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libdvdread4' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `language-selector' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `kdesudo' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `python-ibus' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `python-minimal' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `mscompress' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `scrollkeeper' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libgssapi-krb5-2' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libspeex1' missing, assuming package has no files currently installed.
(Reading database ... 40%
dpkg: warning: files list file for package `libqtgui4' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libtool' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `gnome-panel-dbg' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `ibus-gtk' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `xutils-dev' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `ttf-kochi-mincho' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `binfmt-support' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `dnsutils' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libgeoip1' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `apturl' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `gnome-themes-selected' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `language-pack-en' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `wpasupplicant' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `gstreamer0.10-nice' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libgda-4.0-4' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libgnome-desktop-2-17' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `procps' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libiodbc2' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `cpp-4.4' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `metacity' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `openoffice.org-gnome' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libjpeg62' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libparted0debian1' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `openoffice.org-style-human' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libgnomepanel2.24-cil' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `openoffice.org-help-en-us' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `gtali' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `compiz' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libsoup-gnome2.4-1' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `fontconfig' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `gnome-settings-daemon' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libcurl3-gnutls' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `lsb-base' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libsoup2.4-1' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libtasn1-3' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `gconf-editor' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `tk8.4' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libgd2-xpm' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libsolidcontrol4' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `python-papyon' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libgtk2.0-cil' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libgtop2-common' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libuuid1' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `gnome-system-monitor' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `screensaver-default-images' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `lzma' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libxinerama1' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libsdl1.2debian' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `evolution-data-server-common' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `python-wnck' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `plymouth-x11' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libpisync1' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `kdepimlibs-data' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libgegl-0.0-0' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `eog' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `xserver-xorg-video-sis' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `cvs' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `python-dbus' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `xulrunner-1.9' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `xcursor-themes' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `lightsoff' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libwps-0.1-1' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libplasma-applet-system-monitor4' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libjs-jquery' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libbind9-60' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libgcrypt11' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libupnp3' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libavcodec52' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `xserver-xorg-video-v4l' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `python-ubuntuone-client' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libexif12' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libgdbm3' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `pulseaudio-utils' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libesd-alsa0' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libcairo2' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libibus1' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `erlang-public-key' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libgstfarsight0.10-0' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `myspell-en-au' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `man-db' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libpango-perl' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libffi5' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libenca0' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libgraphite3' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libgamin0' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `module-init-tools' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libflac8' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `gettext-base' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libvorbisfile3' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `glines' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libperl5.10' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libgnomecanvas2-dbg' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `gnome-user-guide' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libdbus-1-3' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `gnome-applets-dbg' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libgmp3c2' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `cups-ppdc' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libpango1.0-0-dbg' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libxplc0.3.13' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `xscreensaver-data' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `desktop-file-utils' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `example-content' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `gpgv' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `login' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libgoocanvas3' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `xserver-xorg-video-amd' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `telnet' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `x11-xkb-utils' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `gstreamer0.10-plugins-base-apps' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libxml2' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `wireless-crda' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `laptop-detect' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `makedev' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `initramfs-tools' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libprotobuf5' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `python-twisted-bin' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `gdm' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `gdb' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libcelt0-0' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `python-gtkspell' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `gnome-terminal' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `openoffice.org-emailmerge' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libxmuu1' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libisccfg60' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libxml-parser-perl' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libxcb-shm0' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `finger' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `pulseaudio-module-x11' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `ubufox' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `openprinting-ppds' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `xfonts-mathml' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libsysfs2' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `bcmwl-modaliases' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `debianutils' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libfreetype6' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `sudo' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libsane' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `cupsddk' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libopts25' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `coreutils' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libavutil49' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `ure' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libmono-system-data2.0-cil' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `empathy' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `esound-common' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `gvfs-bin' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libgl1-mesa-dri' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libxdmcp6' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libmpfr1ldbl' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libgnome-speech7' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `shared-mime-info' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libgnome2-dbg' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libraw1394-11' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libgtk1.2-common' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `mktemp' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libpolkit-gobject-1-0' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `python-sip' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libart-2.0-2' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libmagickcore2' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `mono-runtime' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `python-gnome2' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `gimp' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `dash' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libltdl-dev' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `memtest86+' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libelf1' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `gtk2-engines-murrine' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `python-aptdaemon' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `xserver-common' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libgnomekbd4' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `librecode0' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libxft2-dbg' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libpth20' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `debconf' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `mono-2.0-gac' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `pitivi' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libjson-glib-1.0-0' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libgssdp-1.0-2' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `apturl-common' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `java-common' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `gir1.0-clutter-gtk-0.10' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `empathy-common' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libgpod-common' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `sane-utils' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libclutter-1.0-0' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libtext-wrapi18n-perl' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libfftw3-3' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libbonoboui2-0' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `mysql-client-core-5.1' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `tcpd' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `python-pkg-resources' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libgtkspell0' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libexempi3' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libxml-libxml-perl' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `xserver-xorg-input-vmmouse' missing, assuming package has no files currently installed.
(Reading database ... 25 files and directories currently installed.)
Preparing to replace libc-bin 2.11.1-0ubuntu7.5 (using .../libc-bin_2.11.1-0ubuntu7.7_i386.deb) ...
Unpacking replacement libc-bin ...
dpkg: error processing /var/cache/apt/archives/libc-bin_2.11.1-0ubuntu7.7_i386.deb (--unpack):
 unable to create updated files list file for package libc-bin: No such file or directory
Errors were encountered while processing:
 /var/cache/apt/archives/libc-bin_2.11.1-0ubuntu7.7_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
ben@ben-desktop:~$ LANG=C;sudo apt-get --fix-missing install
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run `apt-get -f install' to correct these.
The following packages have unmet dependencies:
E: Unmet dependencies. Try using -f.
ben@ben-desktop:~$ LANG=C;sudo apt-get update -o APT::Cache-Limit=25165824 && sudo apt-get dist-upgrade
Hit http://gb.archive.ubuntu.com hardy-backports Release.gpg
Hit http://archive.ubuntu.com lucid Release.gpg
Hit http://archive.ubuntu.com lucid-security Release.gpg
Hit http://archive.ubuntu.com jaunty Release.gpg
Hit http://gb.archive.ubuntu.com hardy-backports Release
Hit http://archive.canonical.com hardy Release.gpg
Hit http://archive.ubuntu.com lucid Release
Hit http://archive.canonical.com hardy Release
Hit http://archive.ubuntu.com lucid-security Release
Hit http://gb.archive.ubuntu.com hardy-backports/main Packages
Hit http://archive.ubuntu.com jaunty Release
Hit http://gb.archive.ubuntu.com hardy-backports/restricted Packages
Hit http://gb.archive.ubuntu.com hardy-backports/universe Packages
Hit http://gb.archive.ubuntu.com hardy-backports/multiverse Packages
Hit http://gb.archive.ubuntu.com hardy-backports/main Sources
Hit http://gb.archive.ubuntu.com hardy-backports/restricted Sources
Hit http://archive.canonical.com hardy/partner Packages
Hit http://archive.ubuntu.com lucid/main Sources
Hit http://archive.ubuntu.com lucid/restricted Sources
Hit http://archive.ubuntu.com lucid/restricted Packages
Hit http://archive.ubuntu.com lucid/main Packages
Hit http://archive.ubuntu.com lucid/universe Packages
Hit http://gb.archive.ubuntu.com hardy-backports/universe Sources
Hit http://gb.archive.ubuntu.com hardy-backports/multiverse Sources
Hit http://archive.canonical.com hardy/partner Sources
Hit http://archive.ubuntu.com lucid/multiverse Sources
Hit http://archive.ubuntu.com lucid/universe Sources
Hit http://archive.ubuntu.com lucid/multiverse Packages
Hit http://archive.ubuntu.com lucid-security/restricted Packages
Hit http://archive.ubuntu.com lucid-security/main Packages
Hit http://archive.ubuntu.com lucid-security/universe Packages
Hit http://archive.ubuntu.com lucid-security/restricted Sources
Hit http://archive.ubuntu.com lucid-security/main Sources
Hit http://archive.ubuntu.com lucid-security/multiverse Sources
Hit http://archive.ubuntu.com lucid-security/universe Sources
Hit http://archive.ubuntu.com lucid-security/multiverse Packages
Hit http://archive.ubuntu.com jaunty/universe Packages
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run `apt-get -f install' to correct these.
The following packages have unmet dependencies:
E: Unmet dependencies. Try using -f.

I am only trying to update my system, this began when i tried to install fglrx through synaptic manager.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu dpkg Edit question
Assignee:
No assignee Edit question
Solved by:
Eliah Kagan
Solved:
Last query:
Last reply:

You have software sources from three different versions of Ubuntu enabled. This is probably what's causing your problem. I don't know how that happened, but people have had that configuration before. Did you attempt to update Ubuntu using the unsupported Debian-style technique of manually editing /etc/apt/sources.list? That would explain this situation.

In any case, you should be able to fix the problem by manually editing /etc/apt/sources.list. First, back up this file:

sudo cp /etc/apt/sources.list /etc/apt/sources.list.old

Then, open it up in a text editor:

sudo gedit /etc/apt/sources.list

In the text editor, carefully turn ever occurrence of "hardy" or "jaunty" into "lucid". Save the file, and quit the text editor. Then run these commands:

sudo apt-get update
sudo apt-get upgrade

If this doesn't fix your problem, then:

(1) Follow the instructions at https://help.ubuntu.com/community/PackageManagerTroubleshootingProcedure (as you did before) and post the results.

(2) Also post the output of the commands:

cat /etc/apt/sources.list
ls -l /etc/apt/sources.list.d

(3) If possible, explain in greater detail the steps you took in Synaptic, that led to this problem.

Note that those three pieces of information are only necessary if editing /etc/apt/sources.list doesn't fix the problem. Usually that fixes this problem.

Benjamin lowden (ben-lowden) said : #2

In any case, you should be able to fix the problem by manually editing /etc/apt/sources.list. First, back up this file:

sudo cp /etc/apt/sources.list /etc/apt/sources.list.old

Then, open it up in a text editor:

sudo gedit /etc/apt/sources.list

In the text editor, carefully turn ever occurrence of "hardy" or "jaunty" into "lucid". Save the file, and quit the text editor. Then run these commands:

sudo apt-get update
sudo apt-get upgrade

I have done this, then clicked the "Error" icon on my top bar, it's now suggesting a partial upgrade, do i allow it or just follow the other steps?

Either way, thanks!

"I have done this, then clicked the "Error" icon on my top bar, it's now suggesting a partial upgrade, do i allow it or just follow the other steps?"

No, do NOT have it do a partial upgrade.

Instead, please post all the text from the Terminal, from when you ran:

sudo apt-get update
sudo apt-get upgrade

Also, run these two commands and post their output:

cat /etc/apt/sources.list
ls -l /etc/apt/sources.list.d

Also, please go through the procedure at https://help.ubuntu.com/community/PackageManagerTroubleshootingProcedure again, and post all the text in the Terminal from doing that.

Of course, that might fix your problem (so that it can do a complete upgrade, rather than offering to do a partial upgrade). If it fixes your problem, then you don't need to post that information.

Benjamin lowden (ben-lowden) said : #4

Also, please go through the procedure at https://help.ubuntu.com/community/PackageManagerTroubleshootingProcedure again, and post all the text in the Terminal from doing that.

I decided to do that then redo the install/upgrade,
One thing stood out to me ..

ben@ben-desktop:~$ LANG=C;sudo apt-get --purge autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: The package libc-bin needs to be reinstalled, but I can't find an archive for it.

That's changed, I'll finish running and see if it's fixed..

Benjamin lowden (ben-lowden) said : #5

Also, run these two commands and post their output:

cat /etc/apt/sources.list
ls -l /etc/apt/sources.list.d

ben@ben-desktop:~$ cat /etc/apt/sources.list
# deb cdrom:[Ubuntu 8.04 _Hardy Heron_ - Release i386 (20080423)]/ hardy main restricted
deb-src http://archive.ubuntu.com/ubuntu jaunty main restricted #Added by software-properties
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://archive.ubuntu.com/ubuntu jaunty restricted main universe
deb-src http://archive.ubuntu.com/ubuntu jaunty main multiverse universe #Added by software-properties

## Major bug fix updates produced after the final release of the
## distribution.

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://archive.ubuntu.com/ubuntu jaunty multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://gb.archive.ubuntu.com/ubuntu/ jaunty-backports main restricted universe multiverse
deb-src http://gb.archive.ubuntu.com/ubuntu/ jaunty-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository. This software is not part of Ubuntu, but is
## offered by Canonical and the respective vendors as a service to Ubuntu
## users.
deb http://archive.canonical.com/ubuntu jaunty partner
deb-src http://archive.canonical.com/ubuntu jaunty partner

deb http://archive.ubuntu.com/ubuntu jaunty-security restricted main universe
deb-src http://archive.ubuntu.com/ubuntu jaunty-security restricted main multiverse universe #Added by software-properties
deb http://archive.ubuntu.com/ubuntu jaunty-security multiverse
deb http://archive.ubuntu.com/ubuntu jaunty universe
ben@ben-desktop:~$ ls -l /etc/apt/sources.list.d
total 0

Also, please go through the procedure at https://help.ubuntu.com/community/PackageManagerTroubleshootingProcedure again, and post all the text in the Terminal from doing that.

ben@ben-desktop:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=10.04
DISTRIB_CODENAME=lucid
DISTRIB_DESCRIPTION="Ubuntu 10.04.1 LTS"
ben@ben-desktop:~$ uname -a
Linux ben-desktop 2.6.32-26-generic #48-Ubuntu SMP Wed Nov 24 09:00:03 UTC 2010 i686 GNU/Linux
ben@ben-desktop:~$ sudo rm /var/lib/apt/lists/lock
ben@ben-desktop:~$ sudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup
ben@ben-desktop:~$ sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status
ben@ben-desktop:~$ sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
ben@ben-desktop:~$ sudo rm -rf /var/lib/dpkg/updates/*
ben@ben-desktop:~$ sudo rm -rf /var/lib/apt/lists
ben@ben-desktop:~$ sudo rm /var/cache/apt/*.bin
ben@ben-desktop:~$ sudo mkdir /var/lib/apt/lists
ben@ben-desktop:~$ sudo mkdir /var/lib/apt/lists/partial
ben@ben-desktop:~$ LANG=C;sudo apt-get clean
ben@ben-desktop:~$ LANG=C;sudo apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
ben@ben-desktop:~$ LANG=C;sudo apt-get --purge autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: The package libc-bin needs to be reinstalled, but I can't find an archive for it.
ben@ben-desktop:~$ LANG=C;sudo apt-get update -o APT::Cache-Limit=25165824
Get:1 http://archive.canonical.com jaunty Release.gpg [198B]
Get:2 http://gb.archive.ubuntu.com jaunty-backports Release.gpg [198B]
Get:3 http://archive.ubuntu.com jaunty Release.gpg [189B]
Get:4 http://archive.canonical.com jaunty Release [10.5kB]
Get:5 http://gb.archive.ubuntu.com jaunty-backports Release [49.6kB]
Get:6 http://archive.ubuntu.com jaunty-security Release.gpg [198B]
Get:7 http://archive.ubuntu.com jaunty Release [74.6kB]
Get:8 http://archive.canonical.com jaunty/partner Packages [4333B]
Get:9 http://archive.canonical.com jaunty/partner Sources [2060B]
Get:10 http://gb.archive.ubuntu.com jaunty-backports/main Packages [64.0kB]
Get:11 http://archive.ubuntu.com jaunty-security Release [57.9kB]
Get:12 http://gb.archive.ubuntu.com jaunty-backports/restricted Packages [14B]
Get:13 http://gb.archive.ubuntu.com jaunty-backports/universe Packages [39.9kB]
Get:14 http://gb.archive.ubuntu.com jaunty-backports/multiverse Packages [14B]
Get:15 http://gb.archive.ubuntu.com jaunty-backports/main Sources [14.1kB]
Get:16 http://gb.archive.ubuntu.com jaunty-backports/restricted Sources [14B]
Get:17 http://gb.archive.ubuntu.com jaunty-backports/universe Sources [12.6kB]
Get:18 http://gb.archive.ubuntu.com jaunty-backports/multiverse Sources [14B]
Get:19 http://archive.ubuntu.com jaunty/main Sources [555kB]
Get:20 http://archive.ubuntu.com jaunty/restricted Sources [3156B]
Get:21 http://archive.ubuntu.com jaunty/restricted Packages [8848B]
Get:22 http://archive.ubuntu.com jaunty/main Packages [1253kB]
Get:23 http://archive.ubuntu.com jaunty/universe Packages [4757kB]
Get:24 http://archive.ubuntu.com jaunty/multiverse Sources [107kB]
Get:25 http://archive.ubuntu.com jaunty/universe Sources [2375kB]
Get:26 http://archive.ubuntu.com jaunty/multiverse Packages [197kB]
Get:27 http://archive.ubuntu.com jaunty-security/restricted Packages [2590B]
Get:28 http://archive.ubuntu.com jaunty-security/main Packages [242kB]
Get:29 http://archive.ubuntu.com jaunty-security/universe Packages [121kB]
Get:30 http://archive.ubuntu.com jaunty-security/restricted Sources [693B]
Get:31 http://archive.ubuntu.com jaunty-security/main Sources [131kB]
Get:32 http://archive.ubuntu.com jaunty-security/multiverse Sources [1422B]
Get:33 http://archive.ubuntu.com jaunty-security/universe Sources [46.6kB]
Get:34 http://archive.ubuntu.com jaunty-security/multiverse Packages [4704B]
Fetched 10.1MB in 1min 23s (121kB/s)
Reading package lists... Done
W: Duplicate sources.list entry http://archive.ubuntu.com/ubuntu/ jaunty/universe Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_jaunty_universe_binary-i386_Packages)
W: You may want to run apt-get update to correct these problems
ben@ben-desktop:~$ sudo dpkg --clear-avail
ben@ben-desktop:~$ sudo dpkg --configure -a
ben@ben-desktop:~$ LANG=C;sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: The package libc-bin needs to be reinstalled, but I can't find an archive for it.
ben@ben-desktop:~$ LANG=C;sudo apt-get --fix-missing install
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: The package libc-bin needs to be reinstalled, but I can't find an archive for it.
ben@ben-desktop:~$ LANG=C;sudo apt-get update -o APT::Cache-Limit=25165824 && sudo apt-get dist-upgrade
Hit http://archive.canonical.com jaunty Release.gpg
Hit http://gb.archive.ubuntu.com jaunty-backports Release.gpg
Hit http://archive.ubuntu.com jaunty Release.gpg
Hit http://archive.ubuntu.com jaunty-security Release.gpg
Hit http://archive.canonical.com jaunty Release
Hit http://gb.archive.ubuntu.com jaunty-backports Release
Hit http://archive.ubuntu.com jaunty Release
Hit http://archive.ubuntu.com jaunty-security Release
Hit http://archive.canonical.com jaunty/partner Packages
Hit http://gb.archive.ubuntu.com jaunty-backports/main Packages
Hit http://archive.canonical.com jaunty/partner Sources
Hit http://archive.ubuntu.com jaunty/main Sources
Hit http://gb.archive.ubuntu.com jaunty-backports/restricted Packages
Hit http://gb.archive.ubuntu.com jaunty-backports/universe Packages
Hit http://gb.archive.ubuntu.com jaunty-backports/multiverse Packages
Hit http://gb.archive.ubuntu.com jaunty-backports/main Sources
Hit http://gb.archive.ubuntu.com jaunty-backports/restricted Sources
Hit http://archive.ubuntu.com jaunty/restricted Sources
Hit http://archive.ubuntu.com jaunty/restricted Packages
Hit http://archive.ubuntu.com jaunty/main Packages
Hit http://archive.ubuntu.com jaunty/universe Packages
Hit http://archive.ubuntu.com jaunty/multiverse Sources
Hit http://gb.archive.ubuntu.com jaunty-backports/universe Sources
Hit http://gb.archive.ubuntu.com jaunty-backports/multiverse Sources
Hit http://archive.ubuntu.com jaunty/universe Sources
Hit http://archive.ubuntu.com jaunty/multiverse Packages
Hit http://archive.ubuntu.com jaunty-security/restricted Packages
Hit http://archive.ubuntu.com jaunty-security/main Packages
Hit http://archive.ubuntu.com jaunty-security/universe Packages
Hit http://archive.ubuntu.com jaunty-security/restricted Sources
Hit http://archive.ubuntu.com jaunty-security/main Sources
Hit http://archive.ubuntu.com jaunty-security/multiverse Sources
Hit http://archive.ubuntu.com jaunty-security/universe Sources
Hit http://archive.ubuntu.com jaunty-security/multiverse Packages
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: The package libc-bin needs to be reinstalled, but I can't find an archive for it.

Instead, please post all the text from the Terminal, from when you ran:

sudo apt-get update
sudo apt-get upgrade

ben@ben-desktop:~$ sudo apt-get update
Hit http://archive.canonical.com jaunty Release.gpg
Hit http://gb.archive.ubuntu.com jaunty-backports Release.gpg
Hit http://archive.ubuntu.com jaunty Release.gpg
Hit http://archive.ubuntu.com jaunty-security Release.gpg
Hit http://archive.canonical.com jaunty Release
Hit http://archive.ubuntu.com jaunty Release
Hit http://gb.archive.ubuntu.com jaunty-backports Release
Hit http://archive.ubuntu.com jaunty-security Release
Hit http://archive.canonical.com jaunty/partner Packages
Hit http://archive.ubuntu.com jaunty/main Sources
Hit http://archive.canonical.com jaunty/partner Sources
Hit http://archive.ubuntu.com jaunty/restricted Sources
Hit http://archive.ubuntu.com jaunty/restricted Packages
Hit http://archive.ubuntu.com jaunty/main Packages
Hit http://archive.ubuntu.com jaunty/universe Packages
Hit http://archive.ubuntu.com jaunty/multiverse Sources
Hit http://gb.archive.ubuntu.com jaunty-backports/main Packages
Hit http://archive.ubuntu.com jaunty/universe Sources
Hit http://archive.ubuntu.com jaunty/multiverse Packages
Hit http://archive.ubuntu.com jaunty-security/restricted Packages
Hit http://archive.ubuntu.com jaunty-security/main Packages
Hit http://archive.ubuntu.com jaunty-security/universe Packages
Hit http://archive.ubuntu.com jaunty-security/restricted Sources
Hit http://archive.ubuntu.com jaunty-security/main Sources
Hit http://gb.archive.ubuntu.com jaunty-backports/restricted Packages
Hit http://gb.archive.ubuntu.com jaunty-backports/universe Packages
Hit http://gb.archive.ubuntu.com jaunty-backports/multiverse Packages
Hit http://gb.archive.ubuntu.com jaunty-backports/main Sources
Hit http://gb.archive.ubuntu.com jaunty-backports/restricted Sources
Hit http://archive.ubuntu.com jaunty-security/multiverse Sources
Hit http://archive.ubuntu.com jaunty-security/universe Sources
Hit http://archive.ubuntu.com jaunty-security/multiverse Packages
Hit http://gb.archive.ubuntu.com jaunty-backports/universe Sources
Hit http://gb.archive.ubuntu.com jaunty-backports/multiverse Sources
Reading package lists... Done
ben@ben-desktop:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: The package libc-bin needs to be reinstalled, but I can't find an archive for it.

It appears that, instead of changing every instance of "hardy" or "jaunty" into "lucid" in /etc/apt/sources.list, you changed every instance of "hardy" or "lucid" into "jaunty" (except one instance of "hardy" near the beginning, which you missed). If you fix that (so they all say "lucid") and run

sudo apt-get update
sudo apt-get upgrade

then your problem should be fixed. If not, continue following the steps I asked you to follow after editing /etc/apt/sources.list.

Remember, you want them all to say "lucid". Also, your text editor has a search feature, which you can use to ensure that no instances of "hardy" and "jaunty" remain.

Benjamin lowden (ben-lowden) said : #7

Ohh, i must have misread your instructions, silly me!

Benjamin lowden (ben-lowden) said : #8

ben@ben-desktop:~$ sudo apt-get update
Hit http://gb.archive.ubuntu.com lucid-backports Release.gpg
Ign http://gb.archive.ubuntu.com/ubuntu/ lucid-backports/main Translation-en_GB
Ign http://gb.archive.ubuntu.com/ubuntu/ lucid-backports/restricted Translation-en_GB
Hit http://archive.canonical.com lucid Release.gpg
Ign http://archive.canonical.com/ubuntu/ lucid/partner Translation-en_GB
Hit http://archive.ubuntu.com lucid Release.gpg
Get: 1 http://archive.ubuntu.com/ubuntu/ lucid/restricted Translation-en_GB [2,332B]
Ign http://gb.archive.ubuntu.com/ubuntu/ lucid-backports/universe Translation-en_GB
Ign http://gb.archive.ubuntu.com/ubuntu/ lucid-backports/multiverse Translation-en_GB
Hit http://gb.archive.ubuntu.com lucid-backports Release
Hit http://archive.canonical.com lucid Release
Get: 2 http://archive.ubuntu.com/ubuntu/ lucid/main Translation-en_GB [62.9kB]
Hit http://gb.archive.ubuntu.com lucid-backports/main Packages
Hit http://archive.canonical.com lucid/partner Packages
Hit http://gb.archive.ubuntu.com lucid-backports/restricted Packages
Hit http://gb.archive.ubuntu.com lucid-backports/universe Packages
Hit http://gb.archive.ubuntu.com lucid-backports/multiverse Packages
Hit http://gb.archive.ubuntu.com lucid-backports/main Sources
Hit http://gb.archive.ubuntu.com lucid-backports/restricted Sources
Hit http://gb.archive.ubuntu.com lucid-backports/universe Sources
Hit http://archive.canonical.com lucid/partner Sources
Hit http://gb.archive.ubuntu.com lucid-backports/multiverse Sources
Get: 3 http://archive.ubuntu.com/ubuntu/ lucid/universe Translation-en_GB [33.9kB]
Get: 4 http://archive.ubuntu.com/ubuntu/ lucid/multiverse Translation-en_GB [37.7kB]
Hit http://archive.ubuntu.com lucid-security Release.gpg
Ign http://archive.ubuntu.com/ubuntu/ lucid-security/restricted Translation-en_GB
Ign http://archive.ubuntu.com/ubuntu/ lucid-security/main Translation-en_GB
Ign http://archive.ubuntu.com/ubuntu/ lucid-security/universe Translation-en_GB
Ign http://archive.ubuntu.com/ubuntu/ lucid-security/multiverse Translation-en_GB
Hit http://archive.ubuntu.com lucid Release
Hit http://archive.ubuntu.com lucid-security Release
Hit http://archive.ubuntu.com lucid/main Sources
Hit http://archive.ubuntu.com lucid/restricted Sources
Hit http://archive.ubuntu.com lucid/restricted Packages
Hit http://archive.ubuntu.com lucid/main Packages
Hit http://archive.ubuntu.com lucid/universe Packages
Hit http://archive.ubuntu.com lucid/multiverse Sources
Hit http://archive.ubuntu.com lucid/universe Sources
Hit http://archive.ubuntu.com lucid/multiverse Packages
Hit http://archive.ubuntu.com lucid-security/restricted Packages
Hit http://archive.ubuntu.com lucid-security/main Packages
Hit http://archive.ubuntu.com lucid-security/universe Packages
Hit http://archive.ubuntu.com lucid-security/restricted Sources
Hit http://archive.ubuntu.com lucid-security/main Sources
Hit http://archive.ubuntu.com lucid-security/multiverse Sources
Hit http://archive.ubuntu.com lucid-security/universe Sources
Hit http://archive.ubuntu.com lucid-security/multiverse Packages
Fetched 137kB in 1s (86.6kB/s)
Reading package lists... Done
W: Duplicate sources.list entry http://archive.ubuntu.com/ubuntu/ lucid/universe Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_lucid_universe_binary-i386_Packages)
W: Duplicate sources.list entry http://archive.ubuntu.com/ubuntu/ lucid/universe Translation-en_GB (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_lucid_universe_i18n_Translation-en%5fGB)
W: You may want to run apt-get update to correct these problems
ben@ben-desktop:~$ sudo apt-get upgrade
[sudo] password for ben:
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run ‘apt-get -f install’ to correct these.
The following packages have unmet dependencies.
E: Unmet dependencies. Try using -f.

Try running

sudo apt-get -f install

as it suggests. It might not be necessary to go through the whole procedure at https://help.ubuntu.com/community/PackageManagerTroubleshootingProcedure again. After that, run

sudo apt-get update

again before proceeding with:

sudo apt-get upgrade

If you get the same warnings again, then go ahead and follow the full procedure at https://help.ubuntu.com/community/PackageManagerTroubleshootingProcedure.

Benjamin lowden (ben-lowden) said : #10

Tried both,

I get to the final command on https://help.ubuntu.com/community/PackageManagerTroubleshootingProcedure.
and get
ben@ben-desktop:~$ LANG=C;sudo apt-get update -o APT::Cache-Limit=25165824 && sudo apt-get dist-upgrade
Hit http://archive.canonical.com lucid Release.gpg
Hit http://gb.archive.ubuntu.com lucid-backports Release.gpg
Hit http://archive.ubuntu.com lucid Release.gpg
Hit http://archive.ubuntu.com lucid-security Release.gpg
Hit http://archive.canonical.com lucid Release
Hit http://archive.ubuntu.com lucid Release
Hit http://gb.archive.ubuntu.com lucid-backports Release
Hit http://archive.ubuntu.com lucid-security Release
Hit http://archive.canonical.com lucid/partner Packages
Hit http://archive.ubuntu.com lucid/main Sources
Hit http://archive.canonical.com lucid/partner Sources
Hit http://gb.archive.ubuntu.com lucid-backports/main Packages
Hit http://archive.ubuntu.com lucid/restricted Sources
Hit http://archive.ubuntu.com lucid/restricted Packages
Hit http://archive.ubuntu.com lucid/main Packages
Hit http://archive.ubuntu.com lucid/universe Packages
Hit http://archive.ubuntu.com lucid/multiverse Sources
Hit http://gb.archive.ubuntu.com lucid-backports/restricted Packages
Hit http://gb.archive.ubuntu.com lucid-backports/universe Packages
Hit http://gb.archive.ubuntu.com lucid-backports/multiverse Packages
Hit http://gb.archive.ubuntu.com lucid-backports/main Sources
Hit http://gb.archive.ubuntu.com lucid-backports/restricted Sources
Hit http://archive.ubuntu.com lucid/universe Sources
Hit http://archive.ubuntu.com lucid/multiverse Packages
Hit http://archive.ubuntu.com lucid-security/restricted Packages
Hit http://archive.ubuntu.com lucid-security/main Packages
Hit http://archive.ubuntu.com lucid-security/universe Packages
Hit http://archive.ubuntu.com lucid-security/restricted Sources
Hit http://archive.ubuntu.com lucid-security/main Sources
Hit http://gb.archive.ubuntu.com lucid-backports/universe Sources
Hit http://gb.archive.ubuntu.com lucid-backports/multiverse Sources
Hit http://archive.ubuntu.com lucid-security/multiverse Sources
Hit http://archive.ubuntu.com lucid-security/universe Sources
Hit http://archive.ubuntu.com lucid-security/multiverse Packages
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run `apt-get -f install' to correct these.
The following packages have unmet dependencies:
E: Unmet dependencies. Try using -f.

Is that an *exact* copy-and-paste from the Terminal? Some of the messages from apt-get appear to be switched with one another, and at least one seems to be partially or completely left out.

Benjamin lowden (ben-lowden) said : #12

For which command?
Sudo apt-get -f install gives me so much text the top runs off terminal..

(1) Is that an exact and complete copy-and-paste from the Terminal, for the "LANG=C;sudo apt-get update -o APT::Cache-Limit=25165824 && sudo apt-get dist-upgrade" command?

(2) What is the output of the command "sudo apt-get update" now?

(3) To make the text from "sudo apt-get -f install" accessible via this question, run:

sudo apt-get -f install 2&>1 | tee log.txt

In addition to showing you the output, it will save the output in a file called log.txt, located in your home directory. Now, open the file with a text editor (for example, gedit, which is in Applications > Accessories > Text Editor), select all the text in it, do Edit > Copy (or Ctrl+C), and paste it at http://pastebin.ubuntu.com/. When you click "Paste!", you'll get a URL that you can post here to make the text accessible. Then I (and others) can take a look at it.

Benjamin lowden (ben-lowden) said : #14

1) Yes, that is an EXACT copy and paste
2)ben@ben-desktop:~$ sudo apt-get update
[sudo] password for ben:
Hit http://archive.ubuntu.com lucid Release.gpg
Get: 1 http://archive.ubuntu.com/ubuntu/ lucid/restricted Translation-en_GB [2,332B]
Hit http://gb.archive.ubuntu.com lucid-backports Release.gpg
Ign http://gb.archive.ubuntu.com/ubuntu/ lucid-backports/main Translation-en_GB
Ign http://gb.archive.ubuntu.com/ubuntu/ lucid-backports/restricted Translation-en_GB
Ign http://gb.archive.ubuntu.com/ubuntu/ lucid-backports/universe Translation-en_GB
Ign http://gb.archive.ubuntu.com/ubuntu/ lucid-backports/multiverse Translation-en_GB
Hit http://gb.archive.ubuntu.com lucid-backports Release
Get: 2 http://archive.ubuntu.com/ubuntu/ lucid/main Translation-en_GB [62.9kB]
Hit http://archive.canonical.com lucid Release.gpg
Ign http://archive.canonical.com/ubuntu/ lucid/partner Translation-en_GB
Hit http://gb.archive.ubuntu.com lucid-backports/main Packages
Get: 3 http://archive.ubuntu.com/ubuntu/ lucid/universe Translation-en_GB [33.9kB]
Hit http://archive.canonical.com lucid Release
Hit http://gb.archive.ubuntu.com lucid-backports/restricted Packages
Hit http://gb.archive.ubuntu.com lucid-backports/universe Packages
Hit http://gb.archive.ubuntu.com lucid-backports/multiverse Packages
Hit http://gb.archive.ubuntu.com lucid-backports/main Sources
Get: 4 http://archive.ubuntu.com/ubuntu/ lucid/multiverse Translation-en_GB [37.7kB]
Hit http://gb.archive.ubuntu.com lucid-backports/restricted Sources
Hit http://gb.archive.ubuntu.com lucid-backports/universe Sources
Hit http://gb.archive.ubuntu.com lucid-backports/multiverse Sources
Hit http://archive.canonical.com lucid/partner Packages
Hit http://archive.ubuntu.com lucid-security Release.gpg
Ign http://archive.ubuntu.com/ubuntu/ lucid-security/restricted Translation-en_GB
Ign http://archive.ubuntu.com/ubuntu/ lucid-security/main Translation-en_GB
Ign http://archive.ubuntu.com/ubuntu/ lucid-security/universe Translation-en_GB
Ign http://archive.ubuntu.com/ubuntu/ lucid-security/multiverse Translation-en_GB
Hit http://archive.ubuntu.com lucid Release
Hit http://archive.canonical.com lucid/partner Sources
Hit http://archive.ubuntu.com lucid-security Release
Hit http://archive.ubuntu.com lucid/main Sources
Hit http://archive.ubuntu.com lucid/restricted Sources
Hit http://archive.ubuntu.com lucid/restricted Packages
Hit http://archive.ubuntu.com lucid/main Packages
Hit http://archive.ubuntu.com lucid/universe Packages
Hit http://archive.ubuntu.com lucid/multiverse Sources
Hit http://archive.ubuntu.com lucid/universe Sources
Hit http://archive.ubuntu.com lucid/multiverse Packages
Hit http://archive.ubuntu.com lucid-security/restricted Packages
Hit http://archive.ubuntu.com lucid-security/main Packages
Hit http://archive.ubuntu.com lucid-security/universe Packages
Hit http://archive.ubuntu.com lucid-security/restricted Sources
Hit http://archive.ubuntu.com lucid-security/main Sources
Hit http://archive.ubuntu.com lucid-security/multiverse Sources
Hit http://archive.ubuntu.com lucid-security/universe Sources
Hit http://archive.ubuntu.com lucid-security/multiverse Packages
Fetched 137kB in 1s (80.0kB/s)
Reading package lists... Done
W: Duplicate sources.list entry http://archive.ubuntu.com/ubuntu/ lucid/universe Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_lucid_universe_binary-i386_Packages)
W: Duplicate sources.list entry http://archive.ubuntu.com/ubuntu/ lucid/universe Translation-en_GB (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_lucid_universe_i18n_Translation-en%5fGB)
W: You may want to run apt-get update to correct these problems
3)I picked up on your little typo :) Also .. http://pastebin.ubuntu.com/561115/

It's good you picked up on my mistake and corrected for it. Unfortunately, I have *not* -- I have no idea what typo you are talking about! So that we are on the same page, and to help me avoid future errors, can you elaborate?

I'll look at http://pastebin.ubuntu.com/561115/ shortly and see what I can make of it.

Benjamin lowden (ben-lowden) said : #16

sudo apt-get -f install 2&>1 | tee log.txt

It should have been

sudo apt-get -f install 2>1 | tee log.txt

Only realised when the command wasn't working and just had a guess at the most out-of-place item there :P

Ah--you're quite right!

Executive summary: Darn.

Detailed answer, including how to fix the problem:

We're back to the initial worrisome warnings that you posted about in this question's original description:
dpkg: warning: files list file for package `PACKAGENAME' missing, assuming package has no files currently installed.
(where PACKAGENAME is the name of each affected package)

This suggests that the files, corresponding to the named packages, in /var/lib/dpkg/info have become corrupted. This is bad for two reasons. The first reason is that it's kind of a hassle to fix (unless you have a backup of the files, of course). The second reason is that (assuming that this is actually what's going on), something caused them to become corrupted. Perhaps your hard disk has problems, for example.

To fix this, first I recommend backing up that folder. It's bad now, but it could be a lot worse. You can back it up by running:

cd /var/lib/dpkg
sudo tar cf info.tar info

That backs /var/lib/dpkg/info up into a .tar file in its parent folder. The file will probably be about 100 MB, but could be significantly less or more. If you're real low on space, you might want to run "sudo tar cJf info.tar.xz info" (without the quotes) instead of the second line; that makes a compressed archive.

Then, you can follow these instructions for repairing the affect package information files:
http://ubuntuforums.org/showpost.php?p=2635193&postcount=12

You'll have to do that for each package for which missing files list warnings appear in http://pastebin.ubuntu.com/561115/. For "full-path-to-debfile", the .deb files on an Ubuntu system are located inside /var/cache/apt/archives. The .deb file for a package is named starting with the name of the package. Sometimes you might have multiple .deb corresponding to different versions, in which case you need to use the one that corresponds to the version you have installed. To find the version of a package that is currently installed, you can use "apt-cache policy PACKAGENAME".

One point about the instructions at http://ubuntuforums.org/showpost.php?p=2635193&postcount=12 -- they say to use "sudo -s", which is a perfectly good thing to do, but something that many Ubuntu users are unfamiliar with. When you run a command with sudo, like "sudo apt-get update", it runs the command after the word "sudo" as the superuser. (The superuser is the user whose name is root and who has the ability to do anything; being an administrator on an Ubuntu system consists primarily of having the power to do things as root, using sudo or other means.) When you run the command "sudo -s", that gives you a **root shell**, so that every command is as though you had typed "sudo" before it (with a few tiny exceptions--one is that, in the root shell, you will never be asked for your password, no matter how much time has passed since your ran your last command). If you don't feel like using "sudo -s", you can just prepend "sudo " before every command you run that the instructions say to run in the root shell.

If you have difficult with those instructions, either because something doesn't make sense, or because something doesn't work properly (or for any other reason), please feel free to post again. If you are interested in the details of this really annoying problem that is occasionally experienced on Ubuntu, see bug 108189.

After you get this problem fixed, unless you know a likely cause for the corruption in /var/lib/dpkg/info, it would be a very good idea to scan your hard disk for errors, and fix them if present. (If you need help doing that, you can post a question and get help with that too.)

Benjamin lowden (ben-lowden) said : #19

So, i'm going to take a wild guess and say .. fresh install will be faster and easier?

Benjamin lowden (ben-lowden) said : #20

Also, by the sounds of it i should have a LOT of .deb files ...

I have 10..

A fresh install might be faster and easier--it depends on how much customization you've done to your Ubuntu system. Remember that Ubuntu doesn't support installing *over* an existing Ubuntu installation. You can either shrink down your existing installation and install a second Ubuntu alongside it, or (if you have one) install Ubuntu in already existing unpartitioned space or to a separate physical disk, or wipe out your existing Ubuntu system and replace it with the new installation. If you do a fresh install, this third option is probably the one you want. Just make sure to back up your files first! (You should make sure to back up your file before shrinking down an Ubuntu installation, too, as resizing a partition occasionally results in data loss...especially on drives that have problems and are prone to corruption.)

Before spending time fixing this problem on your existing Ubuntu installation, or spending time doing a fresh install, you might want to scan your disk for errors and fix whatever you find. If your drive has errors, then more problems could accumulate as you are "fixing" the problem.

As for the small number of .deb files, you don't always have a lot of them--sometimes they are deleted to free up space. However, in this case, it is *expected* that you wouldn't have very many, since the "sudo apt-get clean" command in step 4 of https://help.ubuntu.com/community/PackageManagerTroubleshootingProcedure deletes them. (Bad .deb files is also a cause of problems, and a number of problems can be fixed by removing them.)

The instructions at http://ubuntuforums.org/showpost.php?p=2635193&postcount=12 also tell you how to get .deb files that you don't have. You should make sure each .deb file obtained using that technique has the same package version as the installed package version indicated by "apt-cache policy PACKAGENAME". If you run this before pulling down the .deb package, and it indicates that "Installed" and "Candidate" are of the same version, then the .deb package you download with the technique in http://ubuntuforums.org/showpost.php?p=2635193&postcount=12 will be of the same version as the package you have installed, and you don't have to bother checking.

Benjamin lowden (ben-lowden) said : #22

Thanks Eliah Kagan, that solved my question.