I have an old test machine on Debian Wheezy that I can't really update right now.

Debian Wheezy repositories were archived in February. So I want ahead, and updated my /etc/apt/sources.list from

deb http://ftp.fr.debian.org/debian wheezy main
deb http://security.debian.org/ wheezy/updates main
deb http://ftp.fr.debian.org/debian wheezy-updates main


deb http://archive.debian.org/debian wheezy main
deb http://security.debian.org/ wheezy/updates main
deb http://archive.debian.org/debian wheezy-updates main

But, when running apt-get update, I'm getting this error:

# apt-get update
Err http://archive.debian.org wheezy-updates/main i386 Packages
  404  Not Found [IP : 80]

Other repositories are being updated without issues.

Am I missing something?

  • wheezy is EOL, please seriously consider upgrading to a supported release. – gf_ Apr 1 at 16:02
  • 1
    There isn't such a repository in the archive. It's years past time to upgrade. – Michael Hampton Apr 1 at 16:27
  • Thanks for the remember! It's a test machine which live on my PC (it's a VM) which is not accessible from the Internet (not even from my LAN). I'll probably rebuild it from scratch in the near future with an up-to-date Debian. Of course, if it was a production machine, it would have already been upgraded. – Zoddo Apr 1 at 16:45

Using the Debian archive you shouldn't have an apt source line referring to wheezy-updates. This particular (sub-)distribution is not existing in the archives.

If you just remove the lines:

deb http://security.debian.org/ wheezy/updates main
deb http://ftp.fr.debian.org/debian wheezy-updates main

you should be able to run your apt-get commands again.

The whole story

The wheezy-updates repository contained packages that were provided to update the main repository, i.e. wheezy, between minor releases. Over time, when Wheezy got updated to 7.1, 7.2 and eventually to 7.11, the packages contained in wheezy-updates were moved into the main Wheezy repository. When Wheezy got EOLed, in May 2018, no packages were being kept in wheezy-updates, so there was no point in moving wheezy-updates to the Debian archive.

You can see the list of all Debian distributions supported by the archive repository at: http://archive.debian.org/debian/dists/ Also check the README files at http://archive.debian.org/README and http://archive.debian.org/debian/README to have an even fuller list of the archive content.

With regards to the security.debian.org repository, it is archived as well at http://archive.debian.org/debian-security/ If you want to fetch the very last updates, dating from May 2018, that were published for Wheezy, you can also add this line to your apt sources:

deb http://archive.debian.org/debian-security/ wheezy/updates main


Like said in the comments to your question, be careful when running a machine using the Debian archive as those packages are not updated and so not secure anymore (even when using debian-security from the archive). It probably is OK if your machine is not directly connected to a network, but otherwise, I would highly recommend upgrading as soon as possible.

  • “The same goes for the security.debian.org repository, as Wheezy is EOL, you'll get no packages from there.” AFAICT this is not true. The security repo in archive.debian.org/debian-security contains Perl 5.14.2-21+deb7u6, but the main repo in archive.debian.org/debian only contains 5.14.2-21+deb7u3. – Christian Schmidt Apr 29 at 13:36
  • True, thanks for your comment. I amended my answer to better reflect that. But those security packages are now out of date as well, thus bring little value. – Tonin Apr 29 at 18:44

Add the security updates:

deb http://archive.debian.org/debian wheezy main
deb http://archive.debian.org/debian-security wheezy/updates main

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.