3

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.

David Foerster
  • 36,890
  • 56
  • 97
  • 151

1 Answers1

8

You should really upgrade to 16.04 so you keep getting security updates and so forth. That said, this problem can be fixed.

The instructions you were given assume that your sources.list file connected to the default Ubuntu servers, but your system connected to the Ubuntu servers in Indonesia, so they had an id. in front of the server name (like id.archive.ubuntu.com). That assumption was wrong, so it left the id. part in there, and old-releases.ubuntu.com doesn't support it, so it should be removed.

To fix it, run:

sudo sed -i.bak 's/id.old-/old-/g' /etc/apt/sources.list
sudo apt-get update
Chai T. Rex
  • 5,323