12.04 upgrade repos FAIL

Asked by euthyfro on 2012-05-14

i've been trying to upgrade to 12.04 since last night but i'm getting:

W:Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/intrepid-backports/main/source/Sources 404 Not Found [IP: 91.189.92.177 80]
, W:Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/intrepid-backports/restricted/source/Sources 404 Not Found [IP: 91.189.92.177 80]
, W:Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/intrepid-backports/universe/source/Sources 404 Not Found [IP: 91.189.92.177 80]
, W:Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/intrepid-backports/multiverse/source/Sources 404 Not Found [IP: 91.189.92.177 80]
, E:Some index files failed to download. They have been ignored, or old ones used instead.

I read a post on here from someone w/similar problem that was solved by removing the offending repos from /etc/apt/sources.list.d however the repositories cited for me aren't in any of my source.list files.
Anyway i can upgrade w/o doing a fresh install of 12.04? i don't wanna back-up all the piles of stuff on here just for an update.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu update-manager Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
2012-05-15
Last query:
2012-05-15
Last reply:
2012-05-15
Wyatt Smith (wyatt-smith) said : #1

You should be able to remove the offending repositories from you sources list as superuser. Please try...
gksu gedit /etc/apt/sources.list

Then remove the offending intrepid repos. Save and exit. Then do...
sudo apt-get update

euthyfro (euthyfro-g) said : #2

trying

gksu gedit /etc/apt/source.list

just opened gedit with a blank "source.list" tab

Intrepid is EOL, so there will be no repos active for it.

Can you give the output of:

grep -R intrepid /etc/apt

Thanks

Also, did you upgrade direct from Intrepid to Precise?

euthyfro (euthyfro-g) said : #4

grep -R intrepid /etc/apt

gave me:
/etc/apt/sources.list.distUpgrade:# deb cdrom:[Ubuntu 8.10 _Intrepid Ibex_ - Release amd64 (20081028)]/ intrepid main restricted
/etc/apt/sources.list.distUpgrade:# deb cdrom:[Ubuntu 8.10 _Intrepid Ibex_ - Release amd64 (20081028)]/ intrepid main restricted
/etc/apt/sources.list.distUpgrade:deb http://us.archive.ubuntu.com/ubuntu/ intrepid-backports main restricted universe multiverse
/etc/apt/sources.list.distUpgrade:deb-src http://us.archive.ubuntu.com/ubuntu/ intrepid-backports main restricted universe multiverse
/etc/apt/sources.list.save:# deb cdrom:[Ubuntu 8.10 _Intrepid Ibex_ - Release amd64 (20081028)]/ intrepid main restricted
/etc/apt/sources.list.save:# deb cdrom:[Ubuntu 8.10 _Intrepid Ibex_ - Release amd64 (20081028)]/ intrepid main restricted
/etc/apt/sources.list.save:deb http://us.archive.ubuntu.com/ubuntu/ intrepid-backports main restricted universe multiverse
/etc/apt/sources.list.save:deb-src http://us.archive.ubuntu.com/ubuntu/ intrepid-backports main restricted universe multiverse
/etc/apt/sources.list:# deb cdrom:[Ubuntu 8.10 _Intrepid Ibex_ - Release amd64 (20081028)]/ intrepid main restricted
/etc/apt/sources.list:# deb cdrom:[Ubuntu 8.10 _Intrepid Ibex_ - Release amd64 (20081028)]/ intrepid main restricted
/etc/apt/sources.list:deb http://us.archive.ubuntu.com/ubuntu/ intrepid-backports main restricted universe multiverse
/etc/apt/sources.list:deb-src http://us.archive.ubuntu.com/ubuntu/ intrepid-backports main restricted universe multiverse
grep: /etc/apt/trustdb.gpg: Permission denied

and no, i'm upgrading from 11.10

ok run:

sudo rm /etc/apt/sources.list.save
sudo rm /etc/apt/sources.list.distUpgrade

gksudo gedit /etc/apt/sources.list

find these 2 lines:
deb http://us.archive.ubuntu.com/ubuntu/ intrepid-backports main
deb-src http://us.archive.ubuntu.com/ubuntu/ intrepid-backports main

and change them to:
deb http://us.archive.ubuntu.com/ubuntu/ precise-backports main
deb-src http://us.archive.ubuntu.com/ubuntu/ precise-backports main

Save the new file, close gedit, then run:

sudo apt-get update

Is it smooth?

euthyfro (euthyfro-g) said : #6

also:
# deb cdrom:[Ubuntu 8.10 _Intrepid Ibex_ - Release amd64 (20081028)]/ intrepid main restricted
# deb cdrom:[Ubuntu 8.10 _Intrepid Ibex_ - Release amd64 (20081028)]/ intrepid main restricted

deb http://us.archive.ubuntu.com/ubuntu/ intrepid-backports main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ intrepid-backports main restricted universe multiverse

are in the /etc/apt sources.list, sources.list.distUpgrade & sources/list.save files

euthyfro (euthyfro-g) said : #7

