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.
Update manager goes to wrong IP
Forum rules
LMDE 2 has reached end of support as of 1-1-2019
LMDE 2 has reached end of support as of 1-1-2019
Update manager goes to wrong 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.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: Update manager goes to wrong IP
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?
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
Re: Update manager goes to wrong IP
And to be sure, you posted this in the LMDE forums--but you are running Linux Mint 11 LXDE, right?
Re: Update manager goes to wrong IP
whoops, yeah, just noticed that, sorry.xenopeek wrote:And to be sure, you posted this in the LMDE forums--but you are running Linux Mint 11 LXDE, right?
Re: Update manager goes to wrong IP
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
# /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
Re: Update manager goes to wrong IP
Run:
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.
Code: Select all
gksudo gedit /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
Re: Update manager goes to wrong IP
Yes, that seems to have fixed the issue, thanks.
Re: Update manager goes to wrong IP
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
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