Wade Curry wrote:

Phil Mullane said:


Hi

I'm having a problem with my mirror-list for apt.



I'm at work and can't look at the mirror-select stuff, but here are some tips that may help.



I recently updated the list and I am having a problem with not being
able to connect with one of the mirrors. The site is located at
217.29.50.3 and apt get update "hangs" on that mirror. I can't get
through when I add that to the address space on the browser so I think
the problem is on that end and not in my config.



This happens sometimes. And it's not unlikely that the people running the mirror already know about the problem. Sometimes you just need to give the DNS caches time to update to the newer IP address of the server.



When I run "apt-get update", it tries repeatedly and unsuccessfully to
get through. Finally it quits and doesn't update. When I open the file
it says "# DO NOT EDIT ME! Use "apt-get mirror-select" instead."
Well, I can't do "apt-get mirror-select" because it hangs on the
mirror that I can't get through to.



I'm not at all sure what file you mean, here. I edit my /etc/apt/sources.list file as needed to select what site to download from. You may find success by modifying that file, just don't forget to back it up before modifying it.



So I am stuck between not being able to edit the list to get rid of the
problem mirror and I can't run "update" because of the problem mirror.



Many config files contain warnings against manual editing. Often this isn't because editing the file ruins it, but because debconf will overwrite your changes anyway and you'll lose all your configuration work. In such a case, there is usually a place for the root user to store configuration parameters that debconf will respect and leave intact. Some of these are in /etc/defaults/

Hope that helps get you going again.

Wade Curry
syntaxman
            o       _      _          _
   _o      /\_    _ \\o   (_)\__/o   (_)
 _< \_    _>(_)  (_)/<_     \_| \    _|/'\/
(_)>(_)  (_)         (_)    (_)     (_)' _\o_




First of all, you CAN edit those files. Secondly it sounds like you have a version of apt that uses the mirror-select.lua extensions. They are intended to automate the initial configuration process by going to some preselected mirrors and running a script to configure the repository sources in /etc/apt/sources.list.d or possibly /etc/apt/mirror-select.d. In each of these directories, you'll find a list of files ending in .list containing the URIs for the various repositories apt is copnfigured to check for updates. These diredctories are often configured to take precedence over the /etc/apt/sources.list file, which will do the same job just fine. In fact, you may not even have a sources.list file in some cases.

A few ways to try to handle this:
One, do a search for the mirrors-select.lua script. I think it goes into /usr/lib/apt/scripts, but I haven't had a version of apt that used this for a while, so no promises. Look for the mirrors-select.lua script and rename it _mirrors-select.lua. This prevents apt from using it. You don't need it, and I personally find it more annoying than helpful. You should then be able to rename the /etc/apt/sources.list.d or mirror-select.d directories to something else(I usually just append .save to the filename.), and then copy the repository URIs from the files in these directories to the sources.list file(which you may have to create), excluding the mirror that's giving you a problem.


Two, get another version of apt that doesn't have the mirror-select extensions. I run FC3, so I use http://dag.wieers.com/home-made/apt/. If your distro uses RPMs I recommend it and the repository.

Three, look into the file in /etc/apt/source.list.d or /etc/apt/mirrors-select.d and see if you can identify the errant mirror and comment it out.

Hope this helps

Robert Donovan
Robert Donovan
--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-newbie

Reply via email to