media.cfg file missing - SOLVED

This forum is dedicated to advanced help and support :

Ask here your questions about advanced usage of Mageia. For example you may post here all your questions about network and automated installs, complex server configurations, kernel tuning, creating your own Mageia mirrors, and all tasks likely to be touchy even for skilled users.

media.cfg file missing - SOLVED

Postby drichard58 » Dec 11th, '14, 04:22

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?
Last edited by drichard58 on Jan 4th, '15, 04:10, edited 1 time in total.
drichard58
 
Posts: 42
Joined: May 26th, '12, 04:09

Re: media.cfg file missing

Postby benmc » Dec 11th, '14, 05:36

hi

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

and post the output

thanks
benmc
 
Posts: 1211
Joined: Sep 2nd, '11, 12:45
Location: Pirongia, New Zealand

Re: media.cfg file missing

Postby doktor5000 » Dec 11th, '14, 08:17

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
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: 18034
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: media.cfg file missing

Postby drichard58 » Dec 31st, '14, 03:43

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.
drichard58
 
Posts: 42
Joined: May 26th, '12, 04:09

Re: media.cfg file missing

Postby isadora » Dec 31st, '14, 09:38

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. ;)
..........bird from paradise..........

Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
—Antoine de Saint-Exupéry
User avatar
isadora
 
Posts: 2763
Joined: Mar 25th, '11, 16:03
Location: Netherlands


Return to Advanced support

Who is online

Users browsing this forum: No registered users and 1 guest