PDA

View Full Version : [server] 12.04 i686 apt-get update is failing



replab_robin
October 20th, 2014, 04:16 PM
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04.5 LTS
Release: 12.04
Codename: precise


$ uname -a
Linux eiger.reportlab.com 3.2.0-58-generic-pae #88-Ubuntu SMP Tue Dec 3 18:00:02 UTC 2013 i686 i686 i386 GNU/Linux

I am having trouble updating the apt package lists. When I run sudo apt-get update I see

sudo apt-get update
Hit http://security.ubuntu.com precise-security Release.gpg
Hit http://security.ubuntu.com precise-security Release
Hit http://gb.archive.ubuntu.com precise Release.gpg
Hit http://gb.archive.ubuntu.com precise-updates Release.gpg
Hit http://gb.archive.ubuntu.com precise Release
...........
Hit http://gb.archive.ubuntu.com precise-updates/universe Translation-en
Err http://gb.archive.ubuntu.com precise/universe Sources
404 Not Found [IP: 91.189.92.200 80]
Err http://gb.archive.ubuntu.com precise/restricted i386 Packages
404 Not Found [IP: 91.189.92.200 80]
Err http://gb.archive.ubuntu.com precise/universe i386 Packages
404 Not Found [IP: 91.189.92.200 80]
Err http://gb.archive.ubuntu.com precise/multiverse i386 Packages
404 Not Found [IP: 91.189.92.200 80]
W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/precise/universe/source/Sources 404 Not Found [IP: 91.189.92.200 80]

W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/precise/restricted/binary-i386/Packages 404 Not Found [IP: 91.189.92.200 80]

W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/precise/universe/binary-i386/Packages 404 Not Found [IP: 91.189.92.200 80]

W: Failed to fetch http://gb.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.

After this I am unable to obtain some simple packages eg

$ sudo apt-get install rsnapshot
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package rsnapshot is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'rsnapshot' has no installation candidate

whereas on a similar machine in the same office

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04.4 LTS
Release: 12.04
Codename: precise

$ uname -a
Linux glencoe 3.5.0-39-generic #60~precise1-Ubuntu SMP Wed Aug 14 15:38:41 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

I can run apt-get update fine and also install rsnapshot.

What am I doing wrong? I'm a bit surprised at the old kernel on the i686 machine.

Penguin360
October 20th, 2014, 04:57 PM
The subject of this thread should be "12.04"? I never heard 12.05 release. :p

replab_robin
October 20th, 2014, 08:11 PM
The subject of this thread should be "12.04"? I never heard 12.05 release. :p

yes indeed! My crumbly brain and fingers mis-typed :( it is 12.04+

plucky
October 20th, 2014, 08:33 PM
Can you post your sources.list
cat /etc/apt/sources.list

The failing links take you Here (http://gb.archive.ubuntu.com/)

nerdtron
October 20th, 2014, 08:55 PM
Failing on a specific IP, same on this thread http://ubuntuforums.org/showthread.php?t=2249235
Could be the mirrors are down?

replab_robin
October 20th, 2014, 09:27 PM
Can you post your sources.list
cat /etc/apt/sources.list

The failing links take you Here (http://gb.archive.ubuntu.com/)


$ cat /etc/apt/sources.list
#

# deb cdrom:[Ubuntu-Server 12.04.1 LTS _Precise Pangolin_ - Release i386 (20120817.3)]/ precise main restricted

#deb cdrom:[Ubuntu-Server 12.04.1 LTS _Precise Pangolin_ - Release i386 (20120817.3)]/ precise main restricted

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

deb http://gb.archive.ubuntu.com/ubuntu/ precise main restricted
deb-src http://gb.archive.ubuntu.com/ubuntu/ precise main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://gb.archive.ubuntu.com/ubuntu/ precise-updates main restricted
deb-src http://gb.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://gb.archive.ubuntu.com/ubuntu/ precise universe
deb-src http://gb.archive.ubuntu.com/ubuntu/ precise universe
deb http://gb.archive.ubuntu.com/ubuntu/ precise-updates universe
deb-src http://gb.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://gb.archive.ubuntu.com/ubuntu/ precise multiverse
deb-src http://gb.archive.ubuntu.com/ubuntu/ precise multiverse
deb http://gb.archive.ubuntu.com/ubuntu/ precise-updates multiverse
deb-src http://gb.archive.ubuntu.com/ubuntu/ precise-updates multiverse

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

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

## Uncomment the following two lines to add software from Ubuntu's
## 'extras' repository.
## 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

Edit: If I compare with the x_64 working system I see two uncommented lines there.


deb http://gb.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://gb.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse

mörgæs
October 21st, 2014, 01:54 AM
The subject of this thread should be "12.04"? I never heard 12.05 release. :p

Changed.

replab_robin
October 21st, 2014, 03:14 PM
Failing on a specific IP, same on this thread http://ubuntuforums.org/showthread.php?t=2249235
Could be the mirrors are down?

The problem is not transient and is present when other machines using similar /etc/apt/sources.list don't error. The problem continues even if I modify the two lines that differ from a working system.

plucky
October 21st, 2014, 10:42 PM
The problem is not transient and is present when other machines using similar /etc/apt/sources.list don't error. The problem continues even if I modify the two lines that differ from a working system.

There is a problem with the mirror that machine is using,other machines might be using a different mirror.

On a normal Ubuntu machine you can open Software Sources and change the Download Mirror,but I am not sure how to do that on a server. (Maybe manually edit the file)

You can also go Here ( http://repogen.simplylinux.ch/) and generate another sources.list file and substitute the current sources.list file on the failing system.

Try to generate a sources.list file using the Main server.


deb http://gb.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://gb.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse

Those lines are just enabling the precise backports repository. (Probably not needed)

replab_robin
October 22nd, 2014, 08:51 AM
You can also go Here ( http://repogen.simplylinux.ch/) and generate another sources.list file and substitute the current sources.list file on the failing system.

I tried the above and it did generate a working list. Interestingly the gb. prefix has become uk. (my servers are in the uk) and the new list seems to work well.

I can now install rsnapshot on this machine :)