it's running w/your instructions now actionparsnip
got:
N: Ignoring file 'getdeb.list.bck' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
N: Ignoring file 'getdeb.list.bck' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
N: Ignoring file 'getdeb.list.bck' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
W: Duplicate sources.list entry http://archive.ubuntu.com/ubuntu/ oneiric/multiverse amd64 Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_oneiric_multiverse_binary-amd64_Packages)
W: Duplicate sources.list entry http://archive.ubuntu.com/ubuntu/ oneiric/multiverse i386 Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_oneiric_multiverse_binary-i386_Packages)
W: You may want to run apt-get update to correct these problems

Then run:

sudo rm /etc/apt/sources.list.d/getdeb.list.bck; clear; grep -R multiverse /etc/apt

What is output?

euthyfro (euthyfro-g) said : #9

my output from
sudo rm /etc/apt/sources.list.d/getdeb.list.bck; clear; grep -R multiverse /etc/apt:

/etc/apt/apt.conf.d/01autoremove: "multiverse/metapackages";
/etc/apt/apt.conf.d/01autoremove: "multiverse/oldlibs";
/etc/apt/sources.list:deb-src http://archive.ubuntu.com/ubuntu oneiric main multiverse universe #Added by software-properties
/etc/apt/sources.list:deb-src http://archive.ubuntu.com/ubuntu oneiric-updates restricted main multiverse universe #Added by software-properties
/etc/apt/sources.list:## multiverse WILL NOT receive any review or updates from the Ubuntu
/etc/apt/sources.list:deb http://archive.ubuntu.com/ubuntu oneiric multiverse
/etc/apt/sources.list:deb http://archive.ubuntu.com/ubuntu oneiric-updates multiverse
/etc/apt/sources.list:deb http://us.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse
/etc/apt/sources.list:deb-src http://us.archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse
/etc/apt/sources.list:deb-src http://archive.ubuntu.com/ubuntu oneiric-security restricted main multiverse universe #Added by software-properties
/etc/apt/sources.list:deb http://archive.ubuntu.com/ubuntu oneiric-security multiverse
/etc/apt/sources.list:deb http://archive.ubuntu.com/ubuntu oneiric multiverse
/etc/apt/sources.list:deb http://archive.ubuntu.com/ubuntu oneiric-backports restricted main multiverse universe
/etc/apt/sources.list:deb-src http://archive.ubuntu.com/ubuntu oneiric-backports restricted main multiverse universe #Added by software-properties
grep: /etc/apt/trustdb.gpg: Permission denied
/etc/apt/sources.list~:deb-src http://archive.ubuntu.com/ubuntu oneiric main multiverse universe #Added by software-properties
/etc/apt/sources.list~:deb-src http://archive.ubuntu.com/ubuntu oneiric-updates restricted main multiverse universe #Added by software-properties
/etc/apt/sources.list~:## multiverse WILL NOT receive any review or updates from the Ubuntu
/etc/apt/sources.list~:deb http://archive.ubuntu.com/ubuntu oneiric multiverse
/etc/apt/sources.list~:deb http://archive.ubuntu.com/ubuntu oneiric-updates multiverse
/etc/apt/sources.list~:deb http://us.archive.ubuntu.com/ubuntu/ intrepid-backports main restricted universe multiverse
/etc/apt/sources.list~:deb-src http://us.archive.ubuntu.com/ubuntu/ intrepid-backports main restricted universe multiverse
/etc/apt/sources.list~:deb-src http://archive.ubuntu.com/ubuntu oneiric-security restricted main multiverse universe #Added by software-properties
/etc/apt/sources.list~:deb http://archive.ubuntu.com/ubuntu oneiric-security multiverse
/etc/apt/sources.list~:deb http://archive.ubuntu.com/ubuntu oneiric multiverse
/etc/apt/sources.list~:deb http://archive.ubuntu.com/ubuntu oneiric-backports restricted main multiverse universe
/etc/apt/sources.list~:deb-src http://archive.ubuntu.com/ubuntu oneiric-backports restricted main multiverse universe #Added by software-properties

thank you for all the help & patience, but now i must get some sleep...
that rebuild looks about right so let's hope for a successful upgrade tomorrow morning!

That is a massive mess. No idea how you made it like that, reguar upgrades will make the file ok. are you manually editting the file or someting!?

Lets clear up this mess:

cd $HOME
wget http://dl.dropbox.com/u/8850924/sources.list
sudo cp ./sources.list /etc/apt
sudo apt-get update

Should be ok

euthyfro (euthyfro-g) said : #12

i must have done something wrong because after all that i upgraded & still got:
W:Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/intrepid-backports/main/source/Sources 404 Not Found [IP: 91.189.92.176 80]
, W:Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/intrepid-backports/restricted/source/Sources 404 Not Found [IP: 91.189.92.176 80]
, W:Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/intrepid-backports/universe/source/Sources 404 Not Found [IP: 91.189.92.176 80]
, W:Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/intrepid-backports/multiverse/source/Sources 404 Not Found [IP: 91.189.92.176 80]
, E:Some index files failed to download. They have been ignored, or old ones used instead.

why is intrepid still showing up? i thought i had removed that manually

euthyfro (euthyfro-g) said : #13

the intrepid backports were still showing up in sources.list.distUpgrade file so i re-did:

sudo rm /etc/apt/sources.list.distUpgrade
sudo apt-get update

and now i'll try again

euthyfro (euthyfro-g) said : #14

it has worked!

euthyfro (euthyfro-g) said : #15

Thanks actionparsnip, that solved my question.