[SOLVED] Missing media.cfg file

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

[SOLVED] Missing media.cfg file

Postby janpihlgren » Dec 7th, '13, 09:24

When I try to add mediasources with the command
urpmi.addmedia --distrib --mirrorlist
I get an errormessages rsync failed: ended with 10
can't read distributionmedia (can't find media.cfg file)

My questions are - Where do I locate the file? How do I repear media.cfg file?
I have tried to use the command rpm --rebuilddb which doesn't create media.cfg file.
I have also tried to use Mageia ControlCentral to add media with no success.
User avatar
janpihlgren
 
Posts: 294
Joined: Mar 30th, '11, 12:23
Location: Marsta, Sweden

Re: Missing media.cfg file

Postby doktor5000 » Dec 7th, '13, 09:39

janpihlgren wrote:I have tried to use the command rpm --rebuilddb which doesn't create media.cfg file.

rpm --rebuilddb rebuilds your local RPM packages database, it has nothing to do with urpmi repositories at all.

Maybe it chooses a mirror which is currently not in sync.
Try like shown here, either point directly to the mirrorlist or directly point to a mirror.
https://wiki.mageia.org/en/Mageia_3_Rel ... _.28CLI.29

Code: Select all
urpmi.addmedia --distrib --mirrorlist http://mirrors.mageia.org/api/mageia.3.$ARCH.list

Code: Select all
urpmi.addmedia --distrib 'ftp://ftp.belnet.be/mirror/mageia/distrib/$VERSION/$ARCH'
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18068
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

SOLVED Re: Missing media.cfg file

Postby janpihlgren » Dec 7th, '13, 09:49

This is funny. After reboot the computer everything works. :oops:
User avatar
janpihlgren
 
Posts: 294
Joined: Mar 30th, '11, 12:23
Location: Marsta, Sweden


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest