ubuntu doesn't update

Asked by Jorge L. Barreda

Ubuntu simple doesn't update, I tried to follow the isnstruction in here https://help.ubuntu.com/community/PackageManagerTroubleshootingProcedure

and these what I have...

tim@Work:~$ sudo grep -R proxy /etc/apt/*
tim@Work:~$ grep proxy /etc/environment
tim@Work:~$ echo $http_proxy

tim@Work:~$ echo $ftp_proxy

tim@Work:~$ grep proxy /etc/bash.bashrc
tim@Work:~$ grep proxy ~/.bashrc
tim@Work:~$ cat /etc/apt/apt.conf
cat: /etc/apt/apt.conf: No such file or directory
tim@Work:~$ sudo fuser -vvv /var/lib/dpkg/lock
tim@Work:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.04
DISTRIB_CODENAME=precise
DISTRIB_DESCRIPTION="Ubuntu 12.04.2 LTS"
tim@Work:~$ uname -a
Linux Work 3.2.0-51-generic-pae #77-Ubuntu SMP Wed Jul 24 20:40:32 UTC 2013 i686 i686 i386 GNU/Linux
tim@Work:~$ sudo rm /var/lib/apt/lists/lock
tim@Work:~$ sudo rm /var/lib/dpkg/lock
tim@Work:~$ sudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup
cp: reading `/var/lib/dpkg/info/linux-headers-3.2.0-51-generic-pae.list': Input/output error
cp: failed to extend `/var/lib/dpkg.backup/info/linux-headers-3.2.0-51-generic-pae.list': Input/output error
tim@Work:~$ sudo mv /var/lib/dpkg/status /var/lib/dpkg/status-bad
tim@Work:~$ sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status || sudo cp /var/backups/apt.extended_states.0 /var/lib/dpkg/status
tim@Work:~$ sudo mv /var/lib/dpkg/available /var/lib/dpkg/available-bad
tim@Work:~$ sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
tim@Work:~$ sudo rm -rf /var/lib/dpkg/updates/*
tim@Work:~$ sudo rm -rf /var/lib/apt/lists
tim@Work:~$ sudo rm /var/cache/apt/*.bin
tim@Work:~$ sudo mkdir /var/lib/apt/lists
tim@Work:~$ sudo mkdir /var/lib/apt/lists/partial
tim@Work:~$ LANG=C;sudo apt-get clean
tim@Work:~$ LANG=C;sudo apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
tim@Work:~$ LANG=C;sudo apt-get --purge autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  libjpeg62* linux-headers-3.2.0-32* linux-headers-3.2.0-32-generic-pae*
0 upgraded, 0 newly installed, 3 to remove and 0 not upgraded.
After this operation, 67.7 MB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 50%dpkg: unrecoverable fatal error, aborting:
 reading files list for package 'linux-headers-3.2.0-51-generic-pae': Input/output error
E: Sub-process /usr/bin/dpkg returned an error code (2)
tim@Work:~$ LANG=C;sudo apt-get --fix-missing update -o APT::Cache-Limit=100000000
Get:1 http://download.mendeley.com stable Release.gpg [490 B]
Get:2 http://download.mendeley.com stable Release [1544 B]
Get:3 http://download.mendeley.com stable/main i386 Packages [577 B]
Ign http://download.mendeley.com stable/main TranslationIndex
Get:4 http://linux.dropbox.com precise Release.gpg [489 B]
Get:5 http://archive.ubuntu.com precise Release.gpg [198 B]
Get:6 http://archive.ubuntu.com precise-updates Release.gpg [198 B]
Get:7 http://archive.ubuntu.com precise-backports Release.gpg [198 B]
Get:8 http://archive.ubuntu.com precise-security Release.gpg [198 B]
Ign http://download.mendeley.com stable/main Translation-en
Get:9 http://linux.dropbox.com precise Release [2603 B]
Get:10 http://archive.ubuntu.com precise Release [49.6 kB]
Get:11 http://linux.dropbox.com precise/main i386 Packages [1148 B]
Ign http://linux.dropbox.com precise/main TranslationIndex
Get:12 http://archive.ubuntu.com precise-updates Release [49.6 kB]
Get:13 http://archive.ubuntu.com precise-backports Release [49.6 kB]
Get:14 http://archive.ubuntu.com precise-security Release [49.6 kB]
Get:15 http://archive.ubuntu.com precise/main Sources [934 kB]
Ign http://linux.dropbox.com precise/main Translation-en
Get:16 http://archive.ubuntu.com precise/restricted Sources [5470 B]
Get:17 http://archive.ubuntu.com precise/universe Sources [5019 kB]
Get:18 http://archive.ubuntu.com precise/multiverse Sources [155 kB]
Get:19 http://archive.ubuntu.com precise/main i386 Packages [1274 kB]
Get:20 http://archive.ubuntu.com precise/restricted i386 Packages [8431 B]
Get:21 http://archive.ubuntu.com precise/universe i386 Packages [4796 kB]
Get:22 http://archive.ubuntu.com precise/multiverse i386 Packages [121 kB]
Get:23 http://archive.ubuntu.com precise/main TranslationIndex [3706 B]
Get:24 http://archive.ubuntu.com precise/multiverse TranslationIndex [2676 B]
Get:25 http://archive.ubuntu.com precise/restricted TranslationIndex [2596 B]
Get:26 http://archive.ubuntu.com precise/universe TranslationIndex [2922 B]
Get:27 http://archive.ubuntu.com precise-updates/main Sources [417 kB]
Get:28 http://archive.ubuntu.com precise-updates/restricted Sources [7031 B]
Get:29 http://archive.ubuntu.com precise-updates/universe Sources [95.7 kB]
Get:30 http://archive.ubuntu.com precise-updates/multiverse Sources [8343 B]
Get:31 http://archive.ubuntu.com precise-updates/main i386 Packages [707 kB]
Get:32 http://archive.ubuntu.com precise-updates/restricted i386 Packages [11.4 kB]
Get:33 http://archive.ubuntu.com precise-updates/universe i386 Packages [219 kB]
Get:34 http://archive.ubuntu.com precise-updates/multiverse i386 Packages [14.0 kB]
Get:35 http://archive.ubuntu.com precise-updates/main TranslationIndex [3564 B]
Get:36 http://archive.ubuntu.com precise-updates/multiverse TranslationIndex [2605 B]
Get:37 http://archive.ubuntu.com precise-updates/restricted TranslationIndex [2461 B]
Get:38 http://archive.ubuntu.com precise-updates/universe TranslationIndex [2850 B]
Get:39 http://archive.ubuntu.com precise-backports/main Sources [2935 B]
Get:40 http://archive.ubuntu.com precise-backports/restricted Sources [14 B]
Get:41 http://archive.ubuntu.com precise-backports/universe Sources [35.2 kB]
Get:42 http://archive.ubuntu.com precise-backports/multiverse Sources [5311 B]
Get:43 http://archive.ubuntu.com precise-backports/main i386 Packages [2390 B]
Get:44 http://archive.ubuntu.com precise-backports/restricted i386 Packages [14 B]
Get:45 http://archive.ubuntu.com precise-backports/universe i386 Packages [36.1 kB]
Get:46 http://archive.ubuntu.com precise-backports/multiverse i386 Packages [5178 B]
Get:47 http://archive.ubuntu.com precise-backports/main TranslationIndex [72 B]
Get:48 http://archive.ubuntu.com precise-backports/multiverse TranslationIndex [72 B]
Get:49 http://archive.ubuntu.com precise-backports/restricted TranslationIndex [70 B]
Get:50 http://archive.ubuntu.com precise-backports/universe TranslationIndex [73 B]
Get:51 http://archive.ubuntu.com precise-security/main Sources [85.2 kB]
Get:52 http://archive.ubuntu.com precise-security/restricted Sources [2494 B]
Get:53 http://archive.ubuntu.com precise-security/universe Sources [28.0 kB]
Get:54 http://archive.ubuntu.com precise-security/multiverse Sources [1804 B]
Get:55 http://archive.ubuntu.com precise-security/main i386 Packages [331 kB]
Get:56 http://archive.ubuntu.com precise-security/restricted i386 Packages [4620 B]
Get:57 http://archive.ubuntu.com precise-security/universe i386 Packages [84.5 kB]
Get:58 http://archive.ubuntu.com precise-security/multiverse i386 Packages [2640 B]
Get:59 http://archive.ubuntu.com precise-security/main TranslationIndex [74 B]
Get:60 http://archive.ubuntu.com precise-security/multiverse TranslationIndex [72 B]
Get:61 http://archive.ubuntu.com precise-security/restricted TranslationIndex [72 B]
Get:62 http://archive.ubuntu.com precise-security/universe TranslationIndex [73 B]
Get:63 http://archive.ubuntu.com precise/main Translation-en [726 kB]
Get:64 http://archive.ubuntu.com precise/multiverse Translation-en [93.4 kB]
Get:65 http://archive.ubuntu.com precise/restricted Translation-en [2395 B]
Get:66 http://archive.ubuntu.com precise/universe Translation-en [3341 kB]
Get:67 http://archive.ubuntu.com precise-updates/main Translation-en [310 kB]
Get:68 http://archive.ubuntu.com precise-updates/multiverse Translation-en [8064 B]
Get:69 http://archive.ubuntu.com precise-updates/restricted Translation-en [2637 B]
Get:70 http://archive.ubuntu.com precise-updates/universe Translation-en [126 kB]
Get:71 http://archive.ubuntu.com precise-backports/main Translation-en [1512 B]
Get:72 http://archive.ubuntu.com precise-backports/multiverse Translation-en [4610 B]
Get:73 http://archive.ubuntu.com precise-backports/restricted Translation-en [14 B]
Get:74 http://archive.ubuntu.com precise-backports/universe Translation-en [26.5 kB]
Get:75 http://archive.ubuntu.com precise-security/main Translation-en [150 kB]
Get:76 http://archive.ubuntu.com precise-security/multiverse Translation-en [1299 B]
Get:77 http://archive.ubuntu.com precise-security/restricted Translation-en [1253 B]
Get:78 http://archive.ubuntu.com precise-security/universe Translation-en [51.9 kB]
Fetched 19.5 MB in 1min 15s (258 kB/s)
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
tim@Work:~$ sudo dpkg --configure -a
tim@Work:~$ sudo dpkg --clear-avail
tim@Work:~$ LANG=C;sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-headers-3.2.0-32 libjpeg62 linux-headers-3.2.0-32-generic-pae
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 78 not upgraded.
tim@Work:~$ LANG=C;sudo apt-get --fix-missing install
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-headers-3.2.0-32 libjpeg62 linux-headers-3.2.0-32-generic-pae
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 78 not upgraded.
tim@Work:~$ LANG=C;sudo apt-get update -o APT::Cache-Limit=100000000 && sudo apt-get dist-upgrade
Hit http://download.mendeley.com stable Release.gpg
Hit http://download.mendeley.com stable Release
Hit http://download.mendeley.com stable/main i386 Packages
Get:1 http://linux.dropbox.com precise Release.gpg [489 B]
Ign http://download.mendeley.com stable/main TranslationIndex
Hit http://archive.ubuntu.com precise Release.gpg
Hit http://archive.ubuntu.com precise-updates Release.gpg
Hit http://archive.ubuntu.com precise-backports Release.gpg
Hit http://archive.ubuntu.com precise-security Release.gpg
Get:2 http://linux.dropbox.com precise Release [2603 B]
Hit http://archive.ubuntu.com precise Release
Get:3 http://linux.dropbox.com precise/main i386 Packages [1148 B]
Ign http://linux.dropbox.com precise/main TranslationIndex
Hit http://archive.ubuntu.com precise-updates Release
Hit http://archive.ubuntu.com precise-backports Release
Hit http://archive.ubuntu.com precise-security Release
Hit http://archive.ubuntu.com precise/main Sources
Hit http://archive.ubuntu.com precise/restricted Sources
Hit http://archive.ubuntu.com precise/universe Sources
Hit http://archive.ubuntu.com precise/multiverse Sources
Hit http://archive.ubuntu.com precise/main i386 Packages
Ign http://download.mendeley.com stable/main Translation-en
Hit http://archive.ubuntu.com precise/restricted i386 Packages
Hit http://archive.ubuntu.com precise/universe i386 Packages
Hit http://archive.ubuntu.com precise/multiverse i386 Packages
Hit http://archive.ubuntu.com precise/main TranslationIndex
Hit http://archive.ubuntu.com precise/multiverse TranslationIndex
Hit http://archive.ubuntu.com precise/restricted TranslationIndex
Hit http://archive.ubuntu.com precise/universe TranslationIndex
Hit http://archive.ubuntu.com precise-updates/main Sources
Hit http://archive.ubuntu.com precise-updates/restricted Sources
Hit http://archive.ubuntu.com precise-updates/universe Sources
Hit http://archive.ubuntu.com precise-updates/multiverse Sources
Hit http://archive.ubuntu.com precise-updates/main i386 Packages
Hit http://archive.ubuntu.com precise-updates/restricted i386 Packages
Hit http://archive.ubuntu.com precise-updates/universe i386 Packages
Hit http://archive.ubuntu.com precise-updates/multiverse i386 Packages
Ign http://linux.dropbox.com precise/main Translation-en
Hit http://archive.ubuntu.com precise-updates/main TranslationIndex
Hit http://archive.ubuntu.com precise-updates/multiverse TranslationIndex
Hit http://archive.ubuntu.com precise-updates/restricted TranslationIndex
Hit http://archive.ubuntu.com precise-updates/universe TranslationIndex
Hit http://archive.ubuntu.com precise-backports/main Sources
Hit http://archive.ubuntu.com precise-backports/restricted Sources
Hit http://archive.ubuntu.com precise-backports/universe Sources
Hit http://archive.ubuntu.com precise-backports/multiverse Sources
Hit http://archive.ubuntu.com precise-backports/main i386 Packages
Hit http://archive.ubuntu.com precise-backports/restricted i386 Packages
Hit http://archive.ubuntu.com precise-backports/universe i386 Packages
Hit http://archive.ubuntu.com precise-backports/multiverse i386 Packages
Hit http://archive.ubuntu.com precise-backports/main TranslationIndex
Hit http://archive.ubuntu.com precise-backports/multiverse TranslationIndex
Hit http://archive.ubuntu.com precise-backports/restricted TranslationIndex
Hit http://archive.ubuntu.com precise-backports/universe TranslationIndex
Hit http://archive.ubuntu.com precise-security/main Sources
Hit http://archive.ubuntu.com precise-security/restricted Sources
Hit http://archive.ubuntu.com precise-security/universe Sources
Hit http://archive.ubuntu.com precise-security/multiverse Sources
Hit http://archive.ubuntu.com precise-security/main i386 Packages
Hit http://archive.ubuntu.com precise-security/restricted i386 Packages
Hit http://archive.ubuntu.com precise-security/universe i386 Packages
Hit http://archive.ubuntu.com precise-security/multiverse i386 Packages
Hit http://archive.ubuntu.com precise-security/main TranslationIndex
Hit http://archive.ubuntu.com precise-security/multiverse TranslationIndex
Hit http://archive.ubuntu.com precise-security/restricted TranslationIndex
Hit http://archive.ubuntu.com precise-security/universe TranslationIndex
Hit http://archive.ubuntu.com precise/main Translation-en
Hit http://archive.ubuntu.com precise/multiverse Translation-en
Hit http://archive.ubuntu.com precise/restricted Translation-en
Hit http://archive.ubuntu.com precise/universe Translation-en
Hit http://archive.ubuntu.com precise-updates/main Translation-en
Hit http://archive.ubuntu.com precise-updates/multiverse Translation-en
Hit http://archive.ubuntu.com precise-updates/restricted Translation-en
Hit http://archive.ubuntu.com precise-updates/universe Translation-en
Hit http://archive.ubuntu.com precise-backports/main Translation-en
Hit http://archive.ubuntu.com precise-backports/multiverse Translation-en
Hit http://archive.ubuntu.com precise-backports/restricted Translation-en
Hit http://archive.ubuntu.com precise-backports/universe Translation-en
Hit http://archive.ubuntu.com precise-security/main Translation-en
Hit http://archive.ubuntu.com precise-security/multiverse Translation-en
Hit http://archive.ubuntu.com precise-security/restricted Translation-en
Hit http://archive.ubuntu.com precise-security/universe Translation-en
Fetched 4240 B in 1s (2737 B/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following NEW packages will be installed:
  linux-headers-3.2.0-53 linux-headers-3.2.0-53-generic-pae linux-image-3.2.0-53-generic-pae
The following packages will be upgraded:
  apparmor apport apport-gtk apt apt-transport-https apt-utils base-files dosfstools duplicity evince evince-common firefox
  firefox-globalmenu firefox-locale-en flashplugin-installer gir1.2-dbusmenu-glib-0.4 gir1.2-dbusmenu-gtk-0.4 gir1.2-gudev-1.0
  gnome-control-center gnome-control-center-data grub-common grub-pc grub-pc-bin grub2-common initramfs-tools initramfs-tools-bin
  jockey-common jockey-gtk libapt-inst1.4 libapt-pkg4.12 libasn1-8-heimdal libdbusmenu-glib4 libdbusmenu-gtk3-4 libdbusmenu-gtk4
  libevince3-3 libgnome-control-center1 libgssapi3-heimdal libgudev-1.0-0 libhcrypto4-heimdal libheimbase1-heimdal libheimntlm0-heimdal
  libhx509-5-heimdal libkrb5-26-heimdal libnm-glib-vpn1 libnm-glib4 libnm-util2 libpci3 libroken18-heimdal libudev0 libwind0-heimdal
  libx11-6 libx11-data libx11-xcb1 linux-generic-pae linux-headers-generic-pae linux-image-generic-pae linux-libc-dev lsb-base lsb-release
  network-manager pciutils python-apport python-httplib2 python-problem-report remmina remmina-common remmina-plugin-rdp remmina-plugin-vnc
  sessioninstaller thunderbird thunderbird-globalmenu thunderbird-gnome-support thunderbird-locale-en thunderbird-locale-en-us tzdata udev
  whoopsie xul-ext-ubufox
78 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 117 MB of archives.
After this operation, 183 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://archive.ubuntu.com/ubuntu/ precise-updates/main base-files i386 6.5ubuntu6.6 [65.8 kB]
Get:2 http://archive.ubuntu.com/ubuntu/ precise-updates/main libapt-pkg4.12 i386 0.8.16~exp12ubuntu10.12 [944 kB]
Get:3 http://archive.ubuntu.com/ubuntu/ precise-updates/main apt i386 0.8.16~exp12ubuntu10.12 [1096 kB]
Get:4 http://archive.ubuntu.com/ubuntu/ precise-updates/main libapt-inst1.4 i386 0.8.16~exp12ubuntu10.12 [102 kB]
Get:5 http://archive.ubuntu.com/ubuntu/ precise-updates/main libudev0 i386 175-0ubuntu9.4 [32.3 kB]
Get:6 http://archive.ubuntu.com/ubuntu/ precise-updates/main lsb-base all 4.0-0ubuntu20.3 [10.5 kB]
Get:7 http://archive.ubuntu.com/ubuntu/ precise-updates/main initramfs-tools all 0.99ubuntu13.2 [49.2 kB]
Get:8 http://archive.ubuntu.com/ubuntu/ precise-updates/main initramfs-tools-bin i386 0.99ubuntu13.2 [9758 B]
Get:9 http://archive.ubuntu.com/ubuntu/ precise-updates/main udev i386 175-0ubuntu9.4 [350 kB]
Get:10 http://archive.ubuntu.com/ubuntu/ precise-updates/main apparmor i386 2.7.102-0ubuntu3.9 [360 kB]
Get:11 http://archive.ubuntu.com/ubuntu/ precise-updates/main libroken18-heimdal i386 1.6~git20120311.dfsg.1-2ubuntu0.1 [47.5 kB]
Get:12 http://archive.ubuntu.com/ubuntu/ precise-updates/main libasn1-8-heimdal i386 1.6~git20120311.dfsg.1-2ubuntu0.1 [242 kB]
Get:13 http://archive.ubuntu.com/ubuntu/ precise-updates/main libhcrypto4-heimdal i386 1.6~git20120311.dfsg.1-2ubuntu0.1 [104 kB]
Get:14 http://archive.ubuntu.com/ubuntu/ precise-updates/main libheimbase1-heimdal i386 1.6~git20120311.dfsg.1-2ubuntu0.1 [33.3 kB]
Get:15 http://archive.ubuntu.com/ubuntu/ precise-updates/main libwind0-heimdal i386 1.6~git20120311.dfsg.1-2ubuntu0.1 [77.8 kB]
Get:16 http://archive.ubuntu.com/ubuntu/ precise-updates/main libhx509-5-heimdal i386 1.6~git20120311.dfsg.1-2ubuntu0.1 [127 kB]
Get:17 http://archive.ubuntu.com/ubuntu/ precise-updates/main libkrb5-26-heimdal i386 1.6~git20120311.dfsg.1-2ubuntu0.1 [240 kB]
Get:18 http://archive.ubuntu.com/ubuntu/ precise-updates/main libheimntlm0-heimdal i386 1.6~git20120311.dfsg.1-2ubuntu0.1 [16.8 kB]
Get:19 http://archive.ubuntu.com/ubuntu/ precise-updates/main libgssapi3-heimdal i386 1.6~git20120311.dfsg.1-2ubuntu0.1 [112 kB]
Get:20 http://archive.ubuntu.com/ubuntu/ precise-updates/main pciutils i386 1:3.1.8-2ubuntu6 [258 kB]
Get:21 http://archive.ubuntu.com/ubuntu/ precise-updates/main libpci3 i386 1:3.1.8-2ubuntu6 [25.9 kB]
Get:22 http://archive.ubuntu.com/ubuntu/ precise-updates/main libx11-data all 2:1.4.99.1-0ubuntu2.2 [172 kB]
Get:23 http://archive.ubuntu.com/ubuntu/ precise-updates/main libx11-6 i386 2:1.4.99.1-0ubuntu2.2 [771 kB]
Get:24 http://archive.ubuntu.com/ubuntu/ precise-updates/main gir1.2-dbusmenu-gtk-0.4 i386 0.6.2-0ubuntu0.2 [3292 B]
Get:25 http://archive.ubuntu.com/ubuntu/ precise-updates/main libdbusmenu-gtk4 i386 0.6.2-0ubuntu0.2 [31.1 kB]
Get:26 http://archive.ubuntu.com/ubuntu/ precise-updates/main gir1.2-dbusmenu-glib-0.4 i386 0.6.2-0ubuntu0.2 [7142 B]
Get:27 http://archive.ubuntu.com/ubuntu/ precise-updates/main libdbusmenu-glib4 i386 0.6.2-0ubuntu0.2 [47.3 kB]
Get:28 http://archive.ubuntu.com/ubuntu/ precise-updates/main libdbusmenu-gtk3-4 i386 0.6.2-0ubuntu0.2 [31.2 kB]
Get:29 http://archive.ubuntu.com/ubuntu/ precise-updates/main libgudev-1.0-0 i386 1:175-0ubuntu9.4 [14.6 kB]
Get:30 http://archive.ubuntu.com/ubuntu/ precise-updates/main libx11-xcb1 i386 2:1.4.99.1-0ubuntu2.2 [10.5 kB]
Get:31 http://archive.ubuntu.com/ubuntu/ precise-updates/main linux-image-3.2.0-53-generic-pae i386 3.2.0-53.81 [38.3 MB]
Get:32 http://archive.ubuntu.com/ubuntu/ precise-updates/main libnm-util2 i386 0.9.4.0-0ubuntu4.3 [136 kB]
Get:33 http://archive.ubuntu.com/ubuntu/ precise-updates/main libnm-glib4 i386 0.9.4.0-0ubuntu4.3 [85.5 kB]
Get:34 http://archive.ubuntu.com/ubuntu/ precise-updates/main network-manager i386 0.9.4.0-0ubuntu4.3 [531 kB]
Get:35 http://archive.ubuntu.com/ubuntu/ precise-updates/main whoopsie i386 0.1.33 [26.4 kB]
Get:36 http://archive.ubuntu.com/ubuntu/ precise-updates/main tzdata all 2013d-0ubuntu0.12.04 [483 kB]
Get:37 http://archive.ubuntu.com/ubuntu/ precise-updates/main apt-utils i386 0.8.16~exp12ubuntu10.12 [194 kB]
Get:38 http://archive.ubuntu.com/ubuntu/ precise-updates/main lsb-release all 4.0-0ubuntu20.3 [11.0 kB]
Get:39 http://archive.ubuntu.com/ubuntu/ precise-updates/main apt-transport-https i386 0.8.16~exp12ubuntu10.12 [16.3 kB]
Get:40 http://archive.ubuntu.com/ubuntu/ precise-updates/main dosfstools i386 3.0.12-1ubuntu1.1 [78.0 kB]
Get:41 http://archive.ubuntu.com/ubuntu/ precise-updates/main python-problem-report all 2.0.1-0ubuntu17.4 [9342 B]
Get:42 http://archive.ubuntu.com/ubuntu/ precise-updates/main python-apport all 2.0.1-0ubuntu17.4 [81.1 kB]
Get:43 http://archive.ubuntu.com/ubuntu/ precise-updates/main apport all 2.0.1-0ubuntu17.4 [147 kB]
Get:44 http://archive.ubuntu.com/ubuntu/ precise-updates/main apport-gtk all 2.0.1-0ubuntu17.4 [9200 B]
Get:45 http://archive.ubuntu.com/ubuntu/ precise-updates/main duplicity i386 0.6.18-0ubuntu3.2 [189 kB]
Get:46 http://archive.ubuntu.com/ubuntu/ precise-updates/main evince i386 3.4.0-0ubuntu1.7 [207 kB]
Get:47 http://archive.ubuntu.com/ubuntu/ precise-updates/main libevince3-3 i386 3.4.0-0ubuntu1.7 [357 kB]
Get:48 http://archive.ubuntu.com/ubuntu/ precise-updates/main evince-common all 3.4.0-0ubuntu1.7 [476 kB]
Get:49 http://archive.ubuntu.com/ubuntu/ precise-updates/main firefox i386 23.0+build2-0ubuntu0.12.04.1 [27.4 MB]
Get:50 http://archive.ubuntu.com/ubuntu/ precise-updates/main firefox-globalmenu i386 23.0+build2-0ubuntu0.12.04.1 [18.3 kB]
Get:51 http://archive.ubuntu.com/ubuntu/ precise-updates/main firefox-locale-en i386 23.0+build2-0ubuntu0.12.04.1 [574 kB]
Get:52 http://archive.ubuntu.com/ubuntu/ precise-updates/multiverse flashplugin-installer i386 11.2.202.310ubuntu0.12.04.1 [6918 B]
Get:53 http://archive.ubuntu.com/ubuntu/ precise-updates/main gir1.2-gudev-1.0 i386 175-0ubuntu9.4 [3972 B]
Get:54 http://archive.ubuntu.com/ubuntu/ precise-updates/main libgnome-control-center1 i386 1:3.4.2-0ubuntu0.12 [78.6 kB]
Get:55 http://archive.ubuntu.com/ubuntu/ precise-updates/main gnome-control-center-data all 1:3.4.2-0ubuntu0.12 [1121 kB]
Get:56 http://archive.ubuntu.com/ubuntu/ precise-updates/main gnome-control-center i386 1:3.4.2-0ubuntu0.12 [663 kB]
Get:57 http://archive.ubuntu.com/ubuntu/ precise-updates/main grub-pc i386 1.99-21ubuntu3.10 [140 kB]
Get:58 http://archive.ubuntu.com/ubuntu/ precise-updates/main grub-pc-bin i386 1.99-21ubuntu3.10 [876 kB]
Get:59 http://archive.ubuntu.com/ubuntu/ precise-updates/main grub2-common i386 1.99-21ubuntu3.10 [94.3 kB]
Get:60 http://archive.ubuntu.com/ubuntu/ precise-updates/main grub-common i386 1.99-21ubuntu3.10 [2096 kB]
Get:61 http://archive.ubuntu.com/ubuntu/ precise-updates/main jockey-gtk all 0.9.7-0ubuntu7.10 [9108 B]
Get:62 http://archive.ubuntu.com/ubuntu/ precise-updates/main jockey-common all 0.9.7-0ubuntu7.10 [133 kB]
Get:63 http://archive.ubuntu.com/ubuntu/ precise-updates/main libnm-glib-vpn1 i386 0.9.4.0-0ubuntu4.3 [14.3 kB]
Get:64 http://archive.ubuntu.com/ubuntu/ precise-updates/main linux-generic-pae i386 3.2.0.53.63 [1726 B]
Get:65 http://archive.ubuntu.com/ubuntu/ precise-updates/main linux-image-generic-pae i386 3.2.0.53.63 [2358 B]
Get:66 http://archive.ubuntu.com/ubuntu/ precise-updates/main linux-headers-3.2.0-53 all 3.2.0-53.81 [11.7 MB]
Get:67 http://archive.ubuntu.com/ubuntu/ precise-updates/main linux-headers-3.2.0-53-generic-pae i386 3.2.0-53.81 [974 kB]
Get:68 http://archive.ubuntu.com/ubuntu/ precise-updates/main linux-headers-generic-pae i386 3.2.0.53.63 [2350 B]
Get:69 http://archive.ubuntu.com/ubuntu/ precise-updates/main linux-libc-dev i386 3.2.0-53.81 [857 kB]
Get:70 http://archive.ubuntu.com/ubuntu/ precise-updates/main python-httplib2 all 0.7.2-1ubuntu2.1 [57.1 kB]
Get:71 http://archive.ubuntu.com/ubuntu/ precise-updates/main remmina-plugin-rdp i386 1.0.0-1ubuntu6.3 [31.6 kB]
Get:72 http://archive.ubuntu.com/ubuntu/ precise-updates/main remmina-plugin-vnc i386 1.0.0-1ubuntu6.3 [20.1 kB]
Get:73 http://archive.ubuntu.com/ubuntu/ precise-updates/main remmina i386 1.0.0-1ubuntu6.3 [134 kB]
Get:74 http://archive.ubuntu.com/ubuntu/ precise-updates/main remmina-common all 1.0.0-1ubuntu6.3 [47.7 kB]
Get:75 http://archive.ubuntu.com/ubuntu/ precise-updates/main thunderbird-globalmenu i386 17.0.8+build1-0ubuntu0.12.04.1 [49.9 kB]
Get:76 http://archive.ubuntu.com/ubuntu/ precise-updates/main thunderbird-locale-en i386 1:17.0.8+build1-0ubuntu0.12.04.1 [340 kB]
Get:77 http://archive.ubuntu.com/ubuntu/ precise-updates/main thunderbird i386 17.0.8+build1-0ubuntu0.12.04.1 [23.0 MB]
Get:78 http://archive.ubuntu.com/ubuntu/ precise-updates/main thunderbird-gnome-support i386 17.0.8+build1-0ubuntu0.12.04.1 [9196 B]
Get:79 http://archive.ubuntu.com/ubuntu/ precise-updates/main thunderbird-locale-en-us all 1:17.0.8+build1-0ubuntu0.12.04.1 [11.6 kB]
Get:80 http://archive.ubuntu.com/ubuntu/ precise-updates/main xul-ext-ubufox all 2.7-0ubuntu0.12.04.1 [56.8 kB]
Get:81 http://archive.ubuntu.com/ubuntu/ precise-updates/main sessioninstaller all 0.20+bzr128-0ubuntu1.3 [29.5 kB]
Fetched 117 MB in 5min 23s (362 kB/s)
Extracting templates from packages: 100%
Preconfiguring packages ...
(Reading database ... 50%dpkg: unrecoverable fatal error, aborting:
 reading files list for package 'linux-headers-3.2.0-51-generic-pae': Input/output error
E: Sub-process /usr/bin/dpkg returned an error code (2)
tim@Work:~$ find /etc/apt -name '*.list' -exec bash -c 'echo -e "\n$1\n"; cat -n "$1"' _ '{}' \;

/etc/apt/sources.list.d/mendeleydesktop.list

     1 # This file lists the repositories for Mendeley Desktop.
     2 #
     3 # These repositories should work with most recent Debian/Ubuntu-based Linux
     4 # distributions.
     5 #
     6 # If you have any problems with Mendeley's Debian/Ubuntu repositories,
     7 # you can let us know at http://feedback.mendeley.com
     8
     9 deb http://download.mendeley.com/apt/ stable main

/etc/apt/sources.list.d/dropbox.list

     1 deb http://linux.dropbox.com/ubuntu precise main

/etc/apt/sources.list

     1 # deb cdrom:[Ubuntu 12.04 LTS _Precise Pangolin_ - Release i386 (20120423)]/ precise main restricted
     2
     3 # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
     4 # newer versions of the distribution.
     5 deb http://archive.ubuntu.com/ubuntu precise main restricted
     6 deb-src http://archive.ubuntu.com/ubuntu precise main restricted
     7
     8 ## Major bug fix updates produced after the final release of the
     9 ## distribution.
    10 deb http://archive.ubuntu.com/ubuntu precise-updates main restricted
    11 deb-src http://archive.ubuntu.com/ubuntu precise-updates main restricted
    12
    13 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    14 ## team. Also, please note that software in universe WILL NOT receive any
    15 ## review or updates from the Ubuntu security team.
    16 deb http://archive.ubuntu.com/ubuntu precise universe
    17 deb-src http://archive.ubuntu.com/ubuntu precise universe
    18 deb http://archive.ubuntu.com/ubuntu precise-updates universe
    19 deb-src http://archive.ubuntu.com/ubuntu precise-updates universe
    20
    21 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    22 ## team, and may not be under a free licence. Please satisfy yourself as to
    23 ## your rights to use the software. Also, please note that software in
    24 ## multiverse WILL NOT receive any review or updates from the Ubuntu
    25 ## security team.
    26 deb http://archive.ubuntu.com/ubuntu precise multiverse
    27 deb-src http://archive.ubuntu.com/ubuntu precise multiverse
    28 deb http://archive.ubuntu.com/ubuntu precise-updates multiverse
    29 deb-src http://archive.ubuntu.com/ubuntu precise-updates multiverse
    30
    31 ## N.B. software from this repository may not have been tested as
    32 ## extensively as that contained in the main release, although it includes
    33 ## newer versions of some applications which may provide useful features.
    34 ## Also, please note that software in backports WILL NOT receive any review
    35 ## or updates from the Ubuntu security team.
    36 deb http://archive.ubuntu.com/ubuntu precise-backports main restricted universe multiverse
    37 deb-src http://archive.ubuntu.com/ubuntu precise-backports main restricted universe multiverse
    38
    39 deb http://archive.ubuntu.com/ubuntu precise-security main restricted
    40 deb-src http://archive.ubuntu.com/ubuntu precise-security main restricted
    41 deb http://archive.ubuntu.com/ubuntu precise-security universe
    42 deb-src http://archive.ubuntu.com/ubuntu precise-security universe
    43 deb http://archive.ubuntu.com/ubuntu precise-security multiverse
    44 deb-src http://archive.ubuntu.com/ubuntu precise-security multiverse
    45
    46 ## Uncomment the following two lines to add software from Canonical's
    47 ## 'partner' repository.
    48 ## This software is not part of Ubuntu, but is offered by Canonical and the
    49 ## respective vendors as a service to Ubuntu users.
    50 # deb http://archive.canonical.com/ubuntu precise partner
    51 # deb-src http://archive.canonical.com/ubuntu precise partner
    52
    53 ## This software is not part of Ubuntu, but is offered by third-party
    54 ## developers who want to ship their latest software.
    55 # deb http://extras.ubuntu.com/ubuntu precise main
    56 # deb-src http://extras.ubuntu.com/ubuntu precise main

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Solved by:
Jorge L. Barreda
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

sudo apt-get --reinstall install linux-headers-3.2.0-51-generic-pae

Revision history for this message
Jorge L. Barreda (jorge-luis-barreda) said :
#2

Thanks for the reply, but I'm still getting the same error message

tim@Work:~$ sudo apt-get --reinstall install linux-headers-3.2.0-51-generic-pae
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-headers-3.2.0-32 libjpeg62 linux-headers-3.2.0-32-generic-pae
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 78 not upgraded.
Need to get 0 B/974 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 50%dpkg: unrecoverable fatal error, aborting:
 reading files list for package 'linux-headers-3.2.0-51-generic-pae': Input/output error
E: Sub-process /usr/bin/dpkg returned an error code (2)
tim@Work:~$ sudo dpkg --configure -a --force-all
tim@Work:~$ sudo dpkg --configure -a --force-all
tim@Work:~$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-headers-3.2.0-32 libjpeg62 linux-headers-3.2.0-32-generic-pae
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 78 not upgraded.
tim@Work:~$ sudo apt-get --reinstall install linux-headers-3.2.0-51-generic-pae
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-headers-3.2.0-32 libjpeg62 linux-headers-3.2.0-32-generic-pae
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 78 not upgraded.
Need to get 0 B/974 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 50%dpkg: unrecoverable fatal error, aborting:
 reading files list for package 'linux-headers-3.2.0-51-generic-pae': Input/output error
E: Sub-process /usr/bin/dpkg returned an error code (2)

Revision history for this message
Jorge L. Barreda (jorge-luis-barreda) said :
#3

I found a solution to the input/output error here...
http://ubuntuforums.org/archive/index.php/t-1232143.html