apt-get update fails after upgrade to 12.04

Asked by vinay p

vinaypubu@vinaypubu-Lenovo-IdeaPad-Y550:~$ sudo apt-get update
[sudo] password for vinaypubu:
Sorry, try again.
[sudo] password for vinaypubu:
Err http://archive.ubuntu.com precise InRelease

Err http://archive.ubuntu.com precise-updates InRelease

Err http://archive.ubuntu.com precise-security InRelease

Err http://archive.ubuntu.com precise-proposed InRelease

Err http://archive.ubuntu.com precise-backports InRelease

Err http://archive.ubuntu.com precise Release.gpg
  Unable to connect to localhost:8080:
Err http://archive.ubuntu.com precise-updates Release.gpg
  Unable to connect to localhost:8080:
Err http://archive.ubuntu.com precise-security Release.gpg
  Unable to connect to localhost:8080:
Err http://archive.ubuntu.com precise-proposed Release.gpg
  Unable to connect to localhost:8080:
Err http://archive.ubuntu.com precise-backports Release.gpg
  Unable to connect to localhost:8080:
Reading package lists... Done
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise/InRelease

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise-updates/InRelease

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise-security/InRelease

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise-proposed/InRelease

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise-backports/InRelease

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise/Release.gpg Unable to connect to localhost:8080:

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise-updates/Release.gpg Unable to connect to localhost:8080:

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise-security/Release.gpg Unable to connect to localhost:8080:

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise-proposed/Release.gpg Unable to connect to localhost:8080:

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise-backports/Release.gpg Unable to connect to localhost:8080:

W: Some index files failed to download. They have been ignored, or old ones used instead.
vinaypubu@vinaypubu-Lenovo-IdeaPad-Y550:~$ clear

vinaypubu@vinaypubu-Lenovo-IdeaPad-Y550:~$ python anondownloadgui.py
python: can't open file 'anondownloadgui.py': [Errno 2] No such file or directory
vinaypubu@vinaypubu-Lenovo-IdeaPad-Y550:~$ cd Desktop/sec-tools/anomos/
vinaypubu@vinaypubu-Lenovo-IdeaPad-Y550:~/Desktop/sec-tools/anomos$ clear

vinaypubu@vinaypubu-Lenovo-IdeaPad-Y550:~/Desktop/sec-tools/anomos$ python anondownloadgui.py
Traceback (most recent call last):
  File "anondownloadgui.py", line 42, in <module>
    from Anomos.TorrentQueue import RUNNING, QUEUED, KNOWN, ASKING_LOCATION
  File "/home/vinaypubu/Desktop/sec-tools/anomos/Anomos/TorrentQueue.py", line 21, in <module>
    from Anomos.download import Feedback, Multitorrent
  File "/home/vinaypubu/Desktop/sec-tools/anomos/Anomos/download.py", line 31, in <module>
    from Anomos.NeighborManager import NeighborManager
  File "/home/vinaypubu/Desktop/sec-tools/anomos/Anomos/NeighborManager.py", line 18, in <module>
    import Anomos.Crypto
  File "/home/vinaypubu/Desktop/sec-tools/anomos/Anomos/Crypto/__init__.py", line 27, in <module>
    from M2Crypto import Rand, threading
ImportError: No module named M2Crypto
vinaypubu@vinaypubu-Lenovo-IdeaPad-Y550:~/Desktop/sec-tools/anomos$ ^C
vinaypubu@vinaypubu-Lenovo-IdeaPad-Y550:~/Desktop/sec-tools/anomos$ sudo apt-get install python-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  libexpat1-dev libssl-dev libssl-doc python2.7-dev zlib1g-dev
The following NEW packages will be installed:
  libexpat1-dev libssl-dev libssl-doc python-dev python2.7-dev zlib1g-dev
0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
Need to get 32.5 MB of archives.
After this operation, 48.2 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Err http://archive.ubuntu.com/ubuntu/ precise/main libexpat1-dev amd64 2.0.1-7.2ubuntu1
  Could not connect to localhost:8080 (127.0.0.1). - connect (111: Connection refused)
Err http://archive.ubuntu.com/ubuntu/ precise/main zlib1g-dev amd64 1:1.2.3.4.dfsg-3ubuntu4
  Unable to connect to localhost:8080:
Err http://archive.ubuntu.com/ubuntu/ precise-proposed/main libssl-dev amd64 1.0.1-4ubuntu5.3
  Unable to connect to localhost:8080:
