0

Noticed that the new LTS is out and got a notification pop-up, but when I try and upgrade it Comes up with the following:

W:Failed to fetch http://ports.ubuntu.com/dists/xenial/main/binary-amd64/Packages  404  Not Found [IP: 91.189.88.150 80]
W:Failed to fetch http://ports.ubuntu.com/dists/xenial/restricted/binary-amd64/Packages  404  Not Found [IP: 91.189.88.150 80]
W:Failed to fetch http://ports.ubuntu.com/dists/xenial/main/binary-i386/Packages  404  Not Found [IP: 91.189.88.150 80]
W:Failed to fetch http://ports.ubuntu.com/dists/xenial/restricted/binary-i386/Packages  404  Not Found [IP: 91.189.88.150 80]
E:Some index files failed to download. They have been ignored, or old ones used instead.

Then, when I click close it reverts any changes its made. I have the update server as 'Main Server'. Our internet connection is stable

concise sources.list: (i removed the double commented lines)

# deb cdrom:[Ubuntu 14.04.3 LTS _Trusty Tahr_ - Beta amd64 (20150805)]/ trusty main restricted

deb http://archive.ubuntu.com/ubuntu xenial main restricted
deb http://archive.ubuntu.com/ubuntu xenial-updates main restricted
deb http://archive.ubuntu.com/ubuntu xenial universe
deb http://archive.ubuntu.com/ubuntu xenial-updates universe
deb http://archive.ubuntu.com/ubuntu xenial multiverse
deb http://archive.ubuntu.com/ubuntu xenial-updates multiverse
deb http://archive.ubuntu.com/ubuntu xenial-backports main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu xenial-security main restricted
deb http://archive.ubuntu.com/ubuntu xenial-security universe
deb http://archive.ubuntu.com/ubuntu xenial-security multiverse
deb http://archive.canonical.com/ubuntu xenial partner
# deb-src http://archive.canonical.com/ubuntu trusty partner
# deb http://download.ebz.epson.net/dsc/op/stable/debian/ lsb3.2 main # disabled on upgrade to xenial
deb http://ports.ubuntu.com/ xenial main restricted
deb-src http://ports.ubuntu.com/ xenial-security main restricted

Thanks!

15
  • What's the content of /etc/apt/sources.list?
    – anonymous2
    Aug 15, 2016 at 13:51
  • added above. if you need the whole file with the double hashed lines then say
    – user508005
    Aug 15, 2016 at 15:47
  • Ok, try replacing ports in the last two lines of sources.list with archive and then running the sudo apt-get upgrade.
    – anonymous2
    Aug 15, 2016 at 16:58
  • Actually, you could just comment out the second to last line and replace the ports with archive in the last line.
    – anonymous2
    Aug 15, 2016 at 16:59
  • okay so now im getting Err http://archive.ubuntu.com xenial-security/main Sources 404 Not Found [IP: 91.189.88.152 80] Err http://archive.ubuntu.com xenial-security/restricted Sources 404 Not Found [IP: 91.189.88.152 80] W: Failed to fetch http://archive.ubuntu.com/dists/xenial-security/main/source/Sources 404 Not Found [IP: 91.189.88.152 80] W: Failed to fetch http://archive.ubuntu.com/dists/xenial-security/restricted/source/Sources 404 Not Found [IP: 91.189.88.152 80] (sorry i cant get the formatting right on this )
    – user508005
    Aug 15, 2016 at 17:49

1 Answer 1

1

You can try this: Enter the follow commands in a Terminal

sudo rm /var/lib/apt/lists/* -vf

Then:

sudo apt-get update

The first command will delete your local repo cache (it seems sometimes they can get into an inconsistent state) and apt-get update will refresh the whole thing from source.

1
  • tried this but returned with the same errors in the console on sudo apt-get update
    – user508005
    Aug 15, 2016 at 15:34

You must log in to answer this question.