12.04 upgrade repos FAIL

Asked by euthyfro

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:
Last query:
Last reply:
Revision history for this message
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

Revision history for this message
euthyfro (euthyfro-g) said :
#2

trying

gksu gedit /etc/apt/source.list

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

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

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?

Revision history for this message
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

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#5

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?

Revision history for this message
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

Revision history for this message
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

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#8

Then run:

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

What is output?

Revision history for this message
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!

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#10

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!?

Revision history for this message
Best actionparsnip (andrew-woodhead666) said :
#11

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

Revision history for this message
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

Revision history for this message
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

Revision history for this message
euthyfro (euthyfro-g) said :
#14

it has worked!

Revision history for this message
euthyfro (euthyfro-g) said :
#15

Thanks actionparsnip, that solved my question.