When Debian Wheezy reached EOL (End-of-Life) in May 2018, its packages were moved to archive.debian.org
. However, many administrators maintaining legacy systems discovered that while the main repository works fine, the wheezy-updates
repository returns a 404 error during apt-get update
.
After investigating Debian's archive structure, I found that wheezy-updates
was intentionally removed from the archive because:
- These updates were transitional packages meant for systems upgrading between releases
- All critical updates were eventually merged into the main archive
- The updates repository became redundant after EOL
Here's the corrected sources.list
configuration that works:
# Main Wheezy repository
deb http://archive.debian.org/debian/ wheezy main contrib non-free
# Security updates (still available separately)
deb http://archive.debian.org/debian-security/ wheezy/updates main contrib non-free
# Disable the non-existent updates repo
# deb http://archive.debian.org/debian/ wheezy-updates main contrib non-free [COMMENTED OUT]
You might still see warnings about missing Release files. To suppress these:
# Create or modify /etc/apt/apt.conf.d/99archive
Acquire::Check-Valid-Until "false";
Acquire::AllowInsecureRepositories "true";
For mission-critical legacy systems, consider creating a local mirror:
# Install debmirror
apt-get install debmirror
# Create mirror script
#!/bin/bash
debmirror \
--arch=i386,amd64 \
--host=archive.debian.org \
--root=/debian \
--dist=wheezy \
--section=main,contrib,non-free \
--method=http \
--progress \
--nosource \
/var/www/html/debian-archive
Remember that Wheezy hasn't received security updates since 2018. If possible:
- Isolate the machine from the internet
- Implement strict firewall rules
- Consider upgrading to a supported release
To check if a specific package exists in the archive:
wget -qO- http://archive.debian.org/debian/dists/wheezy/main/binary-i386/Packages.gz | \
gunzip | grep '^Package: your-package-name'
When Debian Wheezy reached EOL (End of Life), its packages were moved to archive.debian.org
. While most repositories transition smoothly, many users encounter 404 errors specifically with the wheezy-updates
component.
The wheezy-updates
repository doesn't exist in the archive because:
- Debian's archive policy only preserves final stable releases
- Update repositories are temporary by nature
- The security updates repository remains active separately
Here's the proper configuration for Wheezy systems:
deb http://archive.debian.org/debian wheezy main
deb http://security.debian.org/ wheezy/updates main
# No wheezy-updates line needed
After modifying your sources:
sudo apt-get update
sudo apt-get upgrade
If you need specific packages from updates:
# Check package versions
apt-cache policy <package-name>
# Manually download from snapshot.debian.org
wget https://snapshot.debian.org/archive/debian/<date>/pool/main/<path-to-package>
- Security updates will continue working through security.debian.org
- Consider upgrading to a supported release if possible
- For critical systems, investigate Debian LTS (Long Term Support)
For reference, here's how to check your current Debian version:
lsb_release -a
cat /etc/debian_version