Ubuntu

cannot install any application from update center

Asked by Alex on 2012-08-21

alex@ubuntu:~$ sudo grep -R proxy /etc/apt/*
alex@ubuntu:~$ sudo fuser -vvv /var/lib/dpkg/lock
alex@ubuntu:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.04
DISTRIB_CODENAME=precise
DISTRIB_DESCRIPTION="Ubuntu 12.04 LTS"
alex@ubuntu:~$ uname -a
Linux ubuntu 3.2.0-23-generic #36-Ubuntu SMP Tue Apr 10 20:41:14 UTC 2012 i686 i686 i386 GNU/Linux
alex@ubuntu:~$ sudo rm /var/lib/apt/lists/lock
alex@ubuntu:~$ sudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup
alex@ubuntu:~$ sudo mv /var/lib/dpkg/status /var/lib/dpkg/status-bad
alex@ubuntu:~$ sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status
alex@ubuntu:~$ sudo mv /var/lib/dpkg/available /var/lib/dpkg/available-bad
alex@ubuntu:~$ sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
alex@ubuntu:~$ sudo rm -rf /var/lib/dpkg/updates/*
alex@ubuntu:~$ sudo rm -rf /var/lib/apt/lists
alex@ubuntu:~$ sudo rm /var/cache/apt/*.bin
alex@ubuntu:~$ sudo mkdir /var/lib/apt/lists
alex@ubuntu:~$ sudo mkdir /var/lib/apt/lists/partial
alex@ubuntu:~$ LANG=C;sudo apt-get clean
alex@ubuntu:~$ LANG=C;sudo apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
alex@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.
alex@ubuntu:~$ LANG=C;sudo apt-get update -o APT::Cache-Limit=25165824
Err http://ppa.launchpad.net precise InRelease

Err http://ppa.launchpad.net precise Release.gpg
  Unable to connect to ppa.launchpad.net:http:
Err http://archive.canonical.com precise InRelease

Err http://archive.canonical.com precise Release.gpg
  Unable to connect to archive.canonical.com:http: [IP: 91.189.92.150 80]
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 archive.ubuntu.com:http: [IP: 91.189.92.189 80]
Err http://archive.ubuntu.com precise-updates Release.gpg
  Unable to connect to archive.ubuntu.com:http: [IP: 91.189.92.189 80]
Err http://archive.ubuntu.com precise-security Release.gpg
  Unable to connect to archive.ubuntu.com:http: [IP: 91.189.92.189 80]
Err http://archive.ubuntu.com precise-proposed Release.gpg
  Unable to connect to archive.ubuntu.com:http: [IP: 91.189.92.189 80]
Err http://archive.ubuntu.com precise-backports Release.gpg
  Unable to connect to archive.ubuntu.com:http: [IP: 91.189.92.189 80]
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.canonical.com/ubuntu/dists/precise/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://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu/dists/precise/InRelease

W: Failed to fetch http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu/dists/precise/Release.gpg Unable to connect to ppa.launchpad.net:http:

W: Failed to fetch http://archive.canonical.com/ubuntu/dists/precise/Release.gpg Unable to connect to archive.canonical.com:http: [IP: 91.189.92.150 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise/Release.gpg Unable to connect to archive.ubuntu.com:http: [IP: 91.189.92.189 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise-updates/Release.gpg Unable to connect to archive.ubuntu.com:http: [IP: 91.189.92.189 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise-security/Release.gpg Unable to connect to archive.ubuntu.com:http: [IP: 91.189.92.189 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise-proposed/Release.gpg Unable to connect to archive.ubuntu.com:http: [IP: 91.189.92.189 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise-backports/Release.gpg Unable to connect to archive.ubuntu.com:http: [IP: 91.189.92.189 80]

W: Some index files failed to download. They have been ignored, or old ones used instead.
alex@ubuntu:~$ sudo dpkg --configure -a
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-3.2.0-23-generic
Processing triggers for desktop-file-utils ...
Processing triggers for man-db ...
Processing triggers for hicolor-icon-theme ...
Processing triggers for software-center ...
INFO:softwarecenter.db.update:no translation information in database needed
Processing triggers for ureadahead ...
ureadahead will be reprofiled on next reboot
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
alex@ubuntu:~$ sudo dpkg --clear-avail
alex@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.
alex@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.
alex@ubuntu:~$ LANG=C;sudo apt-get update -o APT::Cache-Limit=25165824 && sudo apt-get dist-upgrade
Err http://ppa.launchpad.net precise InRelease

Err http://ppa.launchpad.net precise Release.gpg
  Unable to connect to ppa.launchpad.net:http:
Err http://archive.canonical.com precise InRelease

Err http://archive.canonical.com precise Release.gpg
  Unable to connect to archive.canonical.com:http: [IP: 91.189.92.191 80]
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 archive.ubuntu.com:http: [IP: 91.189.92.188 80]
Err http://archive.ubuntu.com precise-updates Release.gpg
  Unable to connect to archive.ubuntu.com:http: [IP: 91.189.92.188 80]
Err http://archive.ubuntu.com precise-security Release.gpg
  Unable to connect to archive.ubuntu.com:http: [IP: 91.189.92.188 80]
Err http://archive.ubuntu.com precise-proposed Release.gpg
  Unable to connect to archive.ubuntu.com:http: [IP: 91.189.92.188 80]
Err http://archive.ubuntu.com precise-backports Release.gpg
  Unable to connect to archive.ubuntu.com:http: [IP: 91.189.92.188 80]
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.canonical.com/ubuntu/dists/precise/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://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu/dists/precise/InRelease

W: Failed to fetch http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu/dists/precise/Release.gpg Unable to connect to ppa.launchpad.net:http:

W: Failed to fetch http://archive.canonical.com/ubuntu/dists/precise/Release.gpg Unable to connect to archive.canonical.com:http: [IP: 91.189.92.191 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise/Release.gpg Unable to connect to archive.ubuntu.com:http: [IP: 91.189.92.188 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise-updates/Release.gpg Unable to connect to archive.ubuntu.com:http: [IP: 91.189.92.188 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise-security/Release.gpg Unable to connect to archive.ubuntu.com:http: [IP: 91.189.92.188 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise-proposed/Release.gpg Unable to connect to archive.ubuntu.com:http: [IP: 91.189.92.188 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise-backports/Release.gpg Unable to connect to archive.ubuntu.com:http: [IP: 91.189.92.188 80]

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.
alex@ubuntu:~$ ls -lart /etc/apt/sources.list.d
total 12
drwxr-xr-x 6 root root 4096 Aug 21 02:40 ..
drwxr-xr-x 2 root root 4096 Aug 21 04:06 .
-rw-r--r-- 1 root root 134 Aug 21 04:07 ubuntu-wine-ppa-precise.list
alex@ubuntu:~$

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Last query:
2012-08-21
Last reply:
2012-08-21
Nik.Th. (nick-athens30) said : #1

Hi ,
do you have internet connection ? It seems like you don't have .
Thanks

Alex (alexandr-popovich) said : #2

Hi,

Yes, I do.
Belwo is ping from terminal

alex@ubuntu:~$ ping 91.189.92.188
PING 91.189.92.188 (91.189.92.188) 56(84) bytes of data.
64 bytes from 91.189.92.188: icmp_req=1 ttl=128 time=76.5 ms
64 bytes from 91.189.92.188: icmp_req=2 ttl=128 time=75.4 ms
64 bytes from 91.189.92.188: icmp_req=3 ttl=128 time=78.6 ms
64 bytes from 91.189.92.188: icmp_req=4 ttl=128 time=75.6 ms
64 bytes from 91.189.92.188: icmp_req=5 ttl=128 time=81.4 ms

It seems that I can ping by IP, but when I try to ping by URL, I get message "unknown host"

alex@ubuntu:~$ ping http://archive.ubuntu.com
ping: unknown host http://archive.ubuntu.com

It is first time when I desided to use ubuntu (xUbuntu) but it seems without luck.
Thanks,

Warren Hill (warren-hill) said : #3

You can easily check this

Step 1: Open a terminal

If you are using the Gnome interface, open the Terminal console via "Applications->Accessories->Terminal"

If you are using the Unity interface, the easiest way to open the Terminal is to use the 'search' function on the dash. Or you can click on the 'More Apps' button, click on the 'See more results' by the installed section, and find it in that list of applications. A third way, available after you click on the 'More Apps' button, is to go to the search bar, and see that the far right end of it says 'All Applications'. You then click on that, and you'll see the full list. Then you can go to Accessories > Terminal after that.

So the methods in Unity are:
Dash > Search for Terminal
Dash > More Apps > 'See More Results' > Terminal
Dash > More Apps > Accessories > Terminal

Step 2: enter the following command

ifconfig

Does this show you have an IP address? If yes then you are on a network so check if that network can see the internet

ping -c 5 8.8.8.8

Try:

echo "nameserver 8.8.8.8" | sudo tee /etc/resolv.conf > /dev/null
sudo apt-get update
sudo apt-get upgrade

HTH

Alex (alexandr-popovich) said : #5

I have connection to Internet.

alex@ubuntu:~$ ping -c 5 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_req=1 ttl=128 time=73.3 ms
64 bytes from 8.8.8.8: icmp_req=2 ttl=128 time=73.8 ms
64 bytes from 8.8.8.8: icmp_req=3 ttl=128 time=73.9 ms
64 bytes from 8.8.8.8: icmp_req=4 ttl=128 time=72.9 ms
64 bytes from 8.8.8.8: icmp_req=5 ttl=128 time=73.0 ms

--- 8.8.8.8 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4009ms
rtt min/avg/max/mdev = 72.962/73.414/73.910/0.425 ms

I not sure but maybe it is important ... I launch xUbuntu from VMware.

Thanks,

Did my commands work?

Alex (alexandr-popovich) said : #7

Hi, It seems no.
I got next:

alex@ubuntu:~$ echo "nameserver 8.8.8.8" | sudo tee /etc/resolv.conf > /dev/null[sudo] password for alex:
alex@ubuntu:~$ sudo apt-get update
Err http://ppa.launchpad.net precise InRelease

Err http://ppa.launchpad.net precise Release.gpg
  Unable to connect to ppa.launchpad.net:http:
Err http://archive.canonical.com precise InRelease

Err http://archive.canonical.com precise Release.gpg
  Unable to connect to archive.canonical.com:http: [IP: 91.189.92.150 80]
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 archive.ubuntu.com:http: [IP: 91.189.92.184 80]
Err http://archive.ubuntu.com precise-updates Release.gpg
  Unable to connect to archive.ubuntu.com:http: [IP: 91.189.92.184 80]
Err http://archive.ubuntu.com precise-security Release.gpg
  Unable to connect to archive.ubuntu.com:http: [IP: 91.189.92.184 80]
Err http://archive.ubuntu.com precise-proposed Release.gpg
  Unable to connect to archive.ubuntu.com:http: [IP: 91.189.92.184 80]
Err http://archive.ubuntu.com precise-backports Release.gpg
  Unable to connect to archive.ubuntu.com:http: [IP: 91.189.92.184 80]
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.canonical.com/ubuntu/dists/precise/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://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu/dists/precise/InRelease

W: Failed to fetch http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu/dists/precise/Release.gpg Unable to connect to ppa.launchpad.net:http:

W: Failed to fetch http://archive.canonical.com/ubuntu/dists/precise/Release.gpg Unable to connect to archive.canonical.com:http: [IP: 91.189.92.150 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise/Release.gpg Unable to connect to archive.ubuntu.com:http: [IP: 91.189.92.184 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise-updates/Release.gpg Unable to connect to archive.ubuntu.com:http: [IP: 91.189.92.184 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise-security/Release.gpg Unable to connect to archive.ubuntu.com:http: [IP: 91.189.92.184 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise-proposed/Release.gpg Unable to connect to archive.ubuntu.com:http: [IP: 91.189.92.184 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise-backports/Release.gpg Unable to connect to archive.ubuntu.com:http: [IP: 91.189.92.184 80]

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

Have you tried a different package source in software centre?

Alex (alexandr-popovich) said : #9

I do not know which ones I can use.
If you can provide me a few of them ... I will try to add them into my repos and will try to update from there.

There are options in the software centre you can choose, they hold the same packages but are just located in a different geographic location. May help you

Can you help with this problem?

Provide an answer of your own, or ask Alex for more information if necessary.

To post a message you must log in.