Err http://archive.ubuntu.com/ubuntu/ precise-proposed/main libssl-doc all 1.0.1-4ubuntu5.3
  Unable to connect to localhost:8080:
Err http://archive.ubuntu.com/ubuntu/ precise/main python2.7-dev amd64 2.7.3-0ubuntu3
  Unable to connect to localhost:8080:
Err http://archive.ubuntu.com/ubuntu/ precise/main python-dev amd64 2.7.3-0ubuntu2
  Unable to connect to localhost:8080:
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/e/expat/libexpat1-dev_2.0.1-7.2ubuntu1_amd64.deb Could not connect to localhost:8080 (127.0.0.1). - connect (111: Connection refused)
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/z/zlib/zlib1g-dev_1.2.3.4.dfsg-3ubuntu4_amd64.deb Unable to connect to localhost:8080:
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl-dev_1.0.1-4ubuntu5.3_amd64.deb Unable to connect to localhost:8080:
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl-doc_1.0.1-4ubuntu5.3_all.deb Unable to connect to localhost:8080:
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/p/python2.7/python2.7-dev_2.7.3-0ubuntu3_amd64.deb Unable to connect to localhost:8080:
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/p/python-defaults/python-dev_2.7.3-0ubuntu2_amd64.deb Unable to connect to localhost:8080:
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
vinaypubu@vinaypubu-Lenovo-IdeaPad-Y550:~/Desktop/sec-tools/anomos$ apt-get update --fix-missing
E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
E: Unable to lock directory /var/lib/apt/lists/
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
vinaypubu@vinaypubu-Lenovo-IdeaPad-Y550:~/Desktop/sec-tools/anomos$ sudo apt-get update --fix-missing
Err http://archive.ubuntu.com precise InRelease

Err http://archive.ubuntu.com precise-updates InRelease

Err http://archive.ubuntu.com precise-security InRelease

Err http://archive.ubuntu.com precise-proposed InRelease

Err http://archive.ubuntu.com precise-backports InRelease

Err http://archive.ubuntu.com precise Release.gpg
  Unable to connect to localhost:8080:
Err http://archive.ubuntu.com precise-updates Release.gpg
  Unable to connect to localhost:8080:
Err http://archive.ubuntu.com precise-security Release.gpg
  Unable to connect to localhost:8080:
Err http://archive.ubuntu.com precise-proposed Release.gpg
  Unable to connect to localhost:8080:
Err http://archive.ubuntu.com precise-backports Release.gpg
  Unable to connect to localhost:8080:
Reading package lists... Done
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise/InRelease

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise-updates/InRelease

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise-security/InRelease

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise-proposed/InRelease

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise-backports/InRelease

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise/Release.gpg Unable to connect to localhost:8080:

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise-updates/Release.gpg Unable to connect to localhost:8080:

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise-security/Release.gpg Unable to connect to localhost:8080:

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise-proposed/Release.gpg Unable to connect to localhost:8080:

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise-backports/Release.gpg Unable to connect to localhost:8080:

W: Some index files failed to download. They have been ignored, or old ones used instead.
vinaypubu@vinaypubu-Lenovo-IdeaPad-Y550:~/Desktop/sec-tools/anomos$ ^C
vinaypubu@vinaypubu-Lenovo-IdeaPad-Y550:~/Desktop/sec-tools/anomos$ clear

vinaypubu@vinaypubu-Lenovo-IdeaPad-Y550:~/Desktop/sec-tools/anomos$ cd ..
vinaypubu@vinaypubu-Lenovo-IdeaPad-Y550:~/Desktop/sec-tools$ cd ,,
bash: cd: ,,: No such file or directory
vinaypubu@vinaypubu-Lenovo-IdeaPad-Y550:~/Desktop/sec-tools$ cd ..
vinaypubu@vinaypubu-Lenovo-IdeaPad-Y550:~/Desktop$ cd ..
vinaypubu@vinaypubu-Lenovo-IdeaPad-Y550:~$ clear

