LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   failed to fetch (http://www.linuxquestions.org/questions/linux-newbie-8/failed-to-fetch-893831/)

dyeadon 07-26-2011 06:59 AM

failed to fetch
 
Why do I receive messages that have the phrase "fail to fetch" when I try to update Ubuntu 11.04?
I am using System, Administration, Update Manager and I have not modified the file /etc/apt/sources.list; nevertheless, I have copied it below together with an example message:

dennis@ubuntu:~$ cd /etc/apt
dennis@ubuntu:/etc/apt$ cat sources.list
#deb cdrom:[Ubuntu 11.04 _Natty Narwhal_ - Release i386 (20110427.1)]/ natty main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://us.archive.ubuntu.com/ubuntu/ natty main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ natty main restricted

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

## Uncomment the following two lines to add software from the 'backports'
## repository.
## 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://us.archive.ubuntu.com/ubuntu/ natty-backports main restricted universe multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ natty-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu natty-security main restricted
deb-src http://security.ubuntu.com/ubuntu natty-security main restricted
deb http://security.ubuntu.com/ubuntu natty-security universe
deb-src http://security.ubuntu.com/ubuntu natty-security universe
deb http://security.ubuntu.com/ubuntu natty-security multiverse
deb-src http://security.ubuntu.com/ubuntu natty-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 natty partner
# deb-src http://archive.canonical.com/ubuntu natty 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 natty main
deb-src http://extras.ubuntu.com/ubuntu natty main
dennis@ubuntu:/etc/apt$

In addition, my sincere thanks for your help.

Failed to fetch http://us.archive.ubuntu.com/ubuntu/...tu3.1_i386.deb 0 OK [IP: 91.189.88.30 80]

redgoblin 07-26-2011 07:37 AM

How are you trying to update Ubuntu? It might help more if you can explain what you're doing, along with exactly what you're typing (if anything) and the full error message.

Using an apt based distribution like Ubuntu or Debian the error "failed to fetch" when updating normally means one of the repositories or files you're trying to fetch doesn't exists. It could be a miss-configured sources list, or a repository that temporarily unavailable.

Post the steps you're following, the error message you get, and on this occasion the content of /etc/apt/sources.list.

knudfl 07-26-2011 07:52 AM

Please always refresh the 'Package Index' before an install or package update :

sudo apt-get update

https://help.ubuntu.com/8.04/serverguide/C/apt-get.html

..


All times are GMT -5. The time now is 04:10 PM.