apt-get update fails to fetch. Solution 197664 fails too.

Asked by Frederic

sudo apt-get updata has been reporting three errors ever since I upgraded to 12.04 LTS:

Err http://apt.wxwidgets.org precise-wx/main Sources
  404 Not Found
Err http://apt.wxwidgets.org precise-wx/main i386 Packages
  404 Not Found
Err http://apt.postgresql.org 12.04-pgdg/main i386 Packages
  404 Not Found [IP: 67.192.136.133 80]
W: Failed to fetch http://apt.wxwidgets.org/dists/precise-wx/main/source/Sources 404 Not Found
W: Failed to fetch http://apt.wxwidgets.org/dists/precise-wx/main/binary-i386/Packages 404 Not Found
W: Failed to fetch http://apt.postgresql.org/pub/repos/apt/dists/12.04-pgdg/main/binary-i386/Packages 404 Not Found [IP: 67.192.136.133 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.

Solution 197664 recommends:

echo "nameserver 8.8.8.8" | sudo tee /etc/resolv.conf > /dev/null
echo "nameserver 8.8.8.8" | sudo tee /etc/resolvconf/resolv.conf.d/base > /dev/null

I still get the same errors. The five solved cases suggested for study don't seem to address the same issue. I hesitate to follow their recommendations experimentally and upset the state of the system in unpredictable ways. Solution 197664 (not included in the five recommendations) does address my problem, but doesn't solve it,

Thanks for advice

Frederic

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Solved by:
Mark Rijckenberg
Solved:
Last query:
Last reply:
Revision history for this message
Best Mark Rijckenberg (markrijckenberg) said :
#1

These errors are normal, because the URL's you are trying to reach do not exist.

The error message "404 Not Found" clearly proves this fact.

Check this URL:

http://apt.wxwidgets.org/dists/

You will see at that URL that it does not support "precise" (Ubuntu 12.04) .

So you need to remove it from the /etc/apt/sources.list.d directory or the/etc/apt/sources.list file.

Also check this URL:

http://apt.postgresql.org/pub/repos/apt/dists/

That URL does not show 12.04-pgdg in the list.

So either remove that URL as well from /etc/apt/sources.list.d directory or the/etc/apt/sources.list file,

or replace 12.04-pgdg with precise-pgdg/

precise-pgdg exists, but 12.04-pgdg does not exist in http://apt.postgresql.org/pub/repos/apt/dists/

Revision history for this message
Frederic (anthra-norell) said :
#2

Thank you Mark,

I neutralized the respective lines for wx and changed the postgresql address to:

deb http://apt.postgresql.org/pub/repos/apt precise-pgdg main

All seems well now, presuming I am not missing anything in places where the wx things are not. In fact, "wx" sounds like having to do with windows, and I do have a problem with compiz. But that is another thread that unfortunately remains unresolved with no further suggestions coming in (https://answers.launchpad.net/ubuntu/+question/241645). I don't want to impose on your time, but if your expertise can readily identify a connection, you may let me know in a few words.

So or so, many thanks

Frederic

Revision history for this message
Frederic (anthra-norell) said :
#3

Thanks Mark Rijckenberg, that solved my question.