Wednesday, December 29, 2010

Recharge By Debit Card

Error "unable to parse media.cfg" in Mandriva

Status:
Each time you want to use urpmi on Mandriva get errors:


Unable to parse media.cfg
Unable to add medium
Examples problem:

[root @ localhost src] # urpmi.addmedia - distrib - mirrorlist 'http://api.mandriva.com/mirrors/basic.2009.1.i586.list' Unable to parse media. cfg
Unable to add medium

Solution:
The solution is to use the hand mirror when running urpmi, the best place to find the mirror list is: http://easyurpmi.zarb.org
. On this website you must tell your exact distribution by clicking on the text: "Switch to manual mirror selection".
To know the exact version of the distribution of Mandriva you are using check the contents of / etc / redhat-release (cat / etc / redhat-release). In my case I am using Mandriva 2009.1 i586 solved the previous problem using the command:
[root @ localhost src] # urpmi.addmedia - distrib http://mirror.fis.unb.br/pub/linux/ MandrivaLinux/official/2009.1/i586
further recommend using the following two commands in case of any problems when running the above:
[root @ localhost src] # rm-fv / var / cache / urpmi / mirrors.cache
[root @ localhost src] # urpmi.removemedia
-a Note that is a manual mirror
Luck I hope this helped,

0 comments:

Post a Comment