Let's say you're using Ubuntu 13.04 (Raring Ringtail, released in April 2013) and it just went End-of-Life on you, because it's supported for only 6 months, and the deprecated packages are taken down after 12 months.
You'll probably figure this out the hard way. When you run sudo apt-get update
, it will eventually report these errors:
Ign http://archive.ubuntu.com raring-updates/universe Sources/DiffIndex
Err http://security.ubuntu.com raring-security/main Sources
404 Not Found [IP: 91.189.91.15 80]
Err http://security.ubuntu.com raring-security/universe Sources
404 Not Found [IP: 91.189.91.15 80]
Err http://security.ubuntu.com raring-security/main amd64 Packages
404 Not Found [IP: 91.189.91.15 80]
Ign http://archive.ubuntu.com raring-updates/main amd64 Packages/DiffIndex
Err http://security.ubuntu.com raring-security/universe amd64 Packages
404 Not Found [IP: 91.189.91.15 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/raring-security/main/source/Sources 404 Not Found [IP: 91.189.91.15 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/raring-security/universe/source/Sources 404 Not Found [IP: 91.189.91.15 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/raring-security/main/binary-amd64/Packages 404 Not Found [IP: 91.189.91.15 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/raring-security/universe/binary-amd64/Packages 404 Not Found [IP: 91.189.91.15 80]
Visiting http://archive.ubuntu.com/ubuntu/dists does confirm that raring packages are indeed gone, while lucid, precise, saucy, and trusty are still there, as per their promised support schedule.
Some googling reveals that they're not deleted, but simply moved to http://old-releases.ubuntu.com/ubuntu/dists/, sort of a graveyard for insecure and unsupported packages.
To make apt-get update
work, we simply need to edit /etc/apt/sources.list
and update all URLs from security.ubuntu.com
and archive.ubuntu.com
to point to old-releases.ubuntu.com
, as per the following sed command:
sudo sed -i.bak -r 's/(archive|security).ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list
After this, sudo apt-get update
seems to run without a hitch. Of course if you do this, you're accepting to use an insecure system, and should do sudo apt-get install update-manager-core; do-release-upgrade
as soon as possible.
SOURCES:
root@de2 ~ # apt-get install mediainfo
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libmediainfo0v5 libmms0 libtinyxml2-4 libzen0v5
Suggested packages:
mediainfo-gui
The following NEW packages will be installed:
libmediainfo0v5 libmms0 libtinyxml2-4 libzen0v5 mediainfo
0 upgraded, 5 newly installed, 0 to remove and 48 not upgraded.
Need to get 1,931 kB/1,984 kB of archives.
After this operation, 6,944 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Err:1 http://old-releases.ubuntu.com/ubuntu yakkety-updates/universe amd64 libzen0v5 amd64 0.4.33-3ubuntu0.16.10.1
404 Not Found
Err:2 http://old-releases.ubuntu.com/ubuntu yakkety/universe amd64 libmediainfo0v5 amd64 0.7.88-1
404 Not Found
Err:3 http://old-releases.ubuntu.com/ubuntu yakkety/universe amd64 mediainfo amd64 0.7.88-1
404 Not Found
E: Failed to fetch http://old-releases.ubuntu.com/ubuntu/pool/universe/libz/libzen/libzen0v5_0.4.33-3ubuntu0.16.10.1_amd64.deb 404 Not Found
E: Failed to fetch http://old-releases.ubuntu.com/ubuntu/pool/universe/libm/libmediainfo/libmediainfo0v5_0.7.88-1_amd64.deb 404 Not Found
E: Failed to fetch http://old-releases.ubuntu.com/ubuntu/pool/universe/m/mediainfo/mediainfo_0.7.88-1_amd64.deb 404 Not Found
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
i update the sources.list url hostname to old-releases but still not working what to do?