Update manager goes to wrong IP

Post your update and upgrade related errors here
Forum rules
Before you post please read this

Update manager goes to wrong IP

Postby westcoastsunset on Mon Oct 24, 2011 1:45 pm

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.
westcoastsunset
Level 1
Level 1
 
Posts: 18
Joined: Mon Jul 18, 2011 12:17 pm

Linux Mint is funded by ads and donations.
 

Re: Update manager goes to wrong IP

Postby xenopeek on Mon Oct 24, 2011 2:03 pm

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-security/main/binary-i386/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.getdeb.net/ubuntu natty-getdeb apps
#deb http://archive.getdeb.net/ubuntu natty-getdeb games
User avatar
xenopeek
Level 21
Level 21
 
Posts: 14987
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: Update manager goes to wrong IP

Postby xenopeek on Mon Oct 24, 2011 2:07 pm

And to be sure, you posted this in the LMDE forums--but you are running Linux Mint 11 LXDE, right?
User avatar
xenopeek
Level 21
Level 21
 
Posts: 14987
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: Update manager goes to wrong IP

Postby westcoastsunset on Mon Oct 24, 2011 2:24 pm

Vincent Vermeulen 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
Level 1
Level 1
 
Posts: 18
Joined: Mon Jul 18, 2011 12:17 pm

Re: Update manager goes to wrong IP

Postby westcoastsunset on Mon Oct 24, 2011 2:32 pm

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.getdeb.net/ubuntu natty-getdeb apps
# deb http://archive.getdeb.net/ubuntu natty-getdeb games

FYI: I have not edited this file at all. this is how it was since installing from linuxmint-11-lxde-cd-32bit.iso
westcoastsunset
Level 1
Level 1
 
Posts: 18
Joined: Mon Jul 18, 2011 12:17 pm

Re: Update manager goes to wrong IP

Postby xenopeek on Mon Oct 24, 2011 3:02 pm

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.getdeb.net/ubuntu natty-getdeb apps
# deb http://archive.getdeb.net/ubuntu natty-getdeb games
User avatar
xenopeek
Level 21
Level 21
 
Posts: 14987
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: Update manager goes to wrong IP

Postby westcoastsunset on Mon Oct 24, 2011 3:32 pm

Yes, that seems to have fixed the issue, thanks.
westcoastsunset
Level 1
Level 1
 
Posts: 18
Joined: Mon Jul 18, 2011 12:17 pm

Re: Update manager goes to wrong IP

Postby subeh.sharma on Thu Nov 10, 2011 6:51 am

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
User avatar
subeh.sharma
Level 2
Level 2
 
Posts: 52
Joined: Fri Jul 15, 2011 5:43 am

Linux Mint is funded by ads and donations.
 

Return to Update/Upgrade Issues

Who is online

Users browsing this forum: No registered users and 1 guest