In a way my question is an inversion of this question.

I'm trying to do sudo apt-get install jags from the terminal, and it selects mirrors close to me, but then it says "Not Found".

I'd like to select a mirror that isn't close to me, but which actually works. Can I do that?

This seems to point at a solution, but it won't work for me because I can only access the terminal.


If you only have terminal, you have to manually edit your /etc/apt/sources.list file. There's no other way unfortunately to do this.

You'll have to replace the domain names in the sources.list of the current mirror with whatever mirror you wish to use. The standard archives tend to be the most updated source with updated packages, however it may not be the closest to you (archive.ubuntu.com).

However, a 404 error suggests that there's a newer package version or such available; make sure to run sudo apt-get update first, then try and install the package, to rule out the mirror you're using as the actual problem.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.