Unable to install softwares through Ubuntu Software Center or by using apt-get in terminal
I installed Ubuntu 11.10 some days back and at that time, I was able to install softwares from the Ubuntu Software Center but from today that is 28-06-13, I am getting an error when I click on the Install button that my internet connection is not working while at the same time I am using Firefox without any problem. I tried the solution given at https:/
anubhav@ubuntu:~$ sudo grep -R proxy /etc/apt/*
[sudo] password for anubhav:
/etc/apt/
/etc/apt/
/etc/apt/
/etc/apt/
anubhav@ubuntu:~$ grep proxy /etc/environment
http_proxy="http://
https_proxy="https:/
ftp_proxy="ftp://localhost
socks_proxy=
anubhav@ubuntu:~$ echo $http_proxy
http://
anubhav@ubuntu:~$ echo $ftp_proxy
ftp://localhost
anubhav@ubuntu:~$ grep proxy /etc/bash.bashrc
anubhav@ubuntu:~$ grep proxy ~/.bashrc
anubhav@ubuntu:~$ cat /etc/apt/apt.conf
Acquire:
Acquire:
Acquire::ftp::proxy "ftp://localhost
Acquire:
anubhav@ubuntu:~$ sudo fuser -vvv /var/lib/dpkg/lock
anubhav@ubuntu:~$ cat /etc/lib-release
cat: /etc/lib-release: No such file or directory
anubhav@ubuntu:~$ uname -a
Linux ubuntu 3.0.0-12-generic #20-Ubuntu SMP Fri Oct 7 14:50:42 UTC 2011 i686 i686 i386 GNU/Linux
anubhav@ubuntu:~$ sudo rm /var/lib/
anubhav@ubuntu:~$ sudo rm /var/lib/dpkg/lock
anubhav@ubuntu:~$ sudo cp -arf /var/lib/dpkg /var/lib/
sudo mv /varanubhav@
anubhav@ubuntu:~$ sudo cp /var/lib/
anubhav@ubuntu:~$ sudo mv /var/lib/
anubhav@ubuntu:~$ sudo cp /var/lib/
anubhav@ubuntu:~$ sudo rm -rf /var/lib/
anubhav@ubuntu:~$ sudo rm -rf /var/lib/apt/lists
anubhav@ubuntu:~$ sudo rm /var/cache/
anubhav@ubuntu:~$ sudo mkdir /var/lib/apt/lists
anubhav@ubuntu:~$ sudo mkdir /var/lib/
anubhav@ubuntu:~$ LANG=C; sudo apt-get clean
anubhav@ubuntu:~$ LANG=C; sudo apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
anubhav@ubuntu:~$ 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 tcl8.5 (8.5.10-1ubuntu1) ...
Setting up tk8.5 (8.5.10-1) ...
Setting up blt (2.4z-4.2ubuntu1) ...
Setting up python3.2-minimal (3.2.2-0ubuntu1.1) ...
Setting up python3.2 (3.2.2-0ubuntu1.1) ...
Setting up python3-minimal (3.2.2-0ubuntu2) ...
Setting up python3 (3.2.2-0ubuntu2) ...
running python rtupdate hooks for python3.2...
running python post-rtupdate hooks for python3.2...
Setting up python3-tk (3.2-4) ...
Setting up idle-python3.2 (3.2.2-0ubuntu1.1) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
anubhav@ubuntu:~$ LANG=C; sudo apt-get --fix-missing update -o APT::Cache-
Err http://
Err http://
Err http://
Err http://
Err http://
Err http://
Err http://
Unable to connect to localhost:8080:
Err http://
Unable to connect to localhost:8080:
Err http://
Unable to connect to localhost:8080:
Err http://
Unable to connect to localhost:8080:
Err http://
Unable to connect to localhost:8080:
Err http://
Unable to connect to localhost:8080:
Ign cdrom://Ubuntu 11.10 _Oneiric Ocelot_ - Release i386 (20111012) oneiric InRelease
Ign cdrom://Ubuntu 11.10 _Oneiric Ocelot_ - Release i386 (20111012) oneiric Release.gpg
Ign cdrom://Ubuntu 11.10 _Oneiric Ocelot_ - Release i386 (20111012) oneiric Release
Ign cdrom://Ubuntu 11.10 _Oneiric Ocelot_ - Release i386 (20111012) oneiric/main TranslationIndex
Ign cdrom://Ubuntu 11.10 _Oneiric Ocelot_ - Release i386 (20111012) oneiric/restricted TranslationIndex
Err cdrom://Ubuntu 11.10 _Oneiric Ocelot_ - Release i386 (20111012) oneiric/main i386 Packages
Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Err cdrom://Ubuntu 11.10 _Oneiric Ocelot_ - Release i386 (20111012) oneiric/restricted i386 Packages
Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Ign cdrom://Ubuntu 11.10 _Oneiric Ocelot_ - Release i386 (20111012) oneiric/main Translation-en_US
Ign cdrom://Ubuntu 11.10 _Oneiric Ocelot_ - Release i386 (20111012) oneiric/main Translation-en
Ign cdrom://Ubuntu 11.10 _Oneiric Ocelot_ - Release i386 (20111012) oneiric/restricted Translation-en_US
Ign cdrom://Ubuntu 11.10 _Oneiric Ocelot_ - Release i386 (20111012) oneiric/restricted Translation-en
Reading package lists... Done
W: Failed to fetch http://
W: Failed to fetch http://
W: Failed to fetch http://
W: Failed to fetch http://
W: Failed to fetch http://
W: Failed to fetch http://
W: Failed to fetch http://
W: Failed to fetch http://
W: Failed to fetch http://
W: Failed to fetch http://
W: Failed to fetch http://
W: Failed to fetch http://
W: Failed to fetch cdrom://Ubuntu 11.10 _Oneiric Ocelot_ - Release i386 (20111012)
W: Failed to fetch cdrom://Ubuntu 11.10 _Oneiric Ocelot_ - Release i386 (20111012)
W: Some index files failed to download. They have been ignored, or old ones used instead.
anubhav@ubuntu:~$ sudo dpkg --configure -a
anubhav@ubuntu:~$ sudo dpk --clear-avail
sudo: dpk: command not found
anubhav@ubuntu:~$ sudo dpkg --clear-avail
anubhav@ubuntu:~$ 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.
anubhav@ubuntu:~$ 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.
anubhav@ubuntu:~$ LANG=C; sudo apt-get update -o APT::Cache-
Err http://
Err http://
Err http://
Err http://
Err http://
Err http://
Unable to connect to localhost:8080:
Err http://
Unable to connect to localhost:8080:
Err http://
Ign cdrom://Ubuntu 11.10 _Oneiric Ocelot_ - Release i386 (20111012) oneiric InRelease
Err http://
Unable to connect to localhost:8080:
Err http://
Unable to connect to localhost:8080:
Err http://
Unable to connect to localhost:8080:
Err http://
Unable to connect to localhost:8080:
Ign cdrom://Ubuntu 11.10 _Oneiric Ocelot_ - Release i386 (20111012) oneiric Release.gpg
Ign cdrom://Ubuntu 11.10 _Oneiric Ocelot_ - Release i386 (20111012) oneiric Release
Ign cdrom://Ubuntu 11.10 _Oneiric Ocelot_ - Release i386 (20111012) oneiric/main TranslationIndex
Ign cdrom://Ubuntu 11.10 _Oneiric Ocelot_ - Release i386 (20111012) oneiric/restricted TranslationIndex
Err cdrom://Ubuntu 11.10 _Oneiric Ocelot_ - Release i386 (20111012) oneiric/main i386 Packages
Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Err cdrom://Ubuntu 11.10 _Oneiric Ocelot_ - Release i386 (20111012) oneiric/restricted i386 Packages
Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Ign cdrom://Ubuntu 11.10 _Oneiric Ocelot_ - Release i386 (20111012) oneiric/main Translation-en_US
Ign cdrom://Ubuntu 11.10 _Oneiric Ocelot_ - Release i386 (20111012) oneiric/main Translation-en
Ign cdrom://Ubuntu 11.10 _Oneiric Ocelot_ - Release i386 (20111012) oneiric/restricted Translation-en_US
Ign cdrom://Ubuntu 11.10 _Oneiric Ocelot_ - Release i386 (20111012) oneiric/restricted Translation-en
Reading package lists... Done
W: Failed to fetch http://
W: Failed to fetch http://
W: Failed to fetch http://
W: Failed to fetch http://
W: Failed to fetch http://
W: Failed to fetch http://
W: Failed to fetch http://
W: Failed to fetch http://
W: Failed to fetch http://
W: Failed to fetch http://
W: Failed to fetch http://
W: Failed to fetch http://
W: Failed to fetch cdrom://Ubuntu 11.10 _Oneiric Ocelot_ - Release i386 (20111012)
W: Failed to fetch cdrom://Ubuntu 11.10 _Oneiric Ocelot_ - Release i386 (20111012)
W: Some index files failed to download. They have been ignored, or old ones used instead.
E: Invalid operation dis-upgrade
anubhav@ubuntu:~$ sudo apt-get update -o APT::Cache-
Err http://
Err http://
Err http://
Err http://
Err http://
Err http://
Err http://
Unable to connect to localhost:8080:
Err http://
Unable to connect to localhost:8080:
Err http://
Unable to connect to localhost:8080:
Err http://
Unable to connect to localhost:8080:
Err http://
Unable to connect to localhost:8080:
Ign cdrom://Ubuntu 11.10 _Oneiric Ocelot_ - Release i386 (20111012) oneiric InRelease
Err http://
Unable to connect to localhost:8080:
Ign cdrom://Ubuntu 11.10 _Oneiric Ocelot_ - Release i386 (20111012) oneiric Release.gpg
Ign cdrom://Ubuntu 11.10 _Oneiric Ocelot_ - Release i386 (20111012) oneiric Release
Ign cdrom://Ubuntu 11.10 _Oneiric Ocelot_ - Release i386 (20111012) oneiric/main TranslationIndex
Ign cdrom://Ubuntu 11.10 _Oneiric Ocelot_ - Release i386 (20111012) oneiric/restricted TranslationIndex
Err cdrom://Ubuntu 11.10 _Oneiric Ocelot_ - Release i386 (20111012) oneiric/main i386 Packages
Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Err cdrom://Ubuntu 11.10 _Oneiric Ocelot_ - Release i386 (20111012) oneiric/restricted i386 Packages
Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Ign cdrom://Ubuntu 11.10 _Oneiric Ocelot_ - Release i386 (20111012) oneiric/main Translation-en_US
Ign cdrom://Ubuntu 11.10 _Oneiric Ocelot_ - Release i386 (20111012) oneiric/main Translation-en
Ign cdrom://Ubuntu 11.10 _Oneiric Ocelot_ - Release i386 (20111012) oneiric/restricted Translation-en_US
Ign cdrom://Ubuntu 11.10 _Oneiric Ocelot_ - Release i386 (20111012) oneiric/restricted Translation-en
Reading package lists... Done
W: Failed to fetch http://
W: Failed to fetch http://
W: Failed to fetch http://
W: Failed to fetch http://
W: Failed to fetch http://
W: Failed to fetch http://
W: Failed to fetch http://
W: Failed to fetch http://
W: Failed to fetch http://
W: Failed to fetch http://
W: Failed to fetch http://
W: Failed to fetch http://
W: Failed to fetch cdrom://Ubuntu 11.10 _Oneiric Ocelot_ - Release i386 (20111012)
W: Failed to fetch cdrom://Ubuntu 11.10 _Oneiric Ocelot_ - Release i386 (20111012)
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.
anubhav@ubuntu:~$ find /etc/apt -name '*.list' -exec bash -c 'echo -e "\n$1\n"; cat -n "$1"' _ '{}' \;
/etc/apt/
1 deb cdrom:[Ubuntu 11.10 _Oneiric Ocelot_ - Release i386 (20111012)]/ oneiric main restricted
2
3 # See http://
4 # newer versions of the distribution.
5 deb http://
6 deb-src http://
7
8 ## Major bug fix updates produced after the final release of the
9 ## distribution.
10 deb http://
11 deb-src http://
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://
17 deb-src http://
18 deb http://
19 deb-src http://
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://
27 deb-src http://
28 deb http://
29 deb-src http://
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://
37 deb-src http://
38
39
40 ## Uncomment the following two lines to add software from Canonical's
41 ## 'partner' repository.
42 ## This software is not part of Ubuntu, but is offered by Canonical and the
43 ## respective vendors as a service to Ubuntu users.
44 deb http://
45 deb-src http://
46
47 ## Uncomment the following two lines to add software from Ubuntu's
48 ## 'extras' repository.
49 ## This software is not part of Ubuntu, but is offered by third-party
50 ## developers who want to ship their latest software.
51 deb http://
52 deb http://
53 deb-src http://
anubhav@ubuntu:~$
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Ubuntu apt Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Anubhav Singh for more information if necessary.