How do I stop getting update eror messate: Packages 404 not found
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://
, W:Failed to fetch http://
, W:Failed to fetch http://
, W:Failed to fetch http://
, W:Failed to fetch http://
, W:Failed to fetch http://
, W:Failed to fetch http://
, W:Failed to fetch http://
, E:Some index files failed to download. They have been ignored, or old ones used instead.
In my UPdate Preferences-
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
|
#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/
highlight the complete content, copy and paste it there [http://
Revision history for this message
|
#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://
Thank you for your help--Pablo
Revision history for this message
|
#3 |
Can you give the output of:
grep -R jaunty /etc/apt/*
Thanks
Revision history for this message
|
#4 |
Pablo, thanks.
Your sources.list contents those outdated sources which are not out commented (aka disabled):
deb http://
deb http://
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://
Backup current sources.list:
sudo mv /etc/apt/
Creates an empty sources.list to copy and paste new content.
sudo nano /etc/apt/
https:/
If Nano isn't your choice try GEdit.
gksudo gedit /etc/apt/
When finished feel free to switch server to 'us' again in sources.list or in software sources.
https:/
Finally you need to update sources and update the system.
sudo apt-get update
sudo apt-get upgrade
Revision history for this message
|
#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-
grep: /etc/apt/
casa@casa-
Translated-
Pablo
Revision history for this message
|
#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://
W: Imposible obtener http://
W: Imposible obtener http://
W: Imposible obtener http://
W: Imposible obtener http://
W: Imposible obtener http://
W: Imposible obtener http://
W: Imposible obtener http://
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-
casa@casa-
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-
kdelibs5-plugins : Depende: libkde3support4 (= 4:4.8.4a-
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
|
#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
|
#8 |
ok and what is the output of:
grep -R karmic /etc/apt/*
Thanks
Revision history for this message
|
#9 |
Pablo, sources.list is on LiveCD, or just ask for it and there is a page which generates one.
http://
Karmic is outdated too.
Please also post the output of:
ls -al /etc/apt
ls -al /etc/apt/
ls -al /etc/apt/apt.conf.d
Revision history for this message
|
#10 |
To Actionparsnip - the output of:
grep -R karmic /etc/apt/* is:
casa@casa-
/etc/apt/
/etc/apt/
/etc/apt/
/etc/apt/
/etc/apt/
/etc/apt/
/etc/apt/
/etc/apt/
/etc/apt/
/etc/apt/
/etc/apt/
/etc/apt/
/etc/apt/
/etc/apt/
/etc/apt/
grep: /etc/apt/
Note that the last line ends with "permission denied"
Thank you very much for your help
Revision history for this message
|
#11 |
To Sam .
THIS IS THE OUTPUT OF ls -al /etc/apt
casa@casa-
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.
-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-
THIS IS THE OUTPUT OF ls -al /etc/apt/
casa@casa-
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.
-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-
-rw-r--r-- 1 root root 225 jul 22 21:39 google-
-rw-r--r-- 1 root root 230 jul 22 21:39 google-
-rw-r--r-- 1 root root 230 abr 27 19:07 google-
-rw-r--r-- 1 root root 230 jul 22 21:39 google-
-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.
-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-
-rw-r--r-- 1 root root 224 abr 27 19:07 libreoffice-
-rw-r--r-- 1 root root 224 jul 22 21:39 libreoffice-
-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.
-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-
-rw-r--r-- 1 root root 180 abr 27 19:07 tualatrix-
-rw-r--r-- 1 root root 180 jul 22 21:39 tualatrix-
-rw-r--r-- 1 root root 89 dic 11 2010 ubuntu-
-rw-r--r-- 1 root root 138 feb 19 2011 ubuntu-
THIS IS THE OUTPUT OF ls -al /etc/apt/apt.conf.d
casa@casa-
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.
-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-
-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-
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
|
#12 |
Ok run:
gksudo gedit /etc/apt/
And any line with the word 'karmic' on, put a hash character at the start
Revision history for this message
|
#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/
Highlight the content and delete.
Open the link, highlight text only with left mouse and paste it into sources.list.
http://
Save the file and update.
sudo apt-get update
sudo apt-get upgrade
Revision history for this message
|
#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/
/etc/apt/
/etc/apt/
/etc/apt/
/etc/apt/
/etc/apt/
/etc/apt/
/etc/apt/
/etc/apt/
/etc/apt/
/etc/apt/
/etc/apt/
/etc/apt/
/etc/apt/
/etc/apt/
grep: /etc/apt/
I ran ceas@ceas-laptop:~$ gksudo gedit /etc/apt/
and I put a # in front of the following
deb http://
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
|
#15 |
apt-get update reloads sources.list, after that apt knows where to look in order to apt-get upgrade installed packages.
https:/
> 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
|
#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
|
#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
|
#18 |
Thank you Actionparsnip and Sam. You have helped me solve my problem and you have taught me things. Much appreciated