I have edited my sources.list because I couldn't do update because it throws a series of error code 404. I followed some steps on the internet so it would lead to id.old-releases.ubuntu.com, but it's still failed (I was trying to download samba for my school's project and I got panicked because of it). I haven't backup my sources.list file, and I'm confused what to do now.
This is what the code that I use to change the sources.list
:
$ sudo sed -i.bak -r 's/(archive|security).ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list
Most of the errors that I got were similar like this.
Err http://id.old-releases.ubuntu.com vivid-backports Release.gpg
Could not resolve 'id.old-releases.ubuntu.com'
Could anybody help? I don't really understand how Ubuntu works.
id.
at the start is for. Open a browser and look atold-releases.ubuntu.com
and you'll get results, but with the id.old-re* I get 404 errors too. My suggestion is removeid.
as a temporary fix, but @ChaiT.Rex is correct - a better solution is to upgrade to a supported Release. – guiverc Jan 16 '18 at 04:55id.
is for Indonesia's Ubuntu servers (id.archive.ubuntu.com
, for example). – Chai T. Rex Jan 16 '18 at 04:55sources.list
. Then, go to "How to install software or upgrade from an old unsupported release?", first answer and skip the first part of the answer, and do theTo upgrade to a new release:
part to upgrade to 16.04. – Chai T. Rex Jan 16 '18 at 04:58id.
part should have been stripped as well, but thesed
command didn't consider it to be a possibility. – Chai T. Rex Jan 16 '18 at 04:59