Update manager goes to wrong IP

Archived topics about LMDE 1 and LMDE 2
Locked
westcoastsunset

Update manager goes to wrong IP

Post by westcoastsunset »

I just installed linux mint 11 lxde edition. I have a problem with the update manager when trying to get any updates It will eventually throw out the following error:

Failed to fetch http://security.ubuntu.com/ubuntu/dists ... 6/Packages 404 Not Found [IP: 91.189.92.166 80]
Failed to fetch http://security.ubuntu.com/ubuntu/dists ... 6/Packages 404 Not Found [IP: 91.189.92.166 80]
Failed to fetch http://security.ubuntu.com/ubuntu/dists ... 6/Packages 404 Not Found [IP: 91.189.92.166 80]
Failed to fetch http://security.ubuntu.com/ubuntu/dists ... 6/Packages 404 Not Found [IP: 91.189.92.166 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/dists/ ... 6/Packages 404 Not Found [IP: 91.189.92.188 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/dists/ ... 6/Packages 404 Not Found [IP: 91.189.92.188 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/dists/ ... 6/Packages 404 Not Found [IP: 91.189.92.188 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/dists/ ... 6/Packages 404 Not Found [IP: 91.189.92.188 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/dists/ ... 6/Packages 404 Not Found [IP: 91.189.92.188 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/dists/ ... 6/Packages 404 Not Found [IP: 91.189.92.188 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/dists/ ... 6/Packages 404 Not Found [IP: 91.189.92.188 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/dists/ ... 6/Packages 404 Not Found [IP: 91.189.92.188 80]
Some index files failed to download. They have been ignored, or old ones used instead.

when attempting to ping one of the addresses above (security.ubuntu.com) it goes to the same address. However when pinging security.ubuntu.com on my other computer it goes to this address instead: 91.189.92.167. As you can see these addresses are different. Somehow these addresses are hardcoded so that my lxde edition computer goes to the wrong IP address.

I've checked /etc/hosts and found nothing. Why would the update manager be going to the wrong IP address? I can't find out where they might be hardcoded.


I just did a sudo apt-get update and I still get the same problem in the update manager, only now it is with the new address. Oddly enough, pinging security.ubuntu.com still goes to the .166 ip.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
xenopeek
Level 25
Level 25
Posts: 29614
Joined: Wed Jul 06, 2011 3:58 am

Re: Update manager goes to wrong IP

Post by xenopeek »

Well, if you run "dig security.ubuntu.com" you can see that both .166 and the .167 servers are behind that name. If you do "dig archive.ubuntu.com" you can see the range of servers that are behind that name. Canonical is using multiple servers to handle the load; the .166 and .167 are mirrors of each other.

Checking in your browser http://91.189.92.167/ubuntu/dists/katya ... 6/Packages also gives you the not found error. So it is not the IP address that is wrong, but the URL.

The error is you have katya in the URL (a Linux Mint release name). As this is a Ubuntu repository, that should be natty (a Ubuntu release name).

Check your /etc/apt/sources.list. It should resemble the following, probably the lines in red have katya in your file instead of natty?
deb http://packages.linuxmint.com/ katya main upstream import
deb http://packages.linuxmint.com/ katya-lxde main upstream import
deb http://archive.ubuntu.com/ubuntu/ natty main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ natty-updates main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ natty-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ natty partner
deb http://extras.ubuntu.com/ubuntu natty main
deb http://packages.medibuntu.org/ natty free non-free


#deb http://archive.removed/ubuntu natty-removed apps
#deb http://archive.removed/ubuntu natty-removed games
Image
User avatar
xenopeek
Level 25
Level 25
Posts: 29614
Joined: Wed Jul 06, 2011 3:58 am

Re: Update manager goes to wrong IP

Post by xenopeek »

And to be sure, you posted this in the LMDE forums--but you are running Linux Mint 11 LXDE, right?
Image
westcoastsunset

Re: Update manager goes to wrong IP

Post by westcoastsunset »

xenopeek wrote:And to be sure, you posted this in the LMDE forums--but you are running Linux Mint 11 LXDE, right?
whoops, yeah, just noticed that, sorry.
westcoastsunset

Re: Update manager goes to wrong IP

Post by westcoastsunset »

This is my sources list:

# /etc/apt/sources.list

deb http://archive.ubuntu.com/ubuntu/ katya main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ katya-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ katya-updates main restricted universe multiverse
deb http://packages.linuxmint.com/ katya main upstream import
deb http://packages.linuxmint.com/ katya-lxde main upstream import
deb http://archive.ubuntu.com/ubuntu/ natty main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ natty-updates main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ natty-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ natty partner
deb http://extras.ubuntu.com/ubuntu natty main
deb http://packages.medibuntu.org/ natty free non-free

# deb http://archive.removed/ubuntu natty-removed apps
# deb http://archive.removed/ubuntu natty-removed games

FYI: I have not edited this file at all. this is how it was since installing from linuxmint-11-lxde-cd-32bit.iso
User avatar
xenopeek
Level 25
Level 25
Posts: 29614
Joined: Wed Jul 06, 2011 3:58 am

Re: Update manager goes to wrong IP

Post by xenopeek »

Run:

Code: Select all

gksudo gedit /etc/apt/sources.list
And put a # in front of each of the first three lines, as in following. As you can see, the lines in red (the ones that are wrong) are repeated later with the correct release name in blue. Commenting out these first three lines should fix your issue.
#deb http://archive.ubuntu.com/ubuntu/ katya main restricted universe multiverse
#deb http://security.ubuntu.com/ubuntu/ katya-security main restricted universe multiverse
#deb http://archive.ubuntu.com/ubuntu/ katya-updates main restricted universe multiverse

deb http://packages.linuxmint.com/ katya main upstream import
deb http://packages.linuxmint.com/ katya-lxde main upstream import
deb http://archive.ubuntu.com/ubuntu/ natty main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ natty-updates main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ natty-security main restricted universe multiverse

deb http://archive.canonical.com/ubuntu/ natty partner
deb http://extras.ubuntu.com/ubuntu natty main
deb http://packages.medibuntu.org/ natty free non-free

# deb http://archive.removed/ubuntu natty-removed apps
# deb http://archive.removed/ubuntu natty-removed games
Image
westcoastsunset

Re: Update manager goes to wrong IP

Post by westcoastsunset »

Yes, that seems to have fixed the issue, thanks.
subeh.sharma

Re: Update manager goes to wrong IP

Post by subeh.sharma »

Best method to getaway from this problem is to install fix404. You can read about it more here:

Under Ubuntu, the APT package index is a database containing all packages of repositories (PPAs) defined in the /etc/apt/sources.list file. To update this database after adding some repositories, we need to use this command from the Terminal:

sudo apt-get update

Sometimes, when running the command given above, we get error messages (404 Not Found) that are the result of wrong PPAs, which may slow down the update process via the Terminal. In fact, this 404 Not Found error messages are not harmful at all, but you can use Fix404 to detect and remove these PPAs.

To install Fix404 on Ubuntu 11.04, launch the Terminal and run these commands:

sudo apt-add-repository ppa:lkjoel/fix404
sudo apt-get update
sudo apt-get install fix404

To install on Ubuntu 10.10/10.04, download this deb package here.

To start using Fix404, run this command (root privileges required):

sudo fix404

Then follow displayed instructions to disable PPAs causing the 404 Not Found Error.

http://www.upubuntu.com/2011/07/remove- ... 4-not.html
Locked

Return to “LMDE Archive”