Page 1 of 1

media.cfg file missing - SOLVED

PostPosted: Dec 11th, '14, 04:22
by drichard58
I have been running fine for a while and noticed that I had some updates that were needed. I tried installing them from the MCC, but kept getting errors. I ran urpmi.addmedia --distrib --mirrorlist and received an error:
rsynch failed: exited with 35
unable to access the distribution medium (no media.cfg file found)
unable to add medium

I searched this forum and the only post I found suggested I do what I already did.

Any suggestions?

Re: media.cfg file missing

PostPosted: Dec 11th, '14, 05:36
by benmc
hi

Can you try
Code: Select all
urpmi.update -a

and post the output

thanks

Re: media.cfg file missing

PostPosted: Dec 11th, '14, 08:17
by doktor5000
benmc wrote:
Code: Select all
urpmi.update -a

How is that supposed to help when adding new repositories failed already due to mirror being out of sync? Also, this is done regularly every few hours in the background ...

drichard58 wrote:I have been running fine for a while and noticed that I had some updates that were needed. I tried installing them from the MCC, but kept getting errors. I ran urpmi.addmedia --distrib --mirrorlist and received an error:
rsynch failed: exited with 35
unable to access the distribution medium (no media.cfg file found)
unable to add medium


Best do the following: Remove all your repositories, and add a complete set of new ones, but don't use mirrorlist automatism.
Check https://wiki.mageia.org/en/Software_man ... dia_source

You can also do it using commandline, as an example I'm using ftp.snt.utwente.nl as mirror. Feel free to use another one that's near you and up-to-date according to http://mirrors.mageia.org/status

Code: Select all
urpmi.removemedia -a
urpmi.addmedia --distrib --wget 'ftp://ftp.snt.utwente.nl/pub/os/linux/mageia/distrib/$RELEASE/$ARCH'

to also enable nonfree and tainted repositories, do afterwards
Code: Select all
urpmi.update --no-ignore "Tainted Release" && urpmi.update --no-ignore "Tainted Updates" && urpmi.update --no-ignore "Nonfree Release" && urpmi.update --no-ignore "Nonfree Updates" && urpmi.update -av

Re: media.cfg file missing

PostPosted: Dec 31st, '14, 03:43
by drichard58
Sorry it took so long to reply. Had other issues to deal with.

Thanks, Doktor. Your suggestion to remove all the media and select the options to add from a specific source seems to have done the trick.

Re: media.cfg file missing

PostPosted: Dec 31st, '14, 09:38
by isadora
Please don't forget to mark the topic [SOLVED].
You can do so, by editing the subject/title in the first message in this topic.
Write [SOLVED] to the left of subject/title, thanks ahead. ;)