vinaypubu@vinaypubu-Lenovo-IdeaPad-Y550:~$ sudo grep -R proxy /etc/apt/*
[sudo] password for vinaypubu:
/etc/apt/apt.conf~:Acquire::http::proxy "http://localhost:8080/";
/etc/apt/apt.conf~:Acquire::https::proxy "https://localhost:8080/";
vinaypubu@vinaypubu-Lenovo-IdeaPad-Y550:~$ sudo fuser -vvv /var/lib/dpkg/lock
vinaypubu@vinaypubu-Lenovo-IdeaPad-Y550:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.04
DISTRIB_CODENAME=precise
DISTRIB_DESCRIPTION="Ubuntu 12.04 LTS"
vinaypubu@vinaypubu-Lenovo-IdeaPad-Y550:~$ uname -a
Linux vinaypubu-Lenovo-IdeaPad-Y550 3.2.0-27-generic #43-Ubuntu SMP Fri Jul 6 14:25:57 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
vinaypubu@vinaypubu-Lenovo-IdeaPad-Y550:~$ sudo rm /var/lib/apt/lists/lock
vinaypubu@vinaypubu-Lenovo-IdeaPad-Y550:~$ sudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup
vinaypubu@vinaypubu-Lenovo-IdeaPad-Y550:~$ sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status
vinaypubu@vinaypubu-Lenovo-IdeaPad-Y550:~$ sudo mv /var/lib/dpkg/available /var/lib/dpkg/available-bad
vinaypubu@vinaypubu-Lenovo-IdeaPad-Y550:~$ sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
vinaypubu@vinaypubu-Lenovo-IdeaPad-Y550:~$ sudo rm -rf /var/lib/dpkg/updates/*
vinaypubu@vinaypubu-Lenovo-IdeaPad-Y550:~$ sudo rm -rf /var/lib/apt/lists
vinaypubu@vinaypubu-Lenovo-IdeaPad-Y550:~$ sudo rm /var/cache/apt/*.bin
vinaypubu@vinaypubu-Lenovo-IdeaPad-Y550:~$ sudo mkdir /var/lib/apt/lists
vinaypubu@vinaypubu-Lenovo-IdeaPad-Y550:~$ sudo mkdir /var/lib/apt/lists/partialvinaypubu@vinaypubu-Lenovo-IdeaPad-Y550:~$ LANG=C;sudo apt-get clean
vinaypubu@vinaypubu-Lenovo-IdeaPad-Y550:~$ LANG=C;sudo apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
vinaypubu@vinaypubu-Lenovo-IdeaPad-Y550:~$ 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.
40 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up foomatic-filters (4.0.16-0ubuntu0.2) ...
Setting up libgtk-3-common (3.4.2-0ubuntu0.4) ...
Setting up libgtk-3-0 (3.4.2-0ubuntu0.4) ...
Setting up libgail-3-0 (3.4.2-0ubuntu0.4) ...
Setting up libgstreamer-plugins-base0.10-0 (0.10.36-1ubuntu0.1) ...
Setting up linux-image-3.2.0-27-generic (3.2.0-27.43) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/dkms 3.2.0-27-generic /boot/vmlinuz-3.2.0-27-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.2.0-27-generic /boot/vmlinuz-3.2.0-27-generic
update-initramfs: Generating /boot/initrd.img-3.2.0-27-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 3.2.0-27-generic /boot/vmlinuz-3.2.0-27-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 3.2.0-27-generic /boot/vmlinuz-3.2.0-27-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.2.0-27-generic /boot/vmlinuz-3.2.0-27-generic
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.2.0-27-generic
Found initrd image: /boot/initrd.img-3.2.0-27-generic
Found linux image: /boot/vmlinuz-3.2.0-26-generic
Found initrd image: /boot/initrd.img-3.2.0-26-generic
Found linux image: /boot/vmlinuz-3.2.0-25-generic
Found initrd image: /boot/initrd.img-3.2.0-25-generic
Found linux image: /boot/vmlinuz-3.0.0-21-generic
Found initrd image: /boot/initrd.img-3.0.0-21-generic
Found linux image: /boot/vmlinuz-3.0.0-20-generic
Found initrd image: /boot/initrd.img-3.0.0-20-generic
Found linux image: /boot/vmlinuz-3.0.0-19-generic
Found initrd image: /boot/initrd.img-3.0.0-19-generic
Found linux image: /boot/vmlinuz-3.0.0-16-generic
Found initrd image: /boot/initrd.img-3.0.0-16-generic
Found linux image: /boot/vmlinuz-3.0.0-15-generic
Found initrd image: /boot/initrd.img-3.0.0-15-generic
Found linux image: /boot/vmlinuz-3.0.0-14-generic
Found initrd image: /boot/initrd.img-3.0.0-14-generic
Found linux image: /boot/vmlinuz-3.0.0-13-generic
Found initrd image: /boot/initrd.img-3.0.0-13-generic
Found linux image: /boot/vmlinuz-3.0.0-12-generic
Found initrd image: /boot/initrd.img-3.0.0-12-generic
Found linux image: /boot/vmlinuz-2.6.38-11-generic
Found initrd image: /boot/initrd.img-2.6.38-11-generic
Found linux image: /boot/vmlinuz-2.6.38-10-generic
Found initrd image: /boot/initrd.img-2.6.38-10-generic
Found linux image: /boot/vmlinuz-2.6.38-8-generic
Found initrd image: /boot/initrd.img-2.6.38-8-generic
Found memtest86+ image: /boot/memtest86+.bin
Found Windows 7 (loader) on /dev/sda1
Found Windows Recovery Environment (loader) on /dev/sda4
done
Setting up gir1.2-gtk-3.0 (3.4.2-0ubuntu0.4) ...
Setting up python-ubuntu-sso-client (3.0.2-0ubuntu1) ...
Setting up ubuntu-sso-client (3.0.2-0ubuntu1) ...
Setting up ubuntu-sso-client-qt (3.0.2-0ubuntu1) ...
Setting up ubuntu-sso-client-gtk (3.0.2-0ubuntu1) ...
Setting up gir1.2-gst-plugins-base-0.10 (0.10.36-1ubuntu0.1) ...
Setting up gnome-accessibility-themes (3.4.1-0ubuntu1.1) ...
Setting up libgtk-3-bin (3.4.2-0ubuntu0.4) ...
Setting up gnome-icon-theme (3.4.0-0ubuntu1.1) ...
Setting up gstreamer0.10-alsa (0.10.36-1ubuntu0.1) ...
Setting up gstreamer0.10-plugins-base (0.10.36-1ubuntu0.1) ...
Setting up gstreamer0.10-plugins-base-apps (0.10.36-1ubuntu0.1) ...
Setting up gstreamer0.10-x (0.10.36-1ubuntu0.1) ...
Setting up gwibber-service (3.4.2-0ubuntu2) ...
Setting up libgwibber2 (3.4.2-0ubuntu2) ...
Setting up libgwibber-gtk2 (3.4.2-0ubuntu2) ...
Setting up gwibber (3.4.2-0ubuntu2) ...
Setting up gwibber-service-facebook (3.4.2-0ubuntu2) ...
Setting up gwibber-service-identica (3.4.2-0ubuntu2) ...
Setting up gwibber-service-twitter (3.4.2-0ubuntu2) ...
Setting up libpurple-bin (1:2.10.3-0ubuntu1.1) ...
Setting up libpurple0 (1:2.10.3-0ubuntu1.1) ...
Setting up linux-image-generic (3.2.0.27.29) ...
Setting up linux-generic (3.2.0.27.29) ...
Setting up linux-headers-3.2.0-27 (3.2.0-27.43) ...
Setting up linux-headers-3.2.0-27-generic (3.2.0-27.43) ...
Examining /etc/kernel/header_postinst.d.
run-parts: executing /etc/kernel/header_postinst.d/dkms 3.2.0-27-generic /boot/vmlinuz-3.2.0-27-generic
Setting up linux-headers-generic (3.2.0.27.29) ...
Setting up linux-libc-dev (3.2.0-27.43) ...
Setting up pidgin-data (1:2.10.3-0ubuntu1.1) ...
Setting up pidgin (1:2.10.3-0ubuntu1.1) ...
Setting up python-debtagshw (1.9+git20120320-0ubuntu1) ...
Setting up xserver-common (2:1.11.4-0ubuntu10.4) ...
Setting up xserver-xorg-core (2:1.11.4-0ubuntu10.4) ...
Setting up gnome-icon-theme-full (3.4.0-0ubuntu1.1) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
vinaypubu@vinaypubu-Lenovo-IdeaPad-Y550:~$ LANG=C;sudo apt-get update -o APT::Cache-Limit=25165824
Err http://archive.ubuntu.com precise InRelease

Err http://archive.ubuntu.com precise-updates InRelease

Err http://archive.ubuntu.com precise-security InRelease

Err http://archive.ubuntu.com precise-proposed InRelease

Err http://archive.ubuntu.com precise-backports InRelease

Err http://archive.ubuntu.com precise Release.gpg
  Unable to connect to localhost:8080:
Err http://archive.ubuntu.com precise-updates Release.gpg
  Unable to connect to localhost:8080:
Err http://archive.ubuntu.com precise-security Release.gpg
  Unable to connect to localhost:8080:
Err http://archive.ubuntu.com precise-proposed Release.gpg
  Unable to connect to localhost:8080:
Err http://archive.ubuntu.com precise-backports Release.gpg
  Unable to connect to localhost:8080:
Reading package lists... Done
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise/InRelease

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise-updates/InRelease

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise-security/InRelease

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise-proposed/InRelease

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise-backports/InRelease

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise/Release.gpg Unable to connect to localhost:8080:

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise-updates/Release.gpg Unable to connect to localhost:8080:

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise-security/Release.gpg Unable to connect to localhost:8080:

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise-proposed/Release.gpg Unable to connect to localhost:8080:

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise-backports/Release.gpg Unable to connect to localhost:8080:

W: Some index files failed to download. They have been ignored, or old ones used instead.
vinaypubu@vinaypubu-Lenovo-IdeaPad-Y550:~$ sudo dpkg --configure -a
vinaypubu@vinaypubu-Lenovo-IdeaPad-Y550:~$ sudo dpkg --clear-avail
vinaypubu@vinaypubu-Lenovo-IdeaPad-Y550:~$ 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.
vinaypubu@vinaypubu-Lenovo-IdeaPad-Y550:~$ 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.
vinaypubu@vinaypubu-Lenovo-IdeaPad-Y550:~$ LANG=C;sudo apt-get update -o APT::Cache-Limit=25165824 && sudo apt-get dist-upgrade
Err http://archive.ubuntu.com precise InRelease

Err http://archive.ubuntu.com precise-updates InRelease

Err http://archive.ubuntu.com precise-security InRelease

Err http://archive.ubuntu.com precise-proposed InRelease

Err http://archive.ubuntu.com precise-backports InRelease

Err http://archive.ubuntu.com precise Release.gpg
  Unable to connect to localhost:8080:
Err http://archive.ubuntu.com precise-updates Release.gpg
  Unable to connect to localhost:8080:
Err http://archive.ubuntu.com precise-security Release.gpg
  Unable to connect to localhost:8080:
Err http://archive.ubuntu.com precise-proposed Release.gpg
  Unable to connect to localhost:8080:
Err http://archive.ubuntu.com precise-backports Release.gpg
  Unable to connect to localhost:8080:
Reading package lists... Done
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise/InRelease

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise-updates/InRelease

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise-security/InRelease

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise-proposed/InRelease

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise-backports/InRelease

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise/Release.gpg Unable to connect to localhost:8080:

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise-updates/Release.gpg Unable to connect to localhost:8080:

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise-security/Release.gpg Unable to connect to localhost:8080:

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise-proposed/Release.gpg Unable to connect to localhost:8080:

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise-backports/Release.gpg Unable to connect to localhost:8080:

W: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
vinaypubu@vinaypubu-Lenovo-IdeaPad-Y550:~$

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Solved by:
vinay p
Solved:
Last query:
Last reply:
Revision history for this message
vinay p (zephyr-vinay) said :
#1

IS MY SOURCES.LIST CORRECT ?

vinaypubu@vinaypubu-Lenovo-IdeaPad-Y550:~$ cat /etc/apt/sources.list
# deb cdrom:[Ubuntu 11.04 _Natty Narwhal_ - Release amd64 (20110427.1)]/ natty main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://archive.ubuntu.com/ubuntu precise main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://archive.ubuntu.com/ubuntu precise-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://archive.ubuntu.com/ubuntu precise universe
deb http://archive.ubuntu.com/ubuntu precise-updates universe

## 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 precise multiverse
deb http://archive.ubuntu.com/ubuntu precise-updates 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://us.archive.ubuntu.com/ubuntu/ natty-backports main restricted universe multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ natty-backports main restricted universe multiverse

deb http://archive.ubuntu.com/ubuntu precise-security main restricted
deb http://archive.ubuntu.com/ubuntu precise-security universe
deb http://archive.ubuntu.com/ubuntu precise-security 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 precise partner
# deb-src http://archive.canonical.com/ubuntu natty partner

## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
# deb http://extras.ubuntu.com/ubuntu precise main
# deb-src http://extras.ubuntu.com/ubuntu precise main
deb http://archive.ubuntu.com/ubuntu precise-proposed restricted main multiverse universe
deb http://archive.ubuntu.com/ubuntu precise-backports restricted main multiverse universe
vinaypubu@vinaypubu-Lenovo-IdeaPad-Y550:~$

Revision history for this message
vinay p (zephyr-vinay) said :
#2

contents of apt.conf

Acquire::http::Proxy "false";

I changed this as per many suggestions but it did not help as well

Revision history for this message
Sam_ (and-sam) said :
#3

Try in a terminal:
unset http_proxy

and test update again:
sudo apt-get update

Verify if you've set a proxy e.g. in Synaptic or elsewhere and review settings in network-manager.
http://ubuntuforums.org/showthread.php?s=e77e743e3b76dc17745551853e308051&t=805535

The repo precise-proposed is for testing software.
https://help.ubuntu.com/community/Repositories/Ubuntu#Ubuntu_Updates

In addition there're 12 old kernel images installed.
http://jaypeeonline.net/tips-tricks/howto-remove-old-ubuntu-kernels/
http://chrisjean.com/2009/03/05/cleaning-out-old-linux-kernels-in-ubuntu/

Revision history for this message
vinay p (zephyr-vinay) said :
#4

Thanks Sam. I tried all the above still unsuccessful with the following error

vinaypubu@vinaypubu-Lenovo-IdeaPad-Y550:~$ sudo apt-get update
[sudo] password for vinaypubu:
Err http://archive.ubuntu.com precise InRelease

Err http://archive.ubuntu.com precise-updates InRelease

Err http://security.ubuntu.com precise-security InRelease

Err http://security.ubuntu.com precise-security Release.gpg
  Unable to connect to localhost:8080:
Err http://archive.ubuntu.com precise Release.gpg
  Unable to connect to localhost:8080:
Err http://archive.ubuntu.com precise-updates Release.gpg
  Unable to connect to localhost:8080:
Reading package lists... Done
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise/InRelease

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/precise-security/InRelease

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise-updates/InRelease

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise/Release.gpg Unable to connect to localhost:8080:

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise-updates/Release.gpg Unable to connect to localhost:8080:

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/precise-security/Release.gpg Unable to connect to localhost:8080:

W: Some index files failed to download. They have been ignored, or old ones used instead.
vinaypubu@vinaypubu-Lenovo-IdeaPad-Y550:~$

WOULD YOU NEED TO KNOW ANY OTHER CONFIGURATION ? LIKE the vconfiguration of my update manager ?

Revision history for this message
vinay p (zephyr-vinay) said :
#5

vinaypubu@vinaypubu-Lenovo-IdeaPad-Y550:~$ cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.0.1

Is the above fine ?

Revision history for this message
Sam_ (and-sam) said :
#6

Yep, resolv.conf is fine i.e. dnsmasq default resolver.
http://www.stgraber.org/2012/02/24/dns-in-ubuntu-12-04/

Did you try the other option of ubuntuforums link?
export http_proxy=""

or move apt.conf completely out of the way.

Perhaps playing with 'python anondownloadgui.py' messed up network config?

Please post output of
/etc/network/interfaces
/etc/hosts
/etc/hostname

Revision history for this message
vinay p (zephyr-vinay) said :
#7

1) tried export http_proxy=""

anondownload did not run due to missing dependancies so I am guessing thats not the issue

vinaypubu@vinaypubu-Lenovo-IdeaPad-Y550:~$ cat /etc/hosts
127.0.0.1 localhost
127.0.1.1 vinaypubu-Lenovo-IdeaPad-Y550

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
vinaypubu@vinaypubu-Lenovo-IdeaPad-Y550:~$ cat /etc/hostname
vinaypubu-Lenovo-IdeaPad-Y550
vinaypubu@vinaypubu-Lenovo-IdeaPad-Y550:~$

Revision history for this message
vinay p (zephyr-vinay) said :
#8

the wierd thing is everything updates via update-manager

Revision history for this message
Sam_ (and-sam) said :
#9

What about apt.conf?

Revision history for this message
vinay p (zephyr-vinay) said :
#10

its empty is this fine ?

Revision history for this message
Sam_ (and-sam) said :
#11

An empty file should be sufficient. But there is still an (obsolete) proxy entry somewhere.
Did you edit
~/.bashrc
~/.profile
/etc/environment
/etc/network/interfaces?

Look at the output if it contents Aquire::http::Proxy...
apt-config dump

Did you reboot?
(Enterprise) firewall?
Any idea of what else you've changed?

Revision history for this message
vinay p (zephyr-vinay) said :
#12

SAM !!!! Thanks a ton ...it was /etc/environment

it had the following :

http_proxy="http://localhost:8080/"
https_proxy="https://localhost:8080/"

Thanks man this one eluded me for a while....

Revision history for this message
Sam_ (and-sam) said :
#13

\o/ congrats.