Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
445 views
in Technique[技术] by (71.8m points)

apt get - Ubuntu apt-get unable to fetch packages


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Ran into a similar issue.

This is linked to using a non LTS version of Ubuntu called an "End of life version". As those have discontinued support. You can check if your Ubuntu is at the end of life version on this link.

The simplest solution is to do the following two steps:

  1. Backup your sources list sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup
  2. Open the sources file /etc/apt/sources.list and rename all the instances of us.archive or archive in

    http://us.archive.ubuntu.com/ubuntu/

    to

    http://old-releases.ubuntu.com/ubuntu/

    Also do the same for the http://security.ubuntu.com/ubuntu/dists/saucy-security/universe/binary-i386/Packages

  3. Run sudo apt-get update after doing the above.

That should fix the issue.

Warning: Please update your ubuntu to an LTS version as soon as possible otherwise you won't be getting the latest security patches. This is definitely not a solution that you would deploy on production machines.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...