Page 1 of 1

[SOLVED] Switching from RC to stable

PostPosted: Jun 2nd, '11, 18:41
by martinw
Could someone advise on the best way to switch an RC installation to use the stable repositories. Based on Anne's post on switching to cauldron, I thought I could do this by:
Code: Select all
urpmi http://distrib-coffee.ipsl.jussieu.fr/pub/linux/Mageia/distrib/1/x86_64/media/core/release/mageia-release-common-1-2.mga1.x86_64.rpm

but that just resulted in the following error messages:
Code: Select all
removing package basesystem-minimal-1-3.mga1.x86_64 will break your system
The installation cannot continue because the following packages
have to be removed for others to be upgraded:
basesystem-1-3.mga1.x86_64
 (due to missing basesystem-minimal)
basesystem-minimal-1-3.mga1.x86_64
 (due to unsatisfied mageia-release >= 1)
drakconf-12.21.6-1.mga1.noarch
 (due to missing mandriva-release)
mageia-release-Default-1-0.9.mga1.x86_64
 (due to conflicts with mageia-release-common-1-2.mga1.x86_64)
openoffice.org3.3-mandriva-menus-3.3-9556.noarch
 (due to missing mandrake-release)
openoffice.org3.3-redhat-menus-3.3-9556.noarch
 (due to missing redhat-release)
rpm-build-4.8.1-10.mga1.x86_64
 (due to unsatisfied rpm-mageia-setup-build >= 1.34)
rpm-mageia-setup-build-1.130-1.mga1.x86_64
 (due to missing mageia-release)

Re: Switching from RC to stable

PostPosted: Jun 2nd, '11, 19:17
by dglent
The only way i know to do it is to change the sources from cauldron to 1
This i did in my system

Re: Switching from RC to stable

PostPosted: Jun 3rd, '11, 09:53
by martinw
Thanks dglent. I was hoping there was a simpler way than manually changing all the sources.

Re: Switching from RC to stable

PostPosted: Jun 3rd, '11, 10:37
by dglent
You can delete the sources and add the new automatically by the button on the right 'Add' and after 'full set of sources'
'i did that in my system and worked. It added the 1 sources and not the cauldron's

Re: Switching from RC to stable

PostPosted: Jun 3rd, '11, 19:11
by martinw
Hmm, that was the first thing I tried, but I just got cauldron sources again. Just tried again, with the same result:
Code: Select all
# urpmq --list-url
Core media cdrom://x86_64/media/core
Core Release (distrib1) rsync://distrib-coffee.ipsl.jussieu.fr/pub/linux/Mageia/distrib/cauldron/x86_64/media/core/release
...

Time to start digging through the rpmdrake perl scripts to see how it decides on which sources to use, I guess.

Re: Switching from RC to stable

PostPosted: Jun 3rd, '11, 21:45
by ahmad
How do you add the sources?

Re: Switching from RC to stable

PostPosted: Jun 3rd, '11, 22:40
by martinw
Like dglent said, in MCC->Software Management->Configure media sources, deleted existing sources, then clicked on the 'Add' button and selected 'Full set of sources'. In MCC the sources are just shown as $MIRRORLIST, so I used urpmq to check what the URLs were.

Re: Switching from RC to stable

PostPosted: Jun 4th, '11, 00:34
by ahmad
The release notes are wrong https://bugs.mageia.org/show_bug.cgi?id=1568

You can add a mirror manually, via urpmi;
- go to http://mirrors.mageia.org/distrib
- make sure the first box is set to 1 , i.e Mageia 1
- select the arch. of your installation (i586 or x86_64) then click Submit Query
- from the list that'll appear, pick a mirror and add it
Code: Select all
urpmi.addmedia --distrib <mirror_url>

- make sure you have enough free disk space on the root / partition (or where ever /var is mounted), say 2-3GB
- upgrade:
Code: Select all
urpmi --auto-update -v

don't reboot until it's finished upgrading.

Edit: corrected typo in the urpmi.addmedia command line above.

Re: Switching from RC to stable

PostPosted: Jun 4th, '11, 21:17
by martinw
Thanks Ahmad, I thought there must be an easy way to do this. The only slight annoyance is that I had to uninstall OpenOffice first and reinstall it afterwards, because the auto update wanted to replace it with LibreOffice. Hope this isn't going to happen every time I update!

In case anyone else wants to follow these instructions, there is a small typo. The first command should be:
Code: Select all
urpmi.addmedia --distrib <mirror_url>

Re: Switching from RC to stable

PostPosted: Jun 5th, '11, 06:07
by ahmad
martinw wrote:The only slight annoyance is that I had to uninstall OpenOffice first and reinstall it afterwards, because the auto update wanted to replace it with LibreOffice. Hope this isn't going to happen every time I update!

It will happen every time you update, libreoffice packages obsolete openoffice.org; if you really wanna stick with openoffice.org, you'll have to add libreoffice to the urpmi skip.list:
Code: Select all
su
echo "/^libreoffice/" >> /etc/urpmi/skip.list


Out of curiosity, any reason to prefer openoffice.org to libreoffice? any missing features.. etc?

Re: Switching from RC to stable

PostPosted: Jun 5th, '11, 12:09
by martinw
Thanks for the info, Ahmad. I'd forgotten about the urpmi skip list - haven't needed to use it for a long time!

My primary reason for prefering OpenOffice to LibreOffice is that LibreOffice has a significant bug in PDF export that I can't work round (I have reported this upstream - we'll see if it ever gets fixed). But also past experience is that the vanilla build from OpenOffice.org has always been more stable than the patched versions provided in Linux distros.