snowy@snowy-OptiPlex-790:~$ sudo grep -R proxy /etc/apt/*
[sudo] password for snowy:
snowy@snowy-OptiPlex-790:~$ sudo grep -R proxy /etc/apt/*
snowy@snowy-OptiPlex-790:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.04
DISTRIB_CODENAME=precise
DISTRIB_DESCRIPTION="Ubuntu 12.04.1 LTS"
snowy@snowy-OptiPlex-790:~$ uname -a
Linux snowy-OptiPlex-790 3.2.0-29-generic-pae #46-Ubuntu SMP Fri Jul 27 17:25:43 UTC 2012 i686 i686 i386 GNU/Linux
snowy@snowy-OptiPlex-790:~$ sudo rm /var/lib/apt/lists/lock
snowy@snowy-OptiPlex-790:~$ sudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup
snowy@snowy-OptiPlex-790:~$ sudo mv /var/lib/dpkg/status /var/lib/dpkg/status-bad
snowy@snowy-OptiPlex-790:~$ sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status || sudo cp /var/backups/apt.extended_states.0 /var/lib/dpkg/status
snowy@snowy-OptiPlex-790:~$ sudo mv /var/lib/dpkg/available /var/lib/dpkg/available-bad
snowy@snowy-OptiPlex-790:~$ sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
snowy@snowy-OptiPlex-790:~$ sudo rm -rf /var/lib/dpkg/updates/*
snowy@snowy-OptiPlex-790:~$ sudo rm -rf /var/lib/apt/lists
snowy@snowy-OptiPlex-790:~$ sudo rm /var/cache/apt/*.bin
snowy@snowy-OptiPlex-790:~$ sudo mkdir /var/lib/apt/lists
snowy@snowy-OptiPlex-790:~$ sudo mkdir /var/lib/apt/lists/partial
snowy@snowy-OptiPlex-790:~$ LANG=C;sudo apt-get clean
snowy@snowy-OptiPlex-790:~$ LANG=C;sudo apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
snowy@snowy-OptiPlex-790:~$ LANG=C;sudo apt-get --purge autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
9 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up libgif4 (4.1.6-9ubuntu1) ...
Setting up emacsen-common (1.4.22ubuntu1) ...
emacsen-common: Handling install of emacsen flavor emacs
emacsen-common: Handling install of emacsen flavor emacs23
emacsen-common: byte-compiling for emacs23
Wrote /etc/emacs23/site-start.d/00debian-vars.elc
Wrote /usr/share/emacs23/site-lisp/debian-startup.elc
Setting up emacs23-common (23.3+1-1ubuntu9.1) ...
Setting up emacs23-bin-common (23.3+1-1ubuntu9.1) ...
Setting up libotf0 (0.9.12-1) ...
Setting up m17n-db (1.6.3-1) ...
Setting up m17n-contrib (1.1.13-1) ...
Setting up libm17n-0 (1.6.3-1) ...
Setting up emacs23 (23.3+1-1ubuntu9.1) ...
emacs-install emacs23
install/dictionaries-common: Already byte-compiled for emacs23. Skipping ...
emacsen-common: Handling install of emacsen flavor emacs23
emacsen-common: byte-compiling for emacs23
Wrote /etc/emacs23/site-start.d/00debian-vars.elc
Wrote /usr/share/emacs23/site-lisp/debian-startup.elc
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
snowy@snowy-OptiPlex-790:~$ LANG=C;sudo apt-get update -o APT::Cache-Limit=100000000
Ign http://archive.ubuntu.com precise InRelease
Ign http://archive.ubuntu.com precise-updates InRelease
Ign http://archive.ubuntu.com precise-backports InRelease
Ign http://archive.ubuntu.com precise-security InRelease
Get:1 http://archive.ubuntu.com precise Release.gpg [198 B]
Get:2 http://archive.ubuntu.com precise-updates Release.gpg [198 B]
Get:3 http://archive.ubuntu.com precise-backports Release.gpg [198 B]
Get:4 http://archive.ubuntu.com precise-security Release.gpg [198 B]
Get:5 http://archive.ubuntu.com precise Release [49.6 kB]
Get:6 http://archive.ubuntu.com precise-updates Release [49.6 kB]
Get:7 http://archive.ubuntu.com precise-backports Release [49.6 kB]
Get:8 http://archive.ubuntu.com precise-security Release [49.6 kB]
Get:9 http://archive.ubuntu.com precise/main Sources [1175 kB]
Get:10 http://archive.ubuntu.com precise/restricted Sources [5306 B]
Get:11 http://archive.ubuntu.com precise/universe Sources [6239 kB]
Get:12 http://archive.ubuntu.com precise/universe Sources [6239 kB]
Get:13 http://archive.ubuntu.com precise/universe Sources [6239 kB]
Get:14 http://archive.ubuntu.com precise/multiverse Sources [188 kB]
Get:15 http://archive.ubuntu.com precise/main i386 Packages [1641 kB]
Get:16 http://archive.ubuntu.com precise/restricted i386 Packages [9108 B]
Get:17 http://archive.ubuntu.com precise/universe i386 Packages [6180 kB]
Get:18 http://archive.ubuntu.com precise/multiverse i386 Packages [155 kB]
Get:19 http://archive.ubuntu.com precise/multiverse i386 Packages [155 kB]
Get:20 http://archive.ubuntu.com precise/main TranslationIndex [3706 B]
Get:21 http://archive.ubuntu.com precise/multiverse TranslationIndex [2676 B]
Get:22 http://archive.ubuntu.com precise/restricted TranslationIndex [2596 B]
Get:23 http://archive.ubuntu.com precise/restricted TranslationIndex [2596 B]
Get:24 http://archive.ubuntu.com precise/universe TranslationIndex [2922 B]
Get:25 http://archive.ubuntu.com precise-updates/main Sources [244 kB]
Get:26 http://archive.ubuntu.com precise-updates/restricted Sources [4192 B]
Get:27 http://archive.ubuntu.com precise-updates/universe Sources [78.3 kB]
Get:28 http://archive.ubuntu.com precise-updates/multiverse Sources [4176 B]
Get:29 http://archive.ubuntu.com precise-updates/main i386 Packages [566 kB]
Get:30 http://archive.ubuntu.com precise-updates/restricted i386 Packages [8510 B]
Get:31 http://archive.ubuntu.com precise-updates/universe i386 Packages [209 kB]
Get:32 http://archive.ubuntu.com precise-updates/multiverse i386 Packages [10.2 kB]
Get:33 http://archive.ubuntu.com precise-updates/multiverse i386 Packages [10.2 kB]
Get:34 http://archive.ubuntu.com precise-updates/main TranslationIndex [3564 B]
Get:35 http://archive.ubuntu.com precise-updates/multiverse TranslationIndex [2605 B]
Get:36 http://archive.ubuntu.com precise-updates/restricted TranslationIndex [2461 B]
Get:37 http://archive.ubuntu.com precise-updates/universe TranslationIndex [2850 B]
Get:38 http://archive.ubuntu.com precise-updates/universe TranslationIndex [2850 B]
Get:39 http://archive.ubuntu.com precise-backports/main Sources [2262 B]
Get:40 http://archive.ubuntu.com precise-backports/restricted Sources [20 B]
Get:41 http://archive.ubuntu.com precise-backports/universe Sources [20.4 kB]
Get:42 http://archive.ubuntu.com precise-backports/multiverse Sources [2511 B]
Get:43 http://archive.ubuntu.com precise-backports/main i386 Packages [1778 B]
Get:44 http://archive.ubuntu.com precise-backports/restricted i386 Packages [20 B]
Get:45 http://archive.ubuntu.com precise-backports/universe i386 Packages [18.9 kB]
Get:46 http://archive.ubuntu.com precise-backports/multiverse i386 Packages [2240 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 [67.7 kB]
Get:52 http://archive.ubuntu.com precise-security/restricted Sources [1742 B]
Get:53 http://archive.ubuntu.com precise-security/universe Sources [18.7 kB]
Get:54 http://archive.ubuntu.com precise-security/multiverse Sources [1242 B]
Get:55 http://archive.ubuntu.com precise-security/main i386 Packages [262 kB]
Get:56 http://archive.ubuntu.com precise-security/restricted i386 Packages [4197 B]
Get:57 http://archive.ubuntu.com precise-security/universe i386 Packages [70.9 kB]
Get:58 http://archive.ubuntu.com precise-security/multiverse i386 Packages [2139 B]
Get:59 http://archive.ubuntu.com precise-security/main TranslationIndex [73 B]
Get:60 http://archive.ubuntu.com precise-security/multiverse TranslationIndex [71 B]
Get:61 http://archive.ubuntu.com precise-security/restricted TranslationIndex [71 B]
Get:62 http://archive.ubuntu.com precise-security/universe TranslationIndex [73 B]
Get:63 http://archive.ubuntu.com precise/main Translation-en [893 kB]
Get:64 http://archive.ubuntu.com precise/multiverse Translation-en [112 kB]
Get:65 http://archive.ubuntu.com precise/restricted Translation-en [2018 B]
Get:66 http://archive.ubuntu.com precise/universe Translation-en [4133 kB]
Get:67 http://archive.ubuntu.com precise-updates/multiverse Translation-en [5579 B]
Get:68 http://archive.ubuntu.com precise-updates/restricted Translation-en [1658 B]
Get:69 http://archive.ubuntu.com precise-updates/universe Translation-en [118 kB]
Get:70 http://archive.ubuntu.com precise-backports/main Translation-en [1190 B]
Get:71 http://archive.ubuntu.com precise-backports/multiverse Translation-en [1284 B]
Get:72 http://archive.ubuntu.com precise-backports/restricted Translation-en [20 B]
Get:73 http://archive.ubuntu.com precise-backports/universe Translation-en [12.3 kB]
Get:74 http://archive.ubuntu.com precise-security/main Translation-en [122 kB]
Get:75 http://archive.ubuntu.com precise/universe Translation-en [4133 kB]
Get:76 http://archive.ubuntu.com precise-updates/main Translation-en [256 kB]
Get:77 http://archive.ubuntu.com precise-security/multiverse Translation-en [908 B]
Get:78 http://archive.ubuntu.com precise-security/restricted Translation-en [764 B]
Get:79 http://archive.ubuntu.com precise-security/universe Translation-en [39.5 kB]
Err http://archive.ubuntu.com precise/multiverse i386 Packages
404 Not Found [IP: 91.189.92.202 80]
Fetched 23.0 MB in 14min 26s (26.5 kB/s)
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise/multiverse/binary-i386/Packages 404 Not Found [IP: 91.189.92.202 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
snowy@snowy-OptiPlex-790:~$ sudo dpkg --configure -a
[sudo] password for snowy:
snowy@snowy-OptiPlex-790:~$ sudo dpkg --clear-avail
snowy@snowy-OptiPlex-790:~$ LANG=C;sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
snowy@snowy-OptiPlex-790:~$ LANG=C;sudo apt-get --fix-missing install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
snowy@snowy-OptiPlex-790:~$ LANG=C;sudo apt-get update -o APT::Cache-Limit=100000000 && sudo apt-get dist-upgrade
Ign http://archive.ubuntu.com precise InRelease
Ign http://archive.ubuntu.com precise-updates InRelease
Ign http://archive.ubuntu.com precise-backports InRelease
Ign http://archive.ubuntu.com precise-security InRelease
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
Hit http://archive.ubuntu.com precise Release
Hit http://archive.ubuntu.com precise-updates Release
Hit http://archive.ubuntu.com precise-backports Release
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
Hit http://archive.ubuntu.com precise/restricted i386 Packages
Hit http://archive.ubuntu.com precise/universe i386 Packages
Get:1 http://archive.ubuntu.com precise/multiverse i386 Packages [155 kB]
Hit http://archive.ubuntu.com precise/main TranslationIndex
Get:2 http://archive.ubuntu.com precise-security Release [1175 kB]
Get:3 http://archive.ubuntu.com precise/main Sources [1175 kB]
Ign http://archive.ubuntu.com precise-security Release
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
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/main Translation-en
Ign http://archive.ubuntu.com precise-security/main Sources/DiffIndex
Ign http://archive.ubuntu.com precise-security/restricted Sources/DiffIndex
Ign http://archive.ubuntu.com precise-security/universe Sources/DiffIndex
Ign http://archive.ubuntu.com precise-security/multiverse Sources/DiffIndex
Ign http://archive.ubuntu.com precise-security/main i386 Packages/DiffIndex
Ign http://archive.ubuntu.com precise-security/restricted i386 Packages/DiffIndex
Ign http://archive.ubuntu.com precise-security/universe i386 Packages/DiffIndex
Ign http://archive.ubuntu.com precise-security/multiverse i386 Packages/DiffIndex
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/multiverse Translation-en
Hit http://archive.ubuntu.com precise/restricted Translation-en
Hit http://archive.ubuntu.com precise/universe Translation-en
Get:4 http://archive.ubuntu.com precise-updates/main Translation-en [263 kB]
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
Err http://archive.ubuntu.com precise/multiverse i386 Packages
404 Not Found [IP: 91.189.92.200 80]
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 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 2613 kB in 17s (153 kB/s)
W: GPG error: http://archive.ubuntu.com precise-security Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <email address hidden>
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise/multiverse/binary-i386/Packages 404 Not Found [IP: 91.189.92.200 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
snowy@snowy-OptiPlex-790:~$ find /etc/apt -name '*.list' -exec bash -c 'echo -e "\n$1\n"; cat -n "$1"' _ '{}' \;
/etc/apt/sources.list
1 # deb cdrom:[Ubuntu 12.04.1 LTS _Precise Pangolin_ - Release i386 (20120817.3)]/ 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
snowy@snowy-OptiPlex-790:~$