How do I stop getting update eror messate: Packages 404 not found

Asked by Pablo

As of last week I get notifications that my update information is obsolete. When I check for new updates, I get this message:
W:Failed to fetch http://co.archive.ubuntu.com/ubuntu/dists/jaunty-backports/main/binary-amd64/Packages 404 Not Found
, W:Failed to fetch http://co.archive.ubuntu.com/ubuntu/dists/jaunty-backports/restricted/binary-amd64/Packages 404 Not Found
, W:Failed to fetch http://co.archive.ubuntu.com/ubuntu/dists/jaunty-backports/universe/binary-amd64/Packages 404 Not Found
, W:Failed to fetch http://co.archive.ubuntu.com/ubuntu/dists/jaunty-backports/multiverse/binary-amd64/Packages 404 Not Found
, W:Failed to fetch http://co.archive.ubuntu.com/ubuntu/dists/jaunty-backports/main/binary-i386/Packages 404 Not Found
, W:Failed to fetch http://co.archive.ubuntu.com/ubuntu/dists/jaunty-backports/restricted/binary-i386/Packages 404 Not Found
, W:Failed to fetch http://co.archive.ubuntu.com/ubuntu/dists/jaunty-backports/universe/binary-i386/Packages 404 Not Found
, W:Failed to fetch http://co.archive.ubuntu.com/ubuntu/dists/jaunty-backports/multiverse/binary-i386/Packages 404 Not Found
, E:Some index files failed to download. They have been ignored, or old ones used instead.

In my UPdate Preferences--Software sources, I don't have anything with Jaunty checked. Only Precise, Third party and not supported.... I tried unckecking the Third Party and Not supported, but I still got error message.

I am using Ubuntu 12.04, with AMD 64

What can I do to stop getting ths advisory and error message?

Thank you for your advice

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Solved by:
Pablo
Solved:
Last query:
Last reply:
Revision history for this message
Sam_ (and-sam) said :
#1

Please open a terminal: ctrl+alt+t
Enter:
lsb_release -a
uname -a

and post the output here.

Please open the sources.list:
gedit /etc/apt/sources.list

