hornett Posted March 3, 2004 Share Posted March 3, 2004 Instead of the usual list of downloads flying past, all I get now is [root@hive etc]# apt-get update Fetching list of repositories/mirrors... E: Failed to fetch mirror list file: Normally even if a server is offline or I am not connected to the net, I get individual errors about the servers. I did notice that the time previously that I run apt-get, it updated itself. It seems to have ruined it's /etc/apt/apt.conf file or something. I checked the contents from my backup of the file (learned from experience here) against the apt.conf file (which was still as before) and checked the sources.list file (which was also still as before). I noticed some strange files in the apt directory named apt.conf.rpmnew and sources.list.rpmnew. These were empty files with "// User customizable configuration goes here" at the top, so I copied the contents of my apt.conf and sources.list into these new files repectively, but to no avail. It used to work fine, I have not adjusted any system settings inbetween running apt-get last time and this time. How can I uninstall this new version of apt without being able to get into it (no apt-get commands work)? I tried to remove it by [root@hive linux-drivers]# rpm -e apt-0.5.15cnc1-0.fdr.3.1.i386.rpm error: package apt-0.5.15cnc1-0.fdr.3.1.i386.rpm is not installed Which is really helpful. What should I do + why would apt all of a sudden go wrong? I was under the impression it was safe to run apt-get dist-upgrade without worring about having to manually change any files - obviously I was mis-informed. :cry: Link to comment Share on other sites More sharing options...
colordeficiency Posted March 4, 2004 Share Posted March 4, 2004 the RPMNEW files are just updated list by RPM. What's in ur source.list? to erase maybe just use rpm -e apt rpm -qa |sort|less to check the filename Why not use yum, much easier. A question, how did you change your localhostname to hive? I tried editiing the hosts but to no avail. Link to comment Share on other sites More sharing options...
hornett Posted March 4, 2004 Author Share Posted March 4, 2004 Thanks, sorted it :) I set the host name in the installer, sorry I don't know how to change it. Link to comment Share on other sites More sharing options...
markwolfe Veteran Posted March 4, 2004 Veteran Share Posted March 4, 2004 Thanks, sorted it :) I set the host name in the installer, sorry I don't know how to change it. man hostname This will show you hot to change the hostname, domain name, and more. :yes: Link to comment Share on other sites More sharing options...
Fred Derf Veteran Posted March 4, 2004 Veteran Share Posted March 4, 2004 Instead of the usual list of downloads flying past, all I get now is [root@hive etc]# apt-get update Fetching list of repositories/mirrors... E: Failed to fetch mirror list file: It would seem that your list of repositories is out of date. I don't know where the file is for manual editing but Synaptic allows you to add or remove repositories. Link to comment Share on other sites More sharing options...
hornett Posted March 4, 2004 Author Share Posted March 4, 2004 ^^It is /etc/apt/sources.list. The file was there and was working fine, I think the version of apt that it updated itself to had a problem. Synaptic doesn't work properly through a proxy. Link to comment Share on other sites More sharing options...
Fred Derf Veteran Posted March 4, 2004 Veteran Share Posted March 4, 2004 Synaptic doesn't work properly through a proxy. Neither, it would seem, does the latest apt... Link to comment Share on other sites More sharing options...
hornett Posted March 4, 2004 Author Share Posted March 4, 2004 That could be it! It is strange that it was trying to fetch a list of repositories or mirrors for itself...I've only ever seen it talk to the ones I've specified in the past. Link to comment Share on other sites More sharing options...
Recommended Posts