Err http://archive.ubuntu.com/ubuntu/ precise-updates/main

Asked by Ivan

sudo grep -R proxy /etc/apt/*
/etc/apt/apt.conf:Acquire::http::proxy "http://10.12.0.9:8002/";
/etc/apt/apt.conf:Acquire::https::proxy "https://10.12.0.9:8002/";
/etc/apt/apt.conf:Acquire::ftp::proxy "ftp://10.12.0.9:8002/";
/etc/apt/apt.conf:Acquire::socks::proxy "socks://10.12.0.9:8002/";
iapazmino@uio11iapm270409:~$ ^C
iapazmino@uio11iapm270409:~$ sudo fuser -vvv /var/lib/dpkg/lock
iapazmino@uio11iapm270409:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.04
DISTRIB_CODENAME=precise
DISTRIB_DESCRIPTION="Ubuntu 12.04.1 LTS"
iapazmino@uio11iapm270409:~$ uname -a
Linux uio11iapm270409 3.2.0-29-generic-pae #46-Ubuntu SMP Fri Jul 27 17:25:43 UTC 2012 i686 i686 i386 GNU/Linux
iapazmino@uio11iapm270409:~$ sudo rm /var/lib/apt/lists/lock
iapazmino@uio11iapm270409:~$ sudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup
iapazmino@uio11iapm270409:~$ sudo mv /var/lib/dpkg/status /var/lib/dpkg/status-bad
iapazmino@uio11iapm270409:~$ sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status
iapazmino@uio11iapm270409:~$ sudo mv /var/lib/dpkg/available /var/lib/dpkg/available-bad
iapazmino@uio11iapm270409:~$ sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
iapazmino@uio11iapm270409:~$ sudo rm -rf /var/lib/dpkg/updates/*
iapazmino@uio11iapm270409:~$ sudo rm -rf /var/lib/apt/lists
iapazmino@uio11iapm270409:~$ sudo rm /var/cache/apt/*.bin
rm: cannot remove `/var/cache/apt/*.bin': No such file or directory
iapazmino@uio11iapm270409:~$ sudo mkdir /var/lib/apt/lists
iapazmino@uio11iapm270409:~$ sudo mkdir /var/lib/apt/lists/partial
iapazmino@uio11iapm270409:~$ LANG=C;sudo apt-get clean
iapazmino@uio11iapm270409:~$ LANG=C;sudo apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
iapazmino@uio11iapm270409:~$ 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.
iapazmino@uio11iapm270409:~$ LANG=C;sudo apt-get update -o APT::Cache-Limit=25165824
Ign http://archive.canonical.com precise InRelease
Ign http://extras.ubuntu.com precise InRelease
Get:1 http://archive.canonical.com precise Release.gpg [198 B]
Get:2 http://extras.ubuntu.com precise Release.gpg [72 B]
Ign http://extras.ubuntu.com precise Release
Get:3 http://extras.ubuntu.com precise/main Sources [7.134 B]
Get:4 http://extras.ubuntu.com precise/main i386 Packages [9.403 B]
Ign http://extras.ubuntu.com precise/main TranslationIndex
Ign http://extras.ubuntu.com precise/main Translation-en
Get:5 http://archive.canonical.com precise Release [7.078 B]
Ign http://archive.ubuntu.com precise InRelease
Ign http://archive.ubuntu.com precise-security InRelease
Ign http://archive.ubuntu.com precise-updates InRelease
Ign http://archive.ubuntu.com precise-backports InRelease
Get:6 http://archive.ubuntu.com precise Release.gpg [198 B]
Get:7 http://archive.ubuntu.com precise-security Release.gpg [198 B]
Get:8 http://archive.ubuntu.com precise-updates Release.gpg [198 B]
Get:9 http://archive.ubuntu.com precise-backports Release.gpg [198 B]
Ign http://archive.canonical.com precise/partner TranslationIndex
Get:10 http://archive.ubuntu.com precise Release [49,6 kB]
Get:11 http://archive.canonical.com precise/partner Sources [3.895 B]
Get:12 http://archive.canonical.com precise/partner i386 Packages [4.691 B]
Get:13 http://archive.ubuntu.com precise-security Release [49,6 kB]
Ign http://archive.canonical.com precise/partner Translation-en
Get:14 http://archive.ubuntu.com precise-updates Release [49,6 kB]
Get:15 http://archive.ubuntu.com precise/main Sources [934 kB]
Get:16 http://archive.ubuntu.com precise/restricted Sources [5.470 B]
Get:17 http://archive.ubuntu.com precise/universe Sources [5.019 kB]
Get:18 http://archive.ubuntu.com precise/main i386 Packages [1.274 kB]
Get:19 http://archive.ubuntu.com precise/universe i386 Packages [4.796 kB]
Get:20 http://archive.ubuntu.com precise/main TranslationIndex [3.706 B]
Ign http://archive.ubuntu.com precise-backports Release
Get:21 http://archive.ubuntu.com precise/restricted TranslationIndex [2.596 B]
Get:22 http://archive.ubuntu.com precise/universe TranslationIndex [2.922 B]
Get:23 http://archive.ubuntu.com precise-security/restricted Sources [1.950 B]
Get:24 http://archive.ubuntu.com precise-security/main Sources [42,8 kB]
Get:25 http://archive.ubuntu.com precise-security/main Sources [42,8 kB]
Ign http://archive.ubuntu.com precise/multiverse TranslationIndex
Get:26 http://archive.ubuntu.com precise-security/multiverse Sources [1.386 B]
Get:27 http://archive.ubuntu.com precise-security/universe Sources [12,6 kB]
Get:28 http://archive.ubuntu.com precise-security/main i386 Packages [165 kB]
Get:29 http://archive.ubuntu.com precise-security/restricted i386 Packages [3.968 B]
Get:30 http://archive.ubuntu.com precise-security/multiverse i386 Packages [2.369 B]
Get:31 http://archive.ubuntu.com precise-security/main TranslationIndex [73 B]
Get:32 http://archive.ubuntu.com precise-security/multiverse TranslationIndex [71 B]
Get:33 http://archive.ubuntu.com precise-security/restricted TranslationIndex [71 B]
Get:34 http://archive.ubuntu.com precise-security/universe TranslationIndex [73 B]
Get:35 http://archive.ubuntu.com precise-updates/restricted Sources [3.285 B]
Get:36 http://archive.ubuntu.com precise-updates/main Sources [162 kB]
Get:37 http://archive.ubuntu.com precise-updates/multiverse Sources [4.241 B]
Get:38 http://archive.ubuntu.com precise-updates/universe Sources [50,8 kB]
Get:39 http://archive.ubuntu.com precise-updates/main i386 Packages [386 kB]
Get:40 http://archive.ubuntu.com precise-updates/restricted i386 Packages [6.732 B]
Get:41 http://archive.ubuntu.com precise-updates/universe i386 Packages [129 kB]
Get:42 http://archive.ubuntu.com precise-updates/multiverse i386 Packages [9.672 B]
Get:43 http://archive.ubuntu.com precise-updates/main TranslationIndex [3.564 B]
Get:44 http://archive.ubuntu.com precise-updates/multiverse TranslationIndex [2.605 B]
Get:45 http://archive.ubuntu.com precise-updates/restricted TranslationIndex [2.461 B]
Get:46 http://archive.ubuntu.com precise-updates/universe TranslationIndex [2.850 B]
Get:47 http://archive.ubuntu.com precise/main Translation-en [726 kB]
Get:48 http://archive.ubuntu.com precise-backports/main Sources [2.422 B]
Get:49 http://archive.ubuntu.com precise-backports/universe Sources [14,2 kB]
Get:50 http://archive.ubuntu.com precise-backports/multiverse Sources [1.383 B]
Get:51 http://archive.ubuntu.com precise-backports/restricted i386 Packages [14 B]
Get:52 http://archive.ubuntu.com precise-backports/universe i386 Packages [12,4 kB]
Get:53 http://archive.ubuntu.com precise-backports/main TranslationIndex [72 B]
Get:54 http://archive.ubuntu.com precise-backports/restricted TranslationIndex [70 B]
Get:55 http://archive.ubuntu.com precise-backports/universe TranslationIndex [72 B]
Get:56 http://archive.ubuntu.com precise/universe Translation-en [3.341 kB]
Get:57 http://archive.ubuntu.com precise/restricted i386 Packages [9.108 B]
Ign http://archive.ubuntu.com precise-backports/multiverse TranslationIndex
Get:58 http://archive.ubuntu.com precise/multiverse i386 Packages [155 kB]
Get:59 http://archive.ubuntu.com precise-security/main Translation-en [76,5 kB]
Get:60 http://archive.ubuntu.com precise-security/main Translation-en [76,5 kB]
Get:61 http://archive.ubuntu.com precise-security/multiverse Translation-en [995 B]
Get:62 http://archive.ubuntu.com precise-security/restricted Translation-en [978 B]
Get:63 http://archive.ubuntu.com precise-security/universe Translation-en [26,5 kB]
Get:64 http://archive.ubuntu.com precise-security/universe Translation-en [26,5 kB]
Get:65 http://archive.ubuntu.com precise-security/universe i386 Packages [51,3 kB]
Get:66 http://archive.ubuntu.com precise-security/universe i386 Packages [51,3 kB]
Get:67 http://archive.ubuntu.com precise-updates/main Translation-en [187 kB]
Get:68 http://archive.ubuntu.com precise-updates/main Translation-en [187 kB]
Get:69 http://archive.ubuntu.com precise-updates/universe Translation-en [77,1 kB]
Get:70 http://archive.ubuntu.com precise-backports/restricted Translation-en [14 B]
Get:71 http://archive.ubuntu.com precise-backports/universe Translation-en [9.070 B]
Err http://archive.ubuntu.com precise/multiverse Sources
  401 Unauthorized
Get:72 http://archive.ubuntu.com precise-backports/main i386 Packages [1.778 B]
Get:73 http://archive.ubuntu.com precise/multiverse Translation-en [112 kB]
Get:74 http://archive.ubuntu.com precise-updates/multiverse Translation-en [5.579 B]
Err http://archive.ubuntu.com precise-backports/multiverse i386 Packages
  404 Not Found
Err http://archive.ubuntu.com precise-backports/restricted Sources
  401 Unauthorized
Ign http://archive.ubuntu.com precise/restricted Translation-en
Get:75 http://archive.ubuntu.com precise-updates/restricted Translation-en [6.112 B]
Ign http://archive.ubuntu.com precise-backports/main Translation-en
Get:76 http://archive.ubuntu.com precise-backports/multiverse Translation-en [807 B]
Fetched 18,0 MB in 39s (452 kB/s)
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise/multiverse/source/Sources 401 Unauthorized

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise-backports/restricted/source/Sources 401 Unauthorized

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise-backports/multiverse/binary-i386/Packages 404 Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.
iapazmino@uio11iapm270409:~$ sudo dpkg --configure -a
iapazmino@uio11iapm270409:~$ sudo dpkg --clear-avail
iapazmino@uio11iapm270409:~$ 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 51 not upgraded.
iapazmino@uio11iapm270409:~$ 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 51 not upgraded.
iapazmino@uio11iapm270409:~$ LANG=C;sudo apt-get update -o APT::Cache-Limit=25165824 && sudo apt-get dist-upgrade
Ign http://archive.ubuntu.com precise InRelease
Ign http://archive.ubuntu.com precise-updates InRelease
Ign http://extras.ubuntu.com precise InRelease
Get:1 http://extras.ubuntu.com precise Release.gpg [72 B]
Ign http://archive.ubuntu.com precise-backports InRelease
Ign http://archive.ubuntu.com precise-security InRelease
Hit http://archive.ubuntu.com precise Release.gpg
Ign http://extras.ubuntu.com precise Release
Hit http://archive.ubuntu.com precise-updates Release.gpg
Get:2 http://archive.ubuntu.com precise-backports Release.gpg [198 B]
Ign http://extras.ubuntu.com precise/main Sources/DiffIndex
Hit http://archive.ubuntu.com precise-security Release.gpg
Hit http://archive.ubuntu.com precise Release
Hit http://archive.ubuntu.com precise-updates Release
Ign http://extras.ubuntu.com precise/main i386 Packages/DiffIndex
Ign http://extras.ubuntu.com precise/main TranslationIndex
Hit http://extras.ubuntu.com precise/main Sources
Hit http://extras.ubuntu.com precise/main i386 Packages
Ign http://archive.canonical.com precise InRelease
Hit http://archive.canonical.com precise Release.gpg
Hit http://archive.canonical.com precise Release
Hit http://archive.canonical.com precise/partner i386 Packages
Ign http://archive.canonical.com precise/partner TranslationIndex
Hit http://archive.canonical.com precise/partner Sources
Get:3 http://archive.ubuntu.com precise-backports Release [49,6 kB]
Ign http://extras.ubuntu.com precise/main Translation-en
Ign http://archive.canonical.com precise/partner Translation-en
Hit http://archive.ubuntu.com precise-security Release
Hit http://archive.ubuntu.com precise/main Sources
Hit http://archive.ubuntu.com precise/restricted Sources
Get:4 http://archive.ubuntu.com precise/multiverse Sources [155 kB]
Hit http://archive.ubuntu.com precise/main i386 Packages
Hit http://archive.ubuntu.com precise/restricted i386 Packages
Hit http://archive.ubuntu.com precise/universe i386 Packages
Hit http://archive.ubuntu.com precise/main TranslationIndex
Get:5 http://archive.ubuntu.com precise/multiverse TranslationIndex [2.676 B]
Hit http://archive.ubuntu.com precise/restricted TranslationIndex
Hit http://archive.ubuntu.com precise/universe TranslationIndex
Hit http://archive.ubuntu.com precise-updates/restricted Sources
Hit http://archive.ubuntu.com precise-updates/main Sources
Hit http://archive.ubuntu.com precise-updates/multiverse Sources
Hit http://archive.ubuntu.com precise-updates/universe Sources
Hit http://archive.ubuntu.com precise-updates/main i386 Packages
Hit http://archive.ubuntu.com precise-updates/restricted i386 Packages
Hit http://archive.ubuntu.com precise-updates/universe i386 Packages
Hit http://archive.ubuntu.com precise-updates/multiverse i386 Packages
Hit http://archive.ubuntu.com precise-updates/main TranslationIndex
Hit http://archive.ubuntu.com precise-updates/multiverse TranslationIndex
Hit http://archive.ubuntu.com precise-updates/restricted TranslationIndex
Hit http://archive.ubuntu.com precise-updates/universe TranslationIndex
Hit http://archive.ubuntu.com precise-backports/main Sources
Get:6 http://archive.ubuntu.com precise-backports/restricted Sources [14 B]
Hit http://archive.ubuntu.com precise-backports/universe Sources
Hit http://archive.ubuntu.com precise-backports/multiverse Sources
Hit http://archive.ubuntu.com precise-backports/main i386 Packages
Hit http://archive.ubuntu.com precise-backports/restricted i386 Packages
Hit http://archive.ubuntu.com precise-backports/universe i386 Packages
Get:7 http://archive.ubuntu.com precise-backports/multiverse i386 Packages [999 B]
Hit http://archive.ubuntu.com precise-backports/main TranslationIndex
Get:8 http://archive.ubuntu.com precise-backports/multiverse TranslationIndex [71 B]
Hit http://archive.ubuntu.com precise-backports/restricted TranslationIndex
Hit http://archive.ubuntu.com precise-backports/universe TranslationIndex
Hit http://archive.ubuntu.com precise-security/restricted Sources
Hit http://archive.ubuntu.com precise-security/main Sources
Hit http://archive.ubuntu.com precise-security/multiverse Sources
Hit http://archive.ubuntu.com precise-security/universe Sources
Hit http://archive.ubuntu.com precise-security/main i386 Packages
Hit http://archive.ubuntu.com precise-security/restricted i386 Packages
Hit http://archive.ubuntu.com precise-security/multiverse i386 Packages
Hit http://archive.ubuntu.com precise-security/main TranslationIndex
Hit http://archive.ubuntu.com precise-security/multiverse TranslationIndex
Hit http://archive.ubuntu.com precise-security/restricted TranslationIndex
Hit http://archive.ubuntu.com precise-security/universe TranslationIndex
Hit http://archive.ubuntu.com precise/main Translation-en
Get:9 http://archive.ubuntu.com precise/restricted Translation-en [2.395 B]
Hit http://archive.ubuntu.com precise/universe Translation-en
Hit http://archive.ubuntu.com precise/multiverse i386 Packages
Hit http://archive.ubuntu.com precise-updates/main Translation-en
Hit http://archive.ubuntu.com precise-updates/multiverse Translation-en
Hit http://archive.ubuntu.com precise-updates/restricted Translation-en
Hit http://archive.ubuntu.com precise-updates/universe Translation-en
Get:10 http://archive.ubuntu.com precise-backports/main Translation-en [1.244 B]
Hit http://archive.ubuntu.com precise-backports/restricted Translation-en
Hit http://archive.ubuntu.com precise-backports/universe Translation-en
Hit http://archive.ubuntu.com precise-security/main Translation-en
Hit http://archive.ubuntu.com precise-security/multiverse Translation-en
Hit http://archive.ubuntu.com precise-security/restricted Translation-en
Hit http://archive.ubuntu.com precise-security/universe Translation-en
Hit http://archive.ubuntu.com precise-security/universe i386 Packages
Err http://archive.ubuntu.com precise/universe Sources
  401 Unauthorized
Hit http://archive.ubuntu.com precise/multiverse Translation-en
Hit http://archive.ubuntu.com precise-backports/multiverse Translation-en
Fetched 212 kB in 5s (37,7 kB/s)
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise/universe/source/Sources 401 Unauthorized

E: Some index files failed to download. They have been ignored, or old ones used instead.
iapazmino@uio11iapm270409:~$ ls -lart /etc/apt/sources.list.d
total 32
drwxr-xr-x 6 root root 4096 sep 3 16:03 ..
drwxr-xr-x 2 root root 4096 sep 11 08:19 .
-rw-r--r-- 1 root root 56 sep 11 08:31 svn.list.save
-rw-r--r-- 1 root root 56 sep 11 08:31 svn.list
-rw-r--r-- 1 root root 122 sep 11 08:31 svn-ppa-precise.list.save
-rw-r--r-- 1 root root 122 sep 11 08:31 svn-ppa-precise.list
-rw-r--r-- 1 root root 55 sep 11 08:31 google.list.save
-rw-r--r-- 1 root root 57 sep 11 08:31 google.list

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Have you tried switching update server?

Revision history for this message
Ivan (iapazmino) said :
#2

Before following the steps I changed from Ecuador's update server to the main update server.

Revision history for this message
Manfred Hampl (m-hampl) said :
#3

The interesting thing that I see from your log is, that in the first attempt http://archive.ubuntu.com/ubuntu/dists/precise-backports/restricted/source/Sources failed with "401 Unauthorized", but in the second attempt it succeeded ("Get:6 http://archive.ubuntu.com precise-backports/restricted Sources [14 B]2)
Apparently there was some hickup in your internet connection.

Can you please do the following:
open a terminal and issue the command
sudo apt-get update
several times and check, if details and number of the "W: failed to fetch" messages changes. If the problem was only temporary, it might even be that the problem disappears.

Apart from that: in your last run the only file missing is precise-backports/restricted Sources which is an empty file anyhow.
So you should be able to run the command
sudo apt-get dist-upgrade
to upgrade your system to the most up-to-date status.

Can you help with this problem?

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

To post a message you must log in.