apt - Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/lucid/main/source/Sources 404 Not Found [IP: 91.189.91.26 80] - Ask Ubuntu


i using ubuntu 16.04 lts. morning when ran sudo apt-get update, encountered following error:

w: repository 'http://us.archive.ubuntu.com/ubuntu lucid release' not have release file. n: data such repository can't authenticated , therefore potentially dangerous use. n: see apt-secure(8) manpage repository creation , user configuration details. e: failed fetch http://us.archive.ubuntu.com/ubuntu/dists/lucid/main/source/sources  404  not found [ip: 91.189.91.26 80] e: index files failed download. have been ignored, or old ones used instead. 

i've checked internet answer. although did find few similar posts, none of solution works me. 1 of interesting solution tried was:

the simplest solution following 2 steps:

1- backup sources list -> sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup

2- open sources file "/etc/apt/sources.list" rename instances of us.archive or archive in http://us.archive.ubuntu.com/ubuntu/ to

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

also same http://security.ubuntu.com/ubuntu/dists/saucy-security/universe/binary-i386/packages

3- run sudo apt-get update after doing above.

guess what.. didn't work. infact threw more errors:

w: repository 'http://old-releases.ubuntu.com/ubuntu xenial release' not have release file. n: data such repository can't authenticated , therefore potentially dangerous use. n: see apt-secure(8) manpage repository creation , user configuration details. w: repository 'http://old-releases.ubuntu.com/ubuntu xenial-updates release' not have release file. n: data such repository can't authenticated , therefore potentially dangerous use. n: see apt-secure(8) manpage repository creation , user configuration details. w: repository 'http://old-releases.ubuntu.com/ubuntu xenial-backports release' not have release file. n: data such repository can't authenticated , therefore potentially dangerous use. n: see apt-secure(8) manpage repository creation , user configuration details. w: repository 'http://old-releases.ubuntu.com/ubuntu xenial-security release' not have release file. n: data such repository can't authenticated , therefore potentially dangerous use. n: see apt-secure(8) manpage repository creation , user configuration details. w: repository 'http://us.archive.ubuntu.com/ubuntu lucid release' not have release file. n: data such repository can't authenticated , therefore potentially dangerous use. n: see apt-secure(8) manpage repository creation , user configuration details. e: failed fetch http://old-releases.ubuntu.com/ubuntu/dists/xenial/main/binary-amd64/packages  404  not found e: failed fetch http://old-releases.ubuntu.com/ubuntu/dists/xenial-updates/main/binary-amd64/packages  404  not found e: failed fetch http://old-releases.ubuntu.com/ubuntu/dists/xenial-backports/main/binary-amd64/packages  404  not found e: failed fetch http://old-releases.ubuntu.com/ubuntu/dists/xenial-security/main/binary-amd64/packages  404  not found e: failed fetch http://us.archive.ubuntu.com/ubuntu/dists/lucid/main/source/sources  404  not found [ip: 91.189.91.23 80] e: index files failed download. have been ignored, or old ones used instead. 

please help.

edit:

here original sources.list:

# deb cdrom:[ubuntu 16.04 lts _xenial xerus_ - release amd64 (20160420.1)]/ xenial main restricted  # see http://help.ubuntu.com/community/upgradenotes how upgrade # newer versions of distribution. deb http://in.archive.ubuntu.com/ubuntu/ xenial main restricted # deb-src http://in.archive.ubuntu.com/ubuntu/ xenial main restricted  ## major bug fix updates produced after final release of ## distribution. deb http://in.archive.ubuntu.com/ubuntu/ xenial-updates main restricted # deb-src http://in.archive.ubuntu.com/ubuntu/ xenial-updates main restricted  ## n.b. software repository entirely unsupported ubuntu ## team, , may not under free licence. please satisfy ## rights use software. also, please note software in ## universe not receive review or updates ubuntu security ## team. deb http://in.archive.ubuntu.com/ubuntu/ xenial universe # deb-src http://in.archive.ubuntu.com/ubuntu/ xenial universe deb http://in.archive.ubuntu.com/ubuntu/ xenial-updates universe # deb-src http://in.archive.ubuntu.com/ubuntu/ xenial-updates universe  ## n.b. software repository entirely unsupported ubuntu  ## team, , may not under free licence. please satisfy  ## rights use software. also, please note software in  ## multiverse not receive review or updates ubuntu ## security team. deb http://in.archive.ubuntu.com/ubuntu/ xenial multiverse # deb-src http://in.archive.ubuntu.com/ubuntu/ xenial multiverse deb http://in.archive.ubuntu.com/ubuntu/ xenial-updates multiverse # deb-src http://in.archive.ubuntu.com/ubuntu/ xenial-updates multiverse  ## n.b. software repository may not have been tested ## extensively contained in main release, although includes ## newer versions of applications may provide useful features. ## also, please note software in backports not receive review ## or updates ubuntu security team. deb http://in.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse # deb-src http://in.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse  ## uncomment following 2 lines add software canonical's ## 'partner' repository. ## software not part of ubuntu, offered canonical , ## respective vendors service ubuntu users. # deb http://archive.canonical.com/ubuntu xenial partner # deb-src http://archive.canonical.com/ubuntu xenial partner  deb http://security.ubuntu.com/ubuntu xenial-security main restricted # deb-src http://security.ubuntu.com/ubuntu xenial-security main restricted deb http://security.ubuntu.com/ubuntu xenial-security universe # deb-src http://security.ubuntu.com/ubuntu xenial-security universe deb http://security.ubuntu.com/ubuntu xenial-security multiverse # deb-src http://security.ubuntu.com/ubuntu xenial-security multiverse 

you've made few grave errors here.

first, running 16.04. means can't blindly replace normal archive mirror old-releases. why errors xenial repos missing.

secondly, still trying draw lucid repository. won't you, because portion of items in lucid repository not work in xenial or removed repos various reasons, or superseded updated versions. and, instructions followed old releases only applies lucid repository line had in configs.


here's how fix problems you're having.

  1. go through /etc/apt/sources.list, , start replacing old-releases.ubuntu.com entries original mirror, us.archive.ubuntu.com.
  2. find lines reference lucid , either comment them out, or use old-releases.ubuntu.com only repository.

    if don't know entry in /etc/apt/sources.list or /etc/apt/sources.list.d/* has 'lucid' entry, run command /etc/apt/: grep -r -i lucid /etc/apt/; identify files containing word 'lucid'

  3. sudo apt-get update , similar commands should work without issue.

i recommend commenting out lucid repositories, end of life well, , unless really need them, should not keeping them activated.


Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User

sql server - "Configuration file does not exist", Event ID 274 - Super User