Project

General

Profile

Bug #76

Error Updating Package List in APT on Ubuntu 12.04

Added by Daniel Curtis about 11 years ago. Updated about 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Start date:
02/26/2013
Due date:
% Done:

100%

Estimated time:
0.50 h
Spent time:

Description

I am getting an error while trying to update the a new elastic cloud server running Ubuntu 12.04 with nothing but OpenSSH server installed. The error displays:

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/precise-security/main/source/Sources 404 Not Found

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/precise-security/universe/source/Sources 404 Not Found

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/precise-security/multiverse/source/Sources 404 Not Found

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/precise-security/main/binary-powerpc/Packages 404 Not Found

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/precise-security/universe/binary-powerpc/Packages 404 Not Found

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/precise-security/multiverse/binary-powerpc/Packages 404 Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.

#1

Updated by Daniel Curtis about 11 years ago

  • Description updated (diff)

The issue was with the installation setting the distribution update path to security.ubuntu.com, this is normally where updates are housed. However I am running on a PowerPC architecture and updates are housed at ports.ubuntu.com

  • Original /etc/apt/sources.list:

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

##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

##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

  • New /etc/apt/sources.list:

deb http://ports.ubuntu.com/ubuntu-ports precise-security main
deb-src http://ports.ubuntu.com/ubuntu-ports precise-security main
deb http://ports.ubuntu.com/ubuntu-ports precise-security universe
deb-src http://ports.ubuntu.com/ubuntu-ports precise-security universe
deb http://ports.ubuntu.com/ubuntu-ports precise-security multiverse
deb-src http://ports.ubuntu.com/ubuntu-ports precise-security multiverse

##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

##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

#2

Updated by Daniel Curtis about 11 years ago

There was still an issue installing standard packages, vim or vim-nox. I have finally found the cause of this. The standard repositories set during install is for the main Ubuntu update servers. However the main repositories only house packages for x86 and amd64 not ppc. The PowerPC packages are housed at ports.ubuntu.com, as such the /etc/apt/sources.list must be modified as such:
  • /etc/apt/sources.list:

deb http://ports.ubuntu.com/ubuntu-ports/ precise main
deb http://ports.ubuntu.com/ubuntu-ports/ precise universe
deb http://ports.ubuntu.com/ubuntu-ports/ precise multiverse
deb http://ports.ubuntu.com/ubuntu-ports/ precise-updates main
deb http://ports.ubuntu.com/ubuntu-ports/ precise-updates universe
deb http://ports.ubuntu.com/ubuntu-ports/ precise-updates multiverse
deb http://ports.ubuntu.com/ubuntu-ports/ precise-backports main
deb http://ports.ubuntu.com/ubuntu-ports/ precise-backports universe
deb http://ports.ubuntu.com/ubuntu-ports/ precise-backports multiverse
deb http://ports.ubuntu.com/ubuntu-ports/ precise-security main
deb http://ports.ubuntu.com/ubuntu-ports/ precise-security universe
deb http://ports.ubuntu.com/ubuntu-ports/ precise-security multiverse

#3

Updated by Daniel Curtis about 11 years ago

  • Status changed from In Progress to Closed
  • % Done changed from 0 to 100
  • Estimated time set to 0.50 h

Also available in: Atom PDF