apt-get update reporting "not acceptable"

Bug #940825 reported by Ralf Hildebrandt
172
This bug affects 37 people
Affects Status Importance Assigned to Milestone
apt (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

# apt-get update
Ign http://de.archive.ubuntu.com precise InRelease
Ign http://archive.canonical.com precise InRelease
Ign http://de.archive.ubuntu.com precise-updates InRelease
Ign http://ppa.launchpad.net oneiric InRelease
Ign http://ppa.launchpad.net oneiric InRelease
Ign http://ppa.launchpad.net oneiric InRelease
Ign http://us.archive.ubuntu.com precise InRelease
Ign http://us.archive.ubuntu.com precise-updates InRelease
Ign http://us.archive.ubuntu.com precise-backports InRelease
Ign http://de.archive.ubuntu.com precise-backports InRelease
Hit http://archive.canonical.com precise Release.gpg
Ign http://ppa.launchpad.net precise InRelease
Hit http://ppa.launchpad.net oneiric Release.gpg
Ign http://de.archive.ubuntu.com precise-security InRelease
Ign http://us.archive.ubuntu.com precise-security InRelease
Hit http://us.archive.ubuntu.com precise Release.gpg
Hit http://de.archive.ubuntu.com precise Release.gpg
Hit http://archive.canonical.com precise Release
Hit http://ppa.launchpad.net oneiric Release.gpg
Get:1 http://ppa.launchpad.net oneiric Release.gpg [316 B]
Hit http://us.archive.ubuntu.com precise-updates Release.gpg
Hit http://us.archive.ubuntu.com precise-backports Release.gpg
Hit http://de.archive.ubuntu.com precise-updates Release.gpg
Hit http://packages.medibuntu.org oneiric InRelease
Hit http://ppa.launchpad.net precise Release.gpg
Hit http://us.archive.ubuntu.com precise-security Release.gpg
Hit http://de.archive.ubuntu.com precise-backports Release.gpg
Hit http://archive.canonical.com precise/partner amd64 Packages
Hit http://ppa.launchpad.net oneiric Release
Hit http://ppa.launchpad.net oneiric Release
Hit http://us.archive.ubuntu.com precise Release
Hit http://us.archive.ubuntu.com precise-updates Release
Hit http://archive.canonical.com precise/partner i386 Packages
Ign http://archive.canonical.com precise/partner TranslationIndex
Hit http://ppa.launchpad.net oneiric Release
Hit http://us.archive.ubuntu.com precise-backports Release
Hit http://de.archive.ubuntu.com precise-security Release.gpg
Ign http://ppa.launchpad.net oneiric Release
Hit http://packages.medibuntu.org oneiric/free amd64 Packages
Hit http://ppa.launchpad.net precise Release
Hit http://us.archive.ubuntu.com precise-security Release
Hit http://ppa.launchpad.net oneiric/main amd64 Packages
Hit http://ppa.launchpad.net oneiric/main i386 Packages
Ign http://ppa.launchpad.net oneiric/main TranslationIndex
Hit http://ppa.launchpad.net oneiric/main amd64 Packages
Hit http://ppa.launchpad.net oneiric/main i386 Packages
Hit http://de.archive.ubuntu.com precise Release
Hit http://us.archive.ubuntu.com precise/main amd64 Packages
Hit http://us.archive.ubuntu.com precise/restricted amd64 Packages
Hit http://us.archive.ubuntu.com precise/universe amd64 Packages
Hit http://us.archive.ubuntu.com precise/multiverse amd64 Packages
Hit http://us.archive.ubuntu.com precise/main i386 Packages
Ign http://ppa.launchpad.net oneiric/main TranslationIndex
Hit http://us.archive.ubuntu.com precise/restricted i386 Packages
Hit http://us.archive.ubuntu.com precise/universe i386 Packages
Hit http://de.archive.ubuntu.com precise-updates Release
Ign http://ppa.launchpad.net oneiric/main amd64 Packages/DiffIndex
Ign http://ppa.launchpad.net oneiric/main i386 Packages/DiffIndex
Ign http://ppa.launchpad.net oneiric/main TranslationIndex
Hit http://ppa.launchpad.net precise/main Sources
Hit http://ppa.launchpad.net precise/main amd64 Packages
Hit http://us.archive.ubuntu.com precise/multiverse i386 Packages
Hit http://us.archive.ubuntu.com precise/main TranslationIndex
Hit http://us.archive.ubuntu.com precise/multiverse TranslationIndex
Hit http://us.archive.ubuntu.com precise/restricted TranslationIndex
Hit http://us.archive.ubuntu.com precise/universe TranslationIndex
Hit http://us.archive.ubuntu.com precise-updates/main amd64 Packages
Hit http://us.archive.ubuntu.com precise-updates/restricted amd64 Packages
Hit http://de.archive.ubuntu.com precise-backports Release
Hit http://packages.medibuntu.org oneiric/non-free amd64 Packages
Hit http://us.archive.ubuntu.com precise-updates/universe amd64 Packages
Hit http://ppa.launchpad.net precise/main i386 Packages
Ign http://ppa.launchpad.net precise/main TranslationIndex
Hit http://de.archive.ubuntu.com precise-security Release
Hit http://us.archive.ubuntu.com precise-updates/multiverse amd64 Packages
Hit http://us.archive.ubuntu.com precise-updates/main i386 Packages
Hit http://us.archive.ubuntu.com precise-updates/restricted i386 Packages
Hit http://us.archive.ubuntu.com precise-updates/universe i386 Packages
Hit http://us.archive.ubuntu.com precise-updates/multiverse i386 Packages
Hit http://de.archive.ubuntu.com precise/main amd64 Packages
Hit http://ppa.launchpad.net oneiric/main amd64 Packages
Hit http://ppa.launchpad.net oneiric/main i386 Packages
Hit http://us.archive.ubuntu.com precise-updates/main TranslationIndex
Hit http://us.archive.ubuntu.com precise-updates/multiverse TranslationIndex
Hit http://us.archive.ubuntu.com precise-updates/restricted TranslationIndex
Hit http://us.archive.ubuntu.com precise-updates/universe TranslationIndex
Hit http://de.archive.ubuntu.com precise/restricted amd64 Packages
Hit http://us.archive.ubuntu.com precise-backports/main amd64 Packages
Hit http://us.archive.ubuntu.com precise-backports/restricted amd64 Packages
Hit http://us.archive.ubuntu.com precise-backports/universe amd64 Packages
Hit http://us.archive.ubuntu.com precise-backports/multiverse amd64 Packages
Hit http://us.archive.ubuntu.com precise-backports/main i386 Packages
Hit http://packages.medibuntu.org oneiric/free i386 Packages
Hit http://de.archive.ubuntu.com precise/universe amd64 Packages
Hit http://us.archive.ubuntu.com precise-backports/restricted i386 Packages
Hit http://de.archive.ubuntu.com precise/multiverse amd64 Packages
Hit http://us.archive.ubuntu.com precise-backports/universe i386 Packages
Hit http://us.archive.ubuntu.com precise-backports/multiverse i386 Packages
Hit http://us.archive.ubuntu.com precise-backports/main TranslationIndex
Hit http://us.archive.ubuntu.com precise-backports/multiverse TranslationIndex
Hit http://us.archive.ubuntu.com precise-backports/restricted TranslationIndex
Hit http://de.archive.ubuntu.com precise/main i386 Packages
Hit http://us.archive.ubuntu.com precise-backports/universe TranslationIndex
Hit http://us.archive.ubuntu.com precise-security/main amd64 Packages
Hit http://us.archive.ubuntu.com precise-security/restricted amd64 Packages
Hit http://us.archive.ubuntu.com precise-security/universe amd64 Packages
Hit http://us.archive.ubuntu.com precise-security/multiverse amd64 Packages
Hit http://us.archive.ubuntu.com precise-security/main i386 Packages
Hit http://us.archive.ubuntu.com precise-security/restricted i386 Packages
Hit http://us.archive.ubuntu.com precise-security/universe i386 Packages
Hit http://us.archive.ubuntu.com precise-security/multiverse i386 Packages
Hit http://de.archive.ubuntu.com precise/restricted i386 Packages
Hit http://packages.medibuntu.org oneiric/non-free i386 Packages
Hit http://us.archive.ubuntu.com precise-security/main TranslationIndex
Hit http://us.archive.ubuntu.com precise-security/multiverse TranslationIndex
Hit http://us.archive.ubuntu.com precise-security/restricted TranslationIndex
Hit http://us.archive.ubuntu.com precise-security/universe TranslationIndex
Hit http://us.archive.ubuntu.com precise/main Translation-en
Hit http://us.archive.ubuntu.com precise/main Translation-de
Hit http://de.archive.ubuntu.com precise/multiverse i386 Packages
Hit http://us.archive.ubuntu.com precise/multiverse Translation-en
Hit http://us.archive.ubuntu.com precise/multiverse Translation-de
Hit http://us.archive.ubuntu.com precise/restricted Translation-en
Hit http://us.archive.ubuntu.com precise/restricted Translation-de
Hit http://us.archive.ubuntu.com precise/universe Translation-en
Hit http://us.archive.ubuntu.com precise/universe Translation-de
Hit http://us.archive.ubuntu.com precise-updates/main Translation-en
Hit http://us.archive.ubuntu.com precise-updates/multiverse Translation-en
Hit http://us.archive.ubuntu.com precise-updates/restricted Translation-en
Hit http://de.archive.ubuntu.com precise/main TranslationIndex
Ign http://packages.medibuntu.org oneiric/free TranslationIndex
Hit http://us.archive.ubuntu.com precise-updates/universe Translation-en
Hit http://de.archive.ubuntu.com precise/multiverse TranslationIndex
Hit http://us.archive.ubuntu.com precise-backports/main Translation-en
Hit http://us.archive.ubuntu.com precise-backports/multiverse Translation-en
Hit http://us.archive.ubuntu.com precise-backports/restricted Translation-en
Hit http://us.archive.ubuntu.com precise-backports/universe Translation-en
Hit http://us.archive.ubuntu.com precise-security/main Translation-en
Hit http://de.archive.ubuntu.com precise/restricted TranslationIndex
Hit http://us.archive.ubuntu.com precise-security/multiverse Translation-en
Hit http://us.archive.ubuntu.com precise-security/restricted Translation-en
Hit http://us.archive.ubuntu.com precise-security/universe Translation-en
Hit http://de.archive.ubuntu.com precise/universe TranslationIndex
Ign http://packages.medibuntu.org oneiric/non-free TranslationIndex
Hit http://de.archive.ubuntu.com precise-updates/main amd64 Packages
Ign http://archive.canonical.com precise/partner Translation-en_US
Hit http://de.archive.ubuntu.com precise-updates/restricted amd64 Packages
Hit http://de.archive.ubuntu.com precise-updates/universe amd64 Packages
Hit http://de.archive.ubuntu.com precise-updates/multiverse amd64 Packages
Ign http://archive.canonical.com precise/partner Translation-en
Hit http://de.archive.ubuntu.com precise-updates/main i386 Packages
Ign http://ppa.launchpad.net oneiric/main Translation-en_US
Ign http://ppa.launchpad.net oneiric/main Translation-en
Ign http://archive.canonical.com precise/partner Translation-de
Hit http://de.archive.ubuntu.com precise-updates/restricted i386 Packages
Hit http://de.archive.ubuntu.com precise-updates/universe i386 Packages
Hit http://de.archive.ubuntu.com precise-updates/multiverse i386 Packages
Ign http://ppa.launchpad.net oneiric/main Translation-de
Ign http://ppa.launchpad.net oneiric/main Translation-en_US
Ign http://ppa.launchpad.net oneiric/main Translation-en
Ign http://ppa.launchpad.net oneiric/main Translation-de
Ign http://ppa.launchpad.net oneiric/main Translation-en_US
Ign http://ppa.launchpad.net oneiric/main Translation-en
Hit http://de.archive.ubuntu.com precise-updates/main TranslationIndex
Hit http://de.archive.ubuntu.com precise-updates/multiverse TranslationIndex
Ign http://ppa.launchpad.net oneiric/main Translation-de
Ign http://ppa.launchpad.net precise/main Translation-en_US
Ign http://ppa.launchpad.net precise/main Translation-en
Ign http://ppa.launchpad.net precise/main Translation-de
Hit http://de.archive.ubuntu.com precise-updates/restricted TranslationIndex
Hit http://de.archive.ubuntu.com precise-updates/universe TranslationIndex
Hit http://de.archive.ubuntu.com precise-backports/main amd64 Packages
Hit http://de.archive.ubuntu.com precise-backports/restricted amd64 Packages
Hit http://de.archive.ubuntu.com precise-backports/universe amd64 Packages
Hit http://de.archive.ubuntu.com precise-backports/multiverse amd64 Packages
Hit http://de.archive.ubuntu.com precise-backports/main i386 Packages
Hit http://de.archive.ubuntu.com precise-backports/restricted i386 Packages
Hit http://de.archive.ubuntu.com precise-backports/universe i386 Packages
Hit http://de.archive.ubuntu.com precise-backports/multiverse i386 Packages
Hit http://de.archive.ubuntu.com precise-backports/main TranslationIndex
Hit http://de.archive.ubuntu.com precise-backports/multiverse TranslationIndex
Hit http://de.archive.ubuntu.com precise-backports/restricted TranslationIndex
Hit http://de.archive.ubuntu.com precise-backports/universe TranslationIndex
Hit http://de.archive.ubuntu.com precise-security/main amd64 Packages
Hit http://de.archive.ubuntu.com precise-security/restricted amd64 Packages
Hit http://de.archive.ubuntu.com precise-security/universe amd64 Packages
Hit http://de.archive.ubuntu.com precise-security/multiverse amd64 Packages
Hit http://de.archive.ubuntu.com precise-security/main i386 Packages
Hit http://de.archive.ubuntu.com precise-security/restricted i386 Packages
Hit http://de.archive.ubuntu.com precise-security/universe i386 Packages
Hit http://de.archive.ubuntu.com precise-security/multiverse i386 Packages
Hit http://de.archive.ubuntu.com precise-security/main TranslationIndex
Hit http://de.archive.ubuntu.com precise-security/multiverse TranslationIndex
Hit http://de.archive.ubuntu.com precise-security/restricted TranslationIndex
Hit http://de.archive.ubuntu.com precise-security/universe TranslationIndex
Hit http://de.archive.ubuntu.com precise/main Translation-en
Hit http://de.archive.ubuntu.com precise/main Translation-de
Hit http://de.archive.ubuntu.com precise/multiverse Translation-en
Hit http://de.archive.ubuntu.com precise/multiverse Translation-de
Hit http://de.archive.ubuntu.com precise/restricted Translation-en
Hit http://de.archive.ubuntu.com precise/restricted Translation-de
Hit http://de.archive.ubuntu.com precise/universe Translation-en
Hit http://de.archive.ubuntu.com precise/universe Translation-de
Hit http://de.archive.ubuntu.com precise-updates/main Translation-en
Hit http://de.archive.ubuntu.com precise-updates/multiverse Translation-en
Hit http://de.archive.ubuntu.com precise-updates/restricted Translation-en
Hit http://de.archive.ubuntu.com precise-updates/universe Translation-en
Hit http://de.archive.ubuntu.com precise-backports/main Translation-en
Hit http://de.archive.ubuntu.com precise-backports/multiverse Translation-en
Hit http://de.archive.ubuntu.com precise-backports/restricted Translation-en
Hit http://de.archive.ubuntu.com precise-backports/universe Translation-en
Hit http://de.archive.ubuntu.com precise-security/main Translation-en
Hit http://de.archive.ubuntu.com precise-security/multiverse Translation-en
Hit http://de.archive.ubuntu.com precise-security/restricted Translation-en
Hit http://de.archive.ubuntu.com precise-security/universe Translation-en
Err http://de.archive.ubuntu.com precise/universe i386 Packages
  406 Not Acceptable [IP: 141.30.13.30 80]
Ign http://packages.medibuntu.org oneiric/free Translation-en_US
Ign http://packages.medibuntu.org oneiric/free Translation-en
Ign http://packages.medibuntu.org oneiric/free Translation-de
Ign http://packages.medibuntu.org oneiric/non-free Translation-en_US
Ign http://packages.medibuntu.org oneiric/non-free Translation-en
Ign http://packages.medibuntu.org oneiric/non-free Translation-de
Fetched 316 B in 4s (66 B/s)
W: Failed to fetch http://de.archive.ubuntu.com/ubuntu/dists/precise/universe/binary-i386/Packages 406 Not Acceptable [IP: 141.30.13.30 80]

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

But then trying using wget:

# wget -nd http://de.archive.ubuntu.com/ubuntu/dists/precise/universe/binary-i386/Packages
--2012-02-25 09:32:06-- http://de.archive.ubuntu.com/ubuntu/dists/precise/universe/binary-i386/Packages
Resolving de.archive.ubuntu.com (de.archive.ubuntu.com)... 141.30.13.20, 141.30.13.10, 141.30.13.30
Connecting to de.archive.ubuntu.com (de.archive.ubuntu.com)|141.30.13.20|:80... connected.
HTTP request sent, awaiting response... 406 Not Acceptable
2012-02-25 09:32:06 ERROR 406: Not Acceptable.

# wget -nd http://de.archive.ubuntu.com/ubuntu/dists/precise/universe/binary-i386/Packages
--2012-02-25 09:29:15-- http://de.archive.ubuntu.com/ubuntu/dists/precise/universe/binary-i386/Packages
Resolving de.archive.ubuntu.com (de.archive.ubuntu.com)... 141.30.13.30, 141.30.13.10, 141.30.13.20
Connecting to de.archive.ubuntu.com (de.archive.ubuntu.com)|141.30.13.30|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4806777 (4,6M) [application/x-bzip2]
Saving to: `Packages'

100%[==================================================================================>] 4.806.777 1,30M/s in 3,5s

2012-02-25 09:29:19 (1,30 MB/s) - `Packages' saved [4806777/4806777]

I don't know whom to contact about this error (141.30.13.30 is working, 141.30.13.20 is not)

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: apt 0.8.16~exp12ubuntu4
ProcVersionSignature: Ubuntu 3.2.0-17.26-generic 3.2.6
Uname: Linux 3.2.0-17-generic x86_64
ApportVersion: 1.93-0ubuntu2
Architecture: amd64
Date: Sat Feb 25 09:30:19 2012
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Beta amd64 (20110901)
SourcePackage: apt
UpgradeStatus: Upgraded to precise on 2012-02-21 (3 days ago)

Revision history for this message
Ralf Hildebrandt (ralf-hildebrandt) wrote :
Revision history for this message
Ananth Srisailapathy (ananth-srisailapathy) wrote :

Failed to download repository information

Check your Internet connection.

W:Failed to fetch http://de.archive.ubuntu.com/ubuntu/dists/precise/universe/binary-i386/Packages 406 Not Acceptable [IP: 141.30.13.30 80]
, W:Failed to fetch http://de.archive.ubuntu.com/ubuntu/dists/precise/multiverse/binary-i386/Packages 406 Not Acceptable [IP: 141.30.13.30 80]
, W:Failed to fetch http://download.virtualbox.org/virtualbox/debian/dists/precise/contrib/binary-i386/Packages 404 Not found
, W:Failed to fetch http://download.virtualbox.org/virtualbox/debian/dists/precise/non-free/binary-i386/Packages 404 Not found
, E:Some index files failed to download. They have been ignored, or old ones used instead.

Revision history for this message
Ralf Hildebrandt (ralf-hildebrandt) wrote :

This is not a bug in apt, but rather a setup error on the de.archive.ubuntu.com mirror. But due to lack of contact info it's really hard to find out where I should report this to.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in apt (Ubuntu):
status: New → Confirmed
Revision history for this message
Ananth Srisailapathy (ananth-srisailapathy) wrote :
Download full text (10.8 KiB)

This is really bothering me. I don't know if it is because I'm running a 32 bit piece of 12.04 software with a PAE on a 64 bit machine(processor).

Here is a detailed error listing from my terminal.

sudo apt-get update

Ign http://archive.canonical.com precise InRelease
Ign http://extras.ubuntu.com precise InRelease
Ign http://de.archive.ubuntu.com precise InRelease
Ign http://security.ubuntu.com precise-security InRelease
Ign http://archive.ubuntu.com precise InRelease
Ign http://de.archive.ubuntu.com precise-updates InRelease
Ign http://dl.google.com stable InRelease
Hit http://extras.ubuntu.com precise Release.gpg
Hit http://archive.canonical.com precise Release.gpg
Hit http://security.ubuntu.com precise-security Release.gpg
Hit http://archive.ubuntu.com precise Release.gpg
Hit http://extras.ubuntu.com precise Release
Ign http://de.archive.ubuntu.com precise-proposed InRelease
Hit http://archive.canonical.com precise Release
Hit http://security.ubuntu.com precise-security Release
Get:1 http://dl.google.com stable Release.gpg [198 B]
Hit http://archive.ubuntu.com precise Release
Ign http://de.archive.ubuntu.com precise-backports InRelease
Hit http://extras.ubuntu.com precise/main i386 Packages
Hit http://archive.canonical.com precise/partner i386 Packages
Hit http://security.ubuntu.com precise-security/restricted Sources
Hit http://de.archive.ubuntu.com precise Release.gpg
Hit http://archive.ubuntu.com precise/universe Sources
Ign http://extras.ubuntu.com precise/main TranslationIndex
Get:2 http://dl.google.com stable Release [1,347 B]
Hit http://de.archive.ubuntu.com precise-updates Release.gpg
Ign http://archive.canonical.com precise/partner TranslationIndex
Hit http://security.ubuntu.com precise-security/main Sources
Hit http://security.ubuntu.com precise-security/multiverse Sources
Hit http://security.ubuntu.com precise-security/universe Sources
Hit http://security.ubuntu.com precise-security/main i386 Packages
Hit http://security.ubuntu.com precise-security/restricted i386 Packages
Hit http://archive.ubuntu.com precise/universe i386 Packages
Hit http://archive.ubuntu.com precise/universe TranslationIndex
Hit http://de.archive.ubuntu.com precise-proposed Release.gpg
Get:3 http://dl.google.com stable/main i386 Packages [759 B]
Hit http://security.ubuntu.com precise-security/universe i386 Packages
Hit http://security.ubuntu.com precise-security/multiverse i386 Packages ...

Revision history for this message
Ralf Hildebrandt (ralf-hildebrandt) wrote : Re: [Bug 940825] Re: apt-get update reporting "not acceptable"

* Ananth Srisailapathy <email address hidden>:
> This is really bothering me. I don't know if it is because I'm running a
> 32 bit piece of 12.04 software with a PAE on a 64 bit
> machine(processor).
>
> Here is a detailed error listing from my terminal.

That's just because one of the Ubuntu mirror servers at tu-dresden.de is out
of whack:

> Err http://de.archive.ubuntu.com precise/universe i386 Packages
> 406 Not Acceptable [IP: 141.30.13.20 80]
> Err http://de.archive.ubuntu.com precise/multiverse i386 Packages
> 406 Not Acceptable [IP: 141.30.13.20 80]

de.archive.ubuntu.com is made up of three servers, one of which is
broken.

Revision history for this message
Ralf Hildebrandt (ralf-hildebrandt) wrote :

I'd like to retract my last statement, since apt-get update yields:

W: Failed to fetch http://de.archive.ubuntu.com/ubuntu/dists/precise/universe/binary-i386/Packages 406 Not Acceptable [IP: 141.30.13.10 80]

then trying to fetch the same file from the same machine (again contacting 141.30.13.10) wget yields:

$ wget -nd http://de.archive.ubuntu.com/ubuntu/dists/precise/universe/binary-i386/Packages

--2012-03-02 18:46:54-- http://de.archive.ubuntu.com/ubuntu/dists/precise/universe/binary-i386/Packages
Resolving de.archive.ubuntu.com (de.archive.ubuntu.com)... 141.30.13.10, 141.30.13.30, 141.30.13.20
Connecting to de.archive.ubuntu.com (de.archive.ubuntu.com)|141.30.13.10|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4822737 (4,6M) [application/x-bzip2]
Saving to: `Packages'

100%[============================================================================>] 4.822.737 1,64M/s in 2,8s

2012-03-02 18:46:57 (1,64 MB/s) - `Packages' saved [4822737/4822737]

So it must be something within apt-get...

Revision history for this message
glasairman (wlk461) wrote :

Just had the same problem on the German mirror . I simply switched to the Main Server (Tab Einstellung > Software-Paketquellen Tab "Software from Ubuntu" and "Herunterladen von ...." and the problem "verschwand".

No big deal, the German mirror is screwed

Revision history for this message
Eagle (me-ngeefk4xayt3t4u9wat) wrote :
Download full text (23.6 KiB)

Though the same thing happens to me as well even though I choose different servers:

eagle@...:~$ sudo apt-get update
[sudo] password for eagle:
Ign http://mirrors.sohu.com precise InRelease
Ign http://mirrors.sohu.com precise-updates InRelease
Ign http://mirrors.sohu.com precise-backports InRelease
Ign http://mirrors.sohu.com precise-security InRelease
Ign http://mirrors.sohu.com precise-proposed InRelease
Ign http://archive.canonical.com precise InRelease
Ign http://ppa.launchpad.net precise InRelease
Ign http://ppa.launchpad.net precise InRelease
Ign http://ppa.launchpad.net precise InRelease
Ign http://ppa.launchpad.net precise InRelease
Hit http://ppa.launchpad.net precise Release.gpg
Get:1 http://ppa.launchpad.net precise Release.gpg [316 B]
Hit http://mirrors.sohu.com precise Release.gpg
Hit http://ppa.launchpad.net precise Release.gpg
Hit http://mirrors.sohu.com precise-updates Release.gpg
Hit http://mirrors.sohu.com precise-backports Release.gpg
Hit http://mirrors.sohu.com precise-security Release.gpg
Hit http://archive.canonical.com precise Release.gpg
Hit http://mirrors.sohu.com precise-proposed Release.gpg
Ign http://extras.ubuntu.com precise InRelease
Ign http://ppa.launchpad.net precise Release.gpg
Hit http://ppa.launchpad.net precise Release
Hit http://archive.canonical.com precise Release
Hit http://mirrors.sohu.com precise Release
Hit http://mirrors.sohu.com precise-updates Release
Hit http://mirrors.sohu.com precise-backports Release
Hit http://extras.ubuntu.com precise Release.gpg
Get:2 http://ppa.launchpad.net precise Release [11.9 kB]
Hit http://archive.canonical.com precise/partner Sources
Hit http://mirrors.sohu.com precise-security Release
Hit http://mirrors.sohu.com precise-proposed Release
Hit http://mirrors.sohu.com precise/main Sources
Hit http://mirrors.sohu.com precise/restricted Sources
Hit http://mirrors.sohu.com precise/universe Sources
Hit http://mirrors.sohu.com precise/multiverse Sources
Hit http://mirrors.sohu.com precise/main i386 Packages
Hit http://mirrors.sohu.com precise/restricted i386 Packages
Hit http://mirrors.sohu.com precise/universe i386 Packages
Hit http://mir...

Revision history for this message
Eagle (me-ngeefk4xayt3t4u9wat) wrote :

Forgot to include that I use Ubuntu 12.

Revision history for this message
Julian Andres Klode (juliank) wrote :

It should try the Packages.gz and Packages.bz2 files first, and those should succeed. Somehow they don't seem to work or APT is configured to ignore them. APT then asks for the uncompressed file, which the server does not have. The server then wants to be clever and offer you Packages.bz2 instead, but APT told it that it wants an uncompressed file at that point, so the server answers "I cannot send this file to you uncompressed".

Revision history for this message
Ralf Hildebrandt (ralf-hildebrandt) wrote :

* Julian Andres Klode <email address hidden>:
> It should try the Packages.gz and Packages.bz2 files first, and those
> should succeed. Somehow they don't seem to work or APT is configured to
> ignore them.

How would one check for that?

> APT then asks for the uncompressed file, which the server does not
> have. The server then wants to be clever and offer you Packages.bz2
> instead, but APT told it that it wants an uncompressed file at that
> point, so the server answers "I cannot send this file to you
> uncompressed".

Revision history for this message
cd311 (cd311) wrote :

here are some contact information for the server
https://launchpad.net/ubuntu/+mirror/ubuntu.mirror.tudos.de-archive

I just dropped a line to the owner.
hopefully this problem will be solved.

Revision history for this message
dorpm (dorpmueller) wrote :
Download full text (13.0 KiB)

Similar problem here:

Ign http://archive.canonical.com precise InRelease
Ign http://security.ubuntu.com precise-security InRelease
Ign http://de.archive.ubuntu.com precise InRelease
Ign http://de.archive.ubuntu.com precise-updates InRelease
Ign http://de.archive.ubuntu.com precise-backports InRelease
Ign http://extras.ubuntu.com precise InRelease
Treffer http://archive.canonical.com precise Release.gpg
Holen: 1 http://security.ubuntu.com precise-security Release.gpg [198 B]
Holen: 2 http://de.archive.ubuntu.com precise Release.gpg [198 B]
Treffer http://extras.ubuntu.com precise Release.gpg
Treffer http://archive.canonical.com precise Release
Holen: 3 http://de.archive.ubuntu.com precise-updates Release.gpg [198 B]
Holen: 4 http://security.ubuntu.com precise-security Release [49,6 kB]
Treffer http://extras.ubuntu.com precise Release
Holen: 5 http://de.archive.ubuntu.com precise-backports Release.gpg [198 B]
Holen: 6 http://de.archive.ubuntu.com precise Release [49,6 kB]
Treffer http://archive.canonical.com precise/partner Sources
Treffer http://extras.ubuntu.com precise/main amd64 Packages
Treffer http://archive.canonical.com precise/partner amd64 Packages
Treffer http://archive.canonical.com precise/partner i386 Packages
Ign http://archive.canonical.com precise/partner TranslationIndex
Treffer http://extras.ubuntu.com precise/main i386 Packages
Ign http://extras.ubuntu.com precise/main TranslationIndex
Holen: 7 http://security.ubuntu.com precise-security/main Sources [6.603 B]
Holen: 8 http://de.archive.ubuntu.com precise-updates Release [49,6 kB]
Treffer http://download.virtualbox.org precise InRelease
Holen: 9 http://security.ubuntu.com precise-security/restricted Sources [14 B]
Holen: 10 http://security.ubuntu.com precise-security/universe Sources [3.146 B]
Holen: 11 http://security.ubuntu.com precise-security/multiverse Sources [696 B]
Holen: 12 http://security.ubu...

Revision history for this message
Michael Nagel (nailor) wrote :

as a temporary workaround one can switch from the german mirror to the main server

e.g. via "software centre, main menu, edit, software sources, download from"

Revision history for this message
Joachim Bauch (fancycode) wrote :

Just got the same error (12.04 from German mirror, main mirror is working fine):

W: Fehlschlag beim Holen von http://de.archive.ubuntu.com/ubuntu/dists/precise-updates/main/binary-i386/Packages 406 Not Acceptable [IP: 141.30.13.30 80]
W: Fehlschlag beim Holen von http://de.archive.ubuntu.com/ubuntu/dists/precise-updates/restricted/binary-i386/Packages 406 Not Acceptable [IP: 141.30.13.30 80]
W: Fehlschlag beim Holen von http://de.archive.ubuntu.com/ubuntu/dists/precise-updates/universe/binary-i386/Packages 406 Not Acceptable [IP: 141.30.13.30 80]
W: Fehlschlag beim Holen von http://de.archive.ubuntu.com/ubuntu/dists/precise-updates/multiverse/binary-i386/Packages 406 Not Acceptable [IP: 141.30.13.30 80]

Revision history for this message
david6 (andrew-dowden) wrote :

Currently getting same issue for AU (Australian) mirror, but only affecting (for me) Ubunut 'server'.

Error:

W: Failed to fetch http://au.archive.ubuntu.com/ubuntu/dists/precise-updates/universe/source/Sources 406 Not Acceptable

Revision history for this message
Vadim Peretokin (vperetokin) wrote :

I can confirm the AU problem, getting the same thing:

W: Failed to fetch http://au.archive.ubuntu.com/ubuntu/dists/precise-security/universe/binary-amd64/Packages 406 Not Acceptable

Revision history for this message
Nic Robinson (nix-nixonian) wrote :

I also had 406 errors using the aarnet AU mirror. Problem resolved after the following:

Changed to the main Ubuntu repo, then ran 'apt-get update'
Changed back to aarnet, again ran 'apt-get update'

No more Error 406 (for me)

Revision history for this message
Sebastian Marsching (sebastian-marsching) wrote :
Download full text (3.8 KiB)

This problem seems to appear when a file has been partially downloaded to /var/lib/apt/lists/partial and the server does not support request ranges. Here is the error I got when running "aptitude update" and the corresponding HTTP requests / responses:

[...]
Err http://de.archive.ubuntu.com precise-updates/universe i386 Packages
  406 Not Acceptable [IP: 141.30.13.20 80]
[...]
W: Failed to fetch http://de.archive.ubuntu.com/ubuntu/dists/precise-updates/universe/binary-i386/Packages 406 Not Acceptable [IP: 141.30.13.20 80]

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

The HTTP requests and responses for this file are:

GET /ubuntu/dists/precise-updates/universe/binary-i386/Packages.bz2 HTTP/1.1
Host: de.archive.ubuntu.com
Connection: keep-alive
Cache-Control: max-age=0
Range: bytes=15556-
If-Range: Fri, 06 Sep 2013 23:35:00 GMT
User-Agent: Debian APT-HTTP/1.3 (0.8.16~exp12ubuntu10.12)

HTTP/1.1 416 Requested Range Not Satisfiable
Date: Sat, 07 Sep 2013 17:51:48 GMT
Connection: keep-alive
Server: ATS/3.0.5
Content-Length: 0

GET /ubuntu/dists/precise-updates/universe/binary-i386/Packages.gz HTTP/1.1
Host: de.archive.ubuntu.com
Connection: keep-alive
Cache-Control: max-age=0
Range: bytes=15556-
If-Range: Fri, 06 Sep 2013 23:35:00 GMT
User-Agent: Debian APT-HTTP/1.3 (0.8.16~exp12ubuntu10.12)

HTTP/1.1 416 Requested Range Not Satisfiable
Date: Sat, 07 Sep 2013 17:51:48 GMT
Connection: keep-alive
Server: ATS/3.0.5
Content-Length: 0

GET /ubuntu/dists/precise-updates/universe/binary-i386/Packages HTTP/1.1
Host: de.archive.ubuntu.com
Connection: keep-alive
Cache-Control: max-age=0
Accept: text/*
Range: bytes=15556-
If-Range: Fri, 06 Sep 2013 23:35:00 GMT
User-Agent: Debian APT-HTTP/1.3 (0.8.16~exp12ubuntu10.12)

HTTP/1.1 406 Not Acceptable
Date: Sat, 07 Sep 2013 17:51:48 GMT
Server: ATS/3.0.5
Alternates: {"Packages.bz2" 1 {type application/x-bzip2} {length 219035}}, {"Packages.gz" 1 {type application/x-gzip} {length 279396}}
Vary: negotiate,accept,Accept-Encoding
TCN: list
Content-Length: 576
Content-Type: text/html; charset=iso-8859-1
Age: 0
Connection: keep-alive

[... response body omitted ...]

In this case the file /var/lib/apt/lists/partial/de.archive.ubuntu.com_ubuntu_dists_precise-updates_universe_binary-i386_Packages had a size of 15557 bytes.

So I think the following thing happens: Apt finds a partially downloaded file, so it tries to continue downloading this file by sending a request with the "Range" header set. The server cannot serve this request (either because it does not support ranges or because the specified range is invalid). Thus it sends a 416 response. Now Apt makes a mistake: Instead of sending the request again without the "Range" header, it proceeds to the next file (Packages.gz after Packages.bz2 failed and finally Packages). Funnily it uses the same range there.

I think there are two bugs regarding the download of partially download files:

1) The start for the "Range" header is calculated from the file size on disk. However correct start depends on the type of the compression used. In my example, the file on disk was gzip compressed but the bzip2 version is requested fir...

Read more...

Revision history for this message
Brendan Hide (brendan-hide) wrote :

Nice analysis.

I had the same issue now - simple workaround was to empty the /var/lib/apt/lists/partial/ folder. :)

This is obviously not ideal (many end-users might not be able to figure out what to do here) and this is technically a bug in apt or Ubuntu's apt configuration.

Revision history for this message
Martin Ulmschneider (ulmi) wrote :

The analysis of #20 is slightly different than what is in the bug description - should this bug be edited / a new one opened?
I can confirm that the Ranges bug still exists in 14.04.

Revision history for this message
Sebastian Marsching (sebastian-marsching) wrote :

I think that the originally described problem is in fact caused by the bug described in #20. Unless we expect every archive mirror to support ranged requests (which IMHO is a bit much to ask), the 406 error needs to be handled properly. Even if a mirror supports ranges, the implementation in the client is still buggy because of the incorrect handling of ranges for compressed files.

Therefore, I will change the description of this bug if I do not hear any other opinion within the next two days.

Revision history for this message
David Kalnischkies (donkult) wrote :

Well, expect that 406 and Range have nothing to do with each other. 416 is an out-of-range request, while 406 tells us that we requested a file in a specific encoding which the server did not have.

The 416 Range thing should be handled for a while now, we at least have a testcase covering it so I would be interested in how to reproduce it still in apt versions >= 0.9.12 (disclaimer: I wrote both, the patch and the test).
[well, expect that as mentioned in #20 we would try to range a bz2 with an incomplete xz, but that could change with other reorganisations soon and more importantly, is pretty unlikely to have practical effect as compression formats do not appear and disappear at random from mirrors…]. A proper server shouldn't sent us a 416 here anyway, as we sent an If-Range btw as detailed in the HTTP RFC, but if we get it anyhow, we drop the partial file we have and do the request again without a range.

Regarding 406: We send an Accept header only if we request an uncompressed file (to prevent servers from content negotiating us a compressed file we do not support…), which is the last one we would try and usually doesn't exist (expect on your own localnet mirrors), so a failure is expected and the problem is more that your mirror doesn't have the compressed files we asked for before…

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.