This question already has an answer here:
I'm using Ubuntu 9.04 as multipurpose server, so no GUI here. I haven't used it for a while and now when trying to install or update packages with apt-get it throws errors.
An excerpt of the error messages:
root@vps609:/home# sudo apt-get update Err http://security.canonical.com jaunty-security Release.gpg Could not resolve 'security.canonical.com' Err http://security.canonical.com jaunty-security/universe Translation-en_US Could not resolve 'security.canonical.com' Get:3 http://archive.canonical.com jaunty Release [10.5kB] Get:4 http://archive.canonical.com jaunty-updates Release [10.5kB] Fetched 21.4kB in 0s (56.3kB/s) Reading package lists... Done W: Failed to fetch http://security.canonical.com/ubuntu/dists/jaunty-security/Release.gpg n_US.bz2 Could not resolve 'security.canonical.com' W: Failed to fetch http://archive.canonical.com/ubuntu/dists/jaunty-updates/Release Unable to find expected entry universe/binary-amd64/Packages in Meta-index file (malformed Release file?) W: Some index files failed to download, they have been ignored, or old ones used instead. W: You may want to run apt-get update to correct these problems
I thought the url's had changed so I tried to change the /etc/apt/sources.list with following sources:
deb http://archive.canonical.com/ubuntu/ jaunty main universe multiverse restricted deb http://security.canonical.com/ubuntu/ jaunty-security universe main multiverse restricted deb http://archive.canonical.com/ubuntu/ jaunty-updates universe main multiverse restricted
But it seems apt-get doesn't use these new sources and keeps trying the old ones.