apt-get fails to fetch
When trying to use apt-get on a FRESH Ubuntu server installation that has been properly configured for internet use I get:
#######
:~# apt-get update
Err http://
Err http://
Err http://
Err http://
Err http://
Err http://
Temporary failure resolving 'extras.ubuntu.com'
Err http://
Temporary failure resolving 'security.
Err http://
Temporary failure resolving 'us.archive.
Err http://
Temporary failure resolving 'us.archive.
Err http://
Temporary failure resolving 'us.archive.
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: Some index files failed to download. They have been ignored, or old ones used instead.
#######
I have tried to fix the issue as suggested in:
#######
https:/
#######
But the problem persists. The output of the above commands is:
#######
:~# sudo fuser -vvv /var/lib/dpkg/lock
:~# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_
DISTRIB_
DISTRIB_
:~# uname -a
Linux genomics07 3.2.0-23-generic #36-Ubuntu SMP Tue Apr 10 20:39:51 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
:~# sudo rm /var/lib/
:~# sudo cp -arf /var/lib/dpkg /var/lib/
:~# sudo mv /var/lib/
:~# sudo cp /var/lib/
:~# sudo mv /var/lib/
:~# sudo cp /var/lib/
:~# sudo rm -rf /var/lib/
:~# sudo rm -rf /var/lib/apt/lists
:~# sudo rm /var/cache/
:~# sudo mkdir /var/lib/apt/lists
:~# sudo mkdir /var/lib/
:~# LANG=C;sudo apt-get clean
:~# LANG=C;sudo apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
:~# 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.
4 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up grub2-common (1.99-21ubuntu3) ...
Setting up grub-pc-bin (1.99-21ubuntu3) ...
Setting up grub-pc (1.99-21ubuntu3) ...
Installation finished. No error reported.
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found memtest86+ image: /memtest86+.bin
done
Setting up grub-gfxpayload
:~# LANG=C;sudo apt-get update -o APT::Cache-
Err http://
Err http://
Err http://
Err http://
Err http://
Err http://
Temporary failure resolving 'security.
Err http://
Temporary failure resolving 'us.archive.
Err http://
Temporary failure resolving 'us.archive.
Err http://
Temporary failure resolving 'extras.ubuntu.com'
Err http://
Temporary failure resolving 'us.archive.
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: Some index files failed to download. They have been ignored, or old ones used instead.
:~# sudo dpkg --configure -a
:~# sudo dpkg --clear-avail
:~# 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.
:~# 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.
:~# LANG=C;sudo apt-get update -o APT::Cache-
Err http://
Err http://
Err http://
Err http://
Err http://
Err http://
Temporary failure resolving 'extras.ubuntu.com'
Err http://
Temporary failure resolving 'security.
Err http://
Temporary failure resolving 'us.archive.
Err http://
Temporary failure resolving 'us.archive.
Err http://
Temporary failure resolving 'us.archive.
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: 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.
#######
Any help will be appreciated
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu apt Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- actionparsnip
- Solved:
- Last query:
- Last reply: