Page 1 of 1

[SOLVED] Missing media.cfg file

PostPosted: Dec 7th, '13, 09:24
by janpihlgren
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.

Re: Missing media.cfg file

PostPosted: Dec 7th, '13, 09:39
by doktor5000
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'

SOLVED Re: Missing media.cfg file

PostPosted: Dec 7th, '13, 09:49
by janpihlgren
This is funny. After reboot the computer everything works. :oops: