Yum could not retrieve mirrorlist and Add/Remove Software no package cache is available on Fedora 10 system



Computer Configuration GNU Linux Fedora using Linux Command

 

   Add/remove Software tool and yum software package manager managers use yum repository setting to update from Fedora repository server of Fedora update server.  The setting of yum repos located under /etc/yum.repos.d directory.  The articel example below try to explain why you get the Yum could not retrieve mirrorlist and Add/Remove Software no package cache is available whenyou try to upgrade or install sing the Add/Remove Software tool and using Yum tool on Fedora 10 system

 

Yum could not retrieve mirrorlist.

 

The example below show, yum error when to install Fedora software package or error when you want to upgrade Fedora software package on Fedora 10 system.

[fedora10@fedora ~]$ su - -c "yum install squid"

Password:   <-- key in root user password here and hit Enter key

Loaded plugins: refresh-packagekit

Could not retrieve mirrorlist http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-10&arch=i386 error was

[Errno 4] IOError: <urlopen error (-2, 'Name or service not known')>

Error: Cannot retrieve repository metadata (repomd.xml) for repository: fedora. Please verify its path and try again

[fedora10@fedora ~]$

 

Add/Remove Software no package cache is available.

 

If you try to upgrade or install Fedora software package using Add/Remove Software on Fedora 10 and you get the error message something like figure below

Yum could not retrieve mirrorlist and Add/Remove Software no package cache is available on Fedora 10

No package cache is available.

 

The package list needs to be rebuilt.

This should have been done by the backend automatically.

 

More details

Cannot retrieve repository metadata (repomd.xml) for repository: fedora. Please verify its path and try again

 

Yum could not retrieve mirrorlist and Add/Remove Software error solution.

 

1.  Try connect to internet.  The Add/Remove Program and yum package manager managers could not work without internet connection.  Trouble shoot network connection and connect to internet to install or upgrade Fedora software.

 

2.  If you do not have any available internet connection, use the Fedora 10 installation DVD as your software package installation source.  The article on How to use Fedora 10 installation DVD to install Fedora 10 software package, can help you to setup Fedora 10 installation DVD as Fedora 10 installation repository.

 

3.  Then make sure to remove all yum cache, as shown on command example below.  Then after remove all yum cache, you can start upgrade or install Fedora 10 software package using Add/Remove Software or using yum package manager managers.

[fedora10@fedora ~]$ su - -c "yum clean all"

Password:   <-- key in root user password here and hit Enter key

Loaded plugins: refresh-packagekit

Cleaning up Everything

[fedora10@fedora ~]$

 




2 comments:

tim WIlloughby said...

Hi - Have all of those dialogue boxes.. have an internet connection - as am typing this.. have Fedora 11 - have no ability to update - the repo URLs all connect to real places in the browser - I do connect through a proxy server- does that have to be hard coded somewhere to get the sofware update service to pick it up?

Jason said...

Sorry... I'm not able to guide you by step by step article right now... but i think this may look like the solution that you looking for...


from: http://www.fedoraforum.org/forum/showthread.php?t=742&page=3
Edit /etc/yum.conf and enter at the bottom of the [main] section:

proxy=http://ipaddressort

for example

proxy=http://10.1.2.10:3127

This setting is in the man page for yum.conf - man yum.conf.