highlight the complete content, copy and paste it there [http://paste.ubuntu.com/] and post the link here. Thanks.

Revision history for this message
Pablo (ceascolombia) said :
#2

This is the output to the first item above:

ceas@ceas-laptop:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04 LTS
Release: 12.04
Codename: precise
ceas@ceas-laptop:~$ uname -a
Linux ceas-laptop 3.2.0-26-generic #41-Ubuntu SMP Thu Jun 14 17:49:24 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
ceas@ceas-laptop:

This is the the link to the sources list which i pasted where you indicated: http://paste.ubuntu.com/1104232/

Thank you for your help--Pablo

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

Can you give the output of:

grep -R jaunty /etc/apt/*

Thanks

Revision history for this message
Sam_ (and-sam) said :
#4

Pablo, thanks.
Your sources.list contents those outdated sources which are not out commented (aka disabled):
deb http://co.archive.ubuntu.com/ubuntu/ jaunty-backports main restricted universe multiverse
deb http://extras.ubuntu.com/ubuntu maverick main #Third party developers repository

You could backup current sources.list and create a standard sources.list or keep the current and correct it, leave it up to you.
Example standard sources.list for Precise with main server.
http://paste.ubuntu.com/1104980/

Backup current sources.list:
sudo mv /etc/apt/sources.list /etc/apt/sources.list-broken

Creates an empty sources.list to copy and paste new content.
sudo nano /etc/apt/sources.list

https://help.ubuntu.com/community/Nano

If Nano isn't your choice try GEdit.
gksudo gedit /etc/apt/sources.list

When finished feel free to switch server to 'us' again in sources.list or in software sources.
https://help.ubuntu.com/community/Repositories/Ubuntu#Download_Server

Finally you need to update sources and update the system.
sudo apt-get update
sudo apt-get upgrade

Revision history for this message
Pablo (ceascolombia) said :
#5

Replying to Actionparsnip Can you give the output of:

grep -R jaunty /etc/apt/*

I didn't have success there: This is the transcription:

casa@casa-laptop-ubuntu:~$ grep -R jaunty /etc/apt/*
grep: /etc/apt/trustdb.gpg: Permiso denegado
casa@casa-laptop-ubuntu:~$

Translated--permission denied.

Pablo

Revision history for this message
Pablo (ceascolombia) said :
#6

Replying to Sam

I attempted to follow your instructions. I used the command to create a back-up of the existing source list. Then I entered gedit and pasted in the standard source list that you offered. Then I did sudo apt-get update at the end of which it reported the following--similar to what was reported before with Jaunty but now with Karmic.

W: Imposible obtener http://co.archive.ubuntu.com/ubuntu/dists/karmic-backports/main/binary-amd64/Packages 404 Not Found

W: Imposible obtener http://co.archive.ubuntu.com/ubuntu/dists/karmic-backports/restricted/binary-amd64/Packages 404 Not Found

W: Imposible obtener http://co.archive.ubuntu.com/ubuntu/dists/karmic-backports/universe/binary-amd64/Packages 404 Not Found

W: Imposible obtener http://co.archive.ubuntu.com/ubuntu/dists/karmic-backports/multiverse/binary-amd64/Packages 404 Not Found

W: Imposible obtener http://co.archive.ubuntu.com/ubuntu/dists/karmic-backports/main/binary-i386/Packages 404 Not Found

W: Imposible obtener http://co.archive.ubuntu.com/ubuntu/dists/karmic-backports/restricted/binary-i386/Packages 404 Not Found

W: Imposible obtener http://co.archive.ubuntu.com/ubuntu/dists/karmic-backports/universe/binary-i386/Packages 404 Not Found

W: Imposible obtener http://co.archive.ubuntu.com/ubuntu/dists/karmic-backports/multiverse/binary-i386/Packages 404 Not Found

E: Algunos archivos de índice fallaron al descargar. Se han ignorado, o se han utilizado unos antiguos en su lugar

Then I did sudo apt-get upgrade, at the end of which it listed a number of packages which had incomplete dependencies--indicating they were dependent on ubunto0.2 but ubuntu 0.1 is installed. Before this list of incomplete dependencies was given, a line appeared saying: Tal vez quiera ejecutar «apt-get -f install» para corregirlo. [I might want to execute «apt-get -f install» to correct it.] I did not execute that command.

casa@casa-laptop-ubuntu:~$ sudo apt-get upgrade
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias
Leyendo la información de estado... Hecho
Tal vez quiera ejecutar «apt-get -f install» para corregirlo.
Los siguientes paquetes tienen dependencias incumplidas:
 kdelibs-bin : Depende: libkdecore5 (= 4:4.8.4a-0ubuntu0.2) pero 4:4.8.4a-0ubuntu0.1 está instalado
               Depende: libkdeui5 (= 4:4.8.4a-0ubuntu0.2) pero 4:4.8.4a-0ubuntu0.1 está instalado
               Depende: libkio5 (= 4:4.8.4a-0ubuntu0.2) pero 4:4.8.4a-0ubuntu0.1 está instalado
               Depende: libkjsapi4 (= 4:4.8.4a-0ubuntu0.2) pero 4:4.8.4a-0ubuntu0.1 está instalado
               Depende: libnepomuk4 (= 4:4.8.4a-0ubuntu0.2) pero 4:4.8.4a-0ubuntu0.1 está instalado
 kdelibs5-plugins : Depende: libkde3support4 (= 4:4.8.4a-0ubuntu0.1) pero 4:4.8.4a-0ubuntu0.2 está instalado
                    Depende: libkdewebkit5 (= 4:4.8.4a-0ubuntu0.1) pero 4:4.8.4a-0ubuntu0.2 está instalado
                    Depende: libkhtml5 (= 4:4.8.4a-0ubuntu0.1) pero 4:4.8.4a-0ubuntu0.2 está instalado

Are any of these messages a problem?

Then I attempted to open the Software Center, which I hadn't been able to open. I got a message that it was necessary to repair the software packages, or something like that--which I did. And then the software center opened.

So, does this mean it is all repaired?

Revision history for this message
Pablo (ceascolombia) said :
#7

Sam--If you had not given me the standard source list for Precise, how would I have obtained it?
Pablo

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

ok and what is the output of:

grep -R karmic /etc/apt/*

Thanks

Revision history for this message
Sam_ (and-sam) said :
#9

Pablo, sources.list is on LiveCD, or just ask for it and there is a page which generates one.
http://repogen.simplylinux.ch/

Karmic is outdated too.
Please also post the output of:
ls -al /etc/apt
ls -al /etc/apt/sources.list.d
ls -al /etc/apt/apt.conf.d

Revision history for this message
Pablo (ceascolombia) said :
#10

To Actionparsnip - the output of:

grep -R karmic /etc/apt/* is:

casa@casa-laptop-ubuntu:~$ grep -R karmic /etc/apt/*
/etc/apt/sources.list:# deb cdrom:[Ubuntu 9.10 _Karmic Koala_ - Release amd64 (20091027)]/ karmic main restricted
/etc/apt/sources.list:deb http://co.archive.ubuntu.com/ubuntu/ karmic-backports main restricted universe multiverse
/etc/apt/sources.list:# deb-src http://co.archive.ubuntu.com/ubuntu/ karmic-backports main restricted universe multiverse
/etc/apt/sources.list:# deb http://archive.canonical.com/ubuntu karmic partner
/etc/apt/sources.list:# deb-src http://archive.canonical.com/ubuntu karmic partner
/etc/apt/sources.list-broken:# deb cdrom:[Ubuntu 9.10 _Karmic Koala_ - Release amd64 (20091027)]/ karmic main restricted
/etc/apt/sources.list-broken:deb http://co.archive.ubuntu.com/ubuntu/ karmic-backports main restricted universe multiverse
/etc/apt/sources.list-broken:# deb-src http://co.archive.ubuntu.com/ubuntu/ karmic-backports main restricted universe multiverse
/etc/apt/sources.list-broken:# deb http://archive.canonical.com/ubuntu karmic partner
/etc/apt/sources.list-broken:# deb-src http://archive.canonical.com/ubuntu karmic partner
/etc/apt/sources.list.distUpgrade:# deb cdrom:[Ubuntu 9.10 _Karmic Koala_ - Release amd64 (20091027)]/ karmic main restricted
/etc/apt/sources.list.distUpgrade:# deb http://co.archive.ubuntu.com/ubuntu/ karmic-backports main restricted universe multiverse
/etc/apt/sources.list.distUpgrade:# deb-src http://co.archive.ubuntu.com/ubuntu/ karmic-backports main restricted universe multiverse
/etc/apt/sources.list.distUpgrade:# deb http://archive.canonical.com/ubuntu karmic partner
/etc/apt/sources.list.distUpgrade:# deb-src http://archive.canonical.com/ubuntu karmic partner
grep: /etc/apt/trustdb.gpg: Permiso denegado

Note that the last line ends with "permission denied"

Thank you very much for your help

Revision history for this message
Pablo (ceascolombia) said :
#11

To Sam .
THIS IS THE OUTPUT OF ls -al /etc/apt

casa@casa-laptop-ubuntu:~$ ls -al /etc/apt
total 80
drwxr-xr-x 6 root root 4096 jul 22 21:37 .
drwxr-xr-x 185 root root 12288 jul 23 20:25 ..
drwxr-xr-x 2 root root 4096 jul 10 21:25 apt.conf.d
drwxr-xr-x 2 root root 4096 oct 15 2009 preferences.d
-rw-r--r-- 1 root root 3204 jul 22 21:39 sources.list
-rw-r--r-- 1 root root 2457 jul 22 21:31 sources.list~
-rw-r--r-- 1 root root 3204 jul 20 16:30 sources.list-broken
drwxr-xr-x 2 root root 4096 jul 20 16:06 sources.list.d
-rw-r--r-- 1 root root 3188 abr 27 19:07 sources.list.distUpgrade
-rw-r--r-- 1 root root 2457 jul 22 21:39 sources.list.save
-rw------- 1 root root 1200 feb 19 2011 trustdb.gpg
-rw-r--r-- 1 root root 11631 oct 16 2011 trusted.gpg
-rw-r--r-- 1 root root 10436 feb 19 2011 trusted.gpg~
drwxr-xr-x 2 root root 4096 abr 15 2010 trusted.gpg.d
casa@casa-laptop-ubuntu:~$

THIS IS THE OUTPUT OF ls -al /etc/apt/sources.list.d
casa@casa-laptop-ubuntu:~$ ls -al /etc/apt/sources.list.d
total 100
drwxr-xr-x 2 root root 4096 jul 20 16:06 .
drwxr-xr-x 6 root root 4096 jul 22 21:37 ..
-rw-r--r-- 1 root root 100 jul 22 21:39 dropbox.list
-rw-r--r-- 1 root root 100 abr 27 19:07 dropbox.list.distUpgrade
-rw-r--r-- 1 root root 100 jul 22 21:39 dropbox.list.save
-rw-r--r-- 1 root root 225 jul 22 21:39 google-chrome.list
-rw-r--r-- 1 root root 176 abr 27 19:07 google-chrome.list.distUpgrade
-rw-r--r-- 1 root root 225 jul 22 21:39 google-chrome.list.save
-rw-r--r-- 1 root root 230 jul 22 21:39 google-talkplugin.list
-rw-r--r-- 1 root root 230 abr 27 19:07 google-talkplugin.list.distUpgrade
-rw-r--r-- 1 root root 230 jul 22 21:39 google-talkplugin.list.save
-rw-r--r-- 1 root root 214 jul 22 21:39 jitsi.list
-rw-r--r-- 1 root root 165 abr 27 19:07 jitsi.list.distUpgrade
-rw-r--r-- 1 root root 214 jul 22 21:39 jitsi.list.save
-rw-r--r-- 1 root root 224 jul 22 21:39 libreoffice-ppa-maverick.list
-rw-r--r-- 1 root root 224 abr 27 19:07 libreoffice-ppa-maverick.list.distUpgrade
-rw-r--r-- 1 root root 224 jul 22 21:39 libreoffice-ppa-maverick.list.save
-rw-r--r-- 1 root root 75 jul 22 21:39 skype.list
-rw-r--r-- 1 root root 75 abr 27 19:07 skype.list.distUpgrade
-rw-r--r-- 1 root root 75 jul 22 21:39 skype.list.save
-rw-r--r-- 1 root root 180 jul 22 21:39 tualatrix-ppa-maverick.list
-rw-r--r-- 1 root root 180 abr 27 19:07 tualatrix-ppa-maverick.list.distUpgrade
-rw-r--r-- 1 root root 180 jul 22 21:39 tualatrix-ppa-maverick.list.save
-rw-r--r-- 1 root root 89 dic 11 2010 ubuntu-tweak-stable.list.distUpgrade
-rw-r--r-- 1 root root 138 feb 19 2011 ubuntu-tweak-stable.list.save

THIS IS THE OUTPUT OF ls -al /etc/apt/apt.conf.d

casa@casa-laptop-ubuntu:~$ ls -al /etc/apt/apt.conf.d
total 64
drwxr-xr-x 2 root root 4096 jul 10 21:25 .
drwxr-xr-x 6 root root 4096 jul 22 21:37 ..
-rw-r--r-- 1 root root 40 ene 4 2010 00trustcdrom
-rw-r--r-- 1 root root 430 abr 7 2011 01autoremove
-rw-r--r-- 1 root root 9 oct 15 2009 01ubuntu.dpkg-remove
-rw-r--r-- 1 root root 157 sep 28 2009 05aptitude
-rw-r--r-- 1 root root 168 abr 28 2011 10periodic
-rw-r--r-- 1 root root 108 oct 15 2009 15update-stamp
-rw-r--r-- 1 root root 85 oct 15 2009 20archive
-rw-r--r-- 1 root root 123 oct 6 2011 20changelog
-rw-r--r-- 1 root root 243 mar 31 2010 20dbus
-rw-r--r-- 1 root root 1049 nov 12 2010 20packagekit
-rw-r--r-- 1 root root 2124 mar 12 04:03 50unattended-upgrades
-rw-r--r-- 1 root root 182 oct 2 2009 70debconf
-rw-r--r-- 1 root root 32 dic 30 2011 99synaptic
-rw-r--r-- 1 root root 231 jun 1 2010 99update-notifier
casa@casa-laptop-ubuntu:~$

THANK YOU VERY MUCH FOR YOUR HELP. I KNOW THAT ALONE THERE IS NO WAY I COULD RESOLVE THIS.

Pablo

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

Ok run:

gksudo gedit /etc/apt/sources.list

And any line with the word 'karmic' on, put a hash character at the start

Revision history for this message
Sam_ (and-sam) said :
#13

Pablo, in #6 you didn't manage to create the standard sources.list as the output of #10 obviously shows.
Where is the problem to open the sources.list with GEdit, clear the file and paste a new content?

gksudo gedit /etc/apt/sources.list

Highlight the content and delete.

Open the link, highlight text only with left mouse and paste it into sources.list.
http://paste.ubuntu.com/1104980/

Save the file and update.
sudo apt-get update
sudo apt-get upgrade

Revision history for this message
Pablo (ceascolombia) said :
#14

To Actionparsnip and Sam.

1. I implemented Actionparsnip's recommendations in messages 8 and 12. Then I checked for updates with the update manager, and I got no errors. Note that I didn't check for updates with sudo apt-get update and
sudo apt-get upgrade. Was this a mistake? I didn't run those two commands because I am quite ignofrant about all this and didn't know the implications of doing so. Can you advise me?

2. On another computer I was also getting Jaunty errors when checking for updates in the update manager. :

I opened the Terminal and ran this command which you Actionparsnip had suggested earlier. This is what I got:

ceas@ceas-laptop:~$ grep -R jaunty /etc/apt/*
/etc/apt/sources.list:# deb cdrom:[Ubuntu 9.04 _Jaunty Jackalope_ - Release amd64 (20090420.1)]/ jaunty main restricted
/etc/apt/sources.list:deb http://co.archive.ubuntu.com/ubuntu/ jaunty-backports main restricted universe multiverse
/etc/apt/sources.list:# deb-src http://co.archive.ubuntu.com/ubuntu/ jaunty-backports main restricted universe multiverse
/etc/apt/sources.list:# deb http://archive.canonical.com/ubuntu jaunty partner
/etc/apt/sources.list:# deb-src http://archive.canonical.com/ubuntu jaunty partner
/etc/apt/sources.list.distUpgrade:# deb cdrom:[Ubuntu 9.04 _Jaunty Jackalope_ - Release amd64 (20090420.1)]/ jaunty main restricted
/etc/apt/sources.list.distUpgrade:# deb http://co.archive.ubuntu.com/ubuntu/ jaunty-backports main restricted universe multiverse
/etc/apt/sources.list.distUpgrade:# deb-src http://co.archive.ubuntu.com/ubuntu/ jaunty-backports main restricted universe multiverse
/etc/apt/sources.list.distUpgrade:# deb http://archive.canonical.com/ubuntu jaunty partner
/etc/apt/sources.list.distUpgrade:# deb-src http://archive.canonical.com/ubuntu jaunty partner
/etc/apt/sources.list.save:# deb cdrom:[Ubuntu 9.04 _Jaunty Jackalope_ - Release amd64 (20090420.1)]/ jaunty main restricted
/etc/apt/sources.list.save:deb http://co.archive.ubuntu.com/ubuntu/ jaunty-backports main restricted universe multiverse
/etc/apt/sources.list.save:# deb-src http://co.archive.ubuntu.com/ubuntu/ jaunty-backports main restricted universe multiverse
/etc/apt/sources.list.save:# deb http://archive.canonical.com/ubuntu jaunty partner
/etc/apt/sources.list.save:# deb-src http://archive.canonical.com/ubuntu jaunty partner
grep: /etc/apt/trustdb.gpg: Permiso denegado

I ran ceas@ceas-laptop:~$ gksudo gedit /etc/apt/sources.list
and I put a # in front of the following
deb http://co.archive.ubuntu.com/ubuntu/ jaunty-backports main restricted universe multiverse

Then I checked for updates in the update manager, and the coast was clear. Did I do the right thing? Does this mean all is well and the problem is solved. Should I run sudo apt-get update and sudo apt-get upgrade?

Note that since the hash mark strategy seemed to work I didn't paste the source list?

Thanks for your help. Please let me know if what I have done is right or if there is more to do.

Revision history for this message
Sam_ (and-sam) said :
#15

apt-get update reloads sources.list, after that apt knows where to look in order to apt-get upgrade installed packages.
https://help.ubuntu.com/community/AptGet/Howto

> Should I run sudo apt-get update and sudo apt-get upgrade?

That would be nice, the output tells if dpkg and apt are satisfied.

Revision history for this message
Pablo (ceascolombia) said :
#16

I ran sudo apt-get update and sudo apt-get upgrade and no errors showed up. So it seems like the problem is solved, right? For future reference, it seems like the hash mark strategy is a simpler solution that replacing the source list, right?

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

Its not simpler, it's just less destructive. The hash makes the system see the line as a comment rather than a config line. Commenting things out rather than deleting gives a rollback method

Revision history for this message
Pablo (ceascolombia) said :
#18

Thank you Actionparsnip and Sam. You have helped me solve my problem and you have taught me things. Much appreciated