0

I got this error while upgrading from 12.10 to 14.10:

W:Failed to fetch http://security.ubuntu.com/ubuntu/dists/raring-security/main/source/Sources  404  Not Found [IP: 91.189.91.15 80]
W:Failed to fetch http://security.ubuntu.com/ubuntu/dists/raring-security/restricted

What should I do?

6
  • Which 12.x release were you on?
    – Thomas Ward
    Nov 1, 2014 at 23:04
  • It is the 12.10 one.
    – Glen
    Nov 2, 2014 at 0:26
  • 1
    12.10 and the variants between 12.04 and 14.04 are all End of Life. I'd suggest you start here: askubuntu.com/questions/91815/…
    – Thomas Ward
    Nov 2, 2014 at 0:28
  • Thanks Thomas, but it didn't work.
    – Glen
    Nov 2, 2014 at 3:02
  • What's the new error message then? If it's the same, you (very likely) didn't do it right. Nov 2, 2014 at 13:48

1 Answer 1

2

Test this:

Open a terminal,

Press Ctrl+Alt+T

Run it:

sudo -i
nano /etc/apt/sources.list

In the open file.

Delete the contents.

Paste the following:

deb http://us.archive.ubuntu.com/ubuntu/ utopic main restricted
# deb-src http://us.archive.ubuntu.com/ubuntu/ utopic main restricted
deb http://us.archive.ubuntu.com/ubuntu/ utopic-updates main restricted
# deb-src http://us.archive.ubuntu.com/ubuntu/ utopic-updates main restricted
deb http://us.archive.ubuntu.com/ubuntu/ utopic universe
# deb-src http://us.archive.ubuntu.com/ubuntu/ utopic universe
deb http://us.archive.ubuntu.com/ubuntu/ utopic-updates universe
# deb-src http://us.archive.ubuntu.com/ubuntu/ utopic-updates universe
deb http://us.archive.ubuntu.com/ubuntu/ utopic multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ utopic multiverse
deb http://us.archive.ubuntu.com/ubuntu/ utopic-updates multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ utopic-updates multiverse
deb http://us.archive.ubuntu.com/ubuntu/ utopic-backports main restricted universe multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ utopic-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu utopic-security main restricted
# deb-src http://security.ubuntu.com/ubuntu utopic-security main restricted
deb http://security.ubuntu.com/ubuntu utopic-security universe
# deb-src http://security.ubuntu.com/ubuntu utopic-security universe
deb http://security.ubuntu.com/ubuntu utopic-security multiverse
# deb-src http://security.ubuntu.com/ubuntu utopic-security multiverse
deb http://archive.canonical.com/ubuntu utopic partner
# deb-src http://archive.canonical.com/ubuntu utopic partner
deb http://extras.ubuntu.com/ubuntu utopic main
# deb-src http://extras.ubuntu.com/ubuntu utopic main
deb http://us.archive.ubuntu.com/ubuntu/ utopic-proposed universe multiverse restricted main

Ctrl + O, save file. Ctrl + X, close nano.

Continue running:

apt-get autoremove
apt-get clean
UNUSCONF=$(dpkg -l|grep "^rc"|awk '{print $2}')
apt-get remove --purge $UNUSCONF
NEWKERNEL=$(uname -r|sed 's/-*[a-z]//g'|sed 's/-386//g')
ADDKERNEL="linux-(image|headers|ubuntu-modules|restricted-modules)"
METAKERNEL="linux-(image|headers|restricted-modules)-(generic|i386|server|common|rt|xen)"
UNUSKERNELS=$(dpkg -l|awk '{print $2}'|grep -E $ADDKERNEL |grep -vE $METAKERNEL|grep -v $NEWKERNEL)
apt-get remove --purge $UNUSKERNELS
apt-get update
apt-get dist-upgrade
dpkg --configure -a
apt-get -f install
apt-get clean
reboot

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .