Page 1 of 2

When magic becomes tragic - upgrading from 1 to 2 [Solved]

PostPosted: May 26th, '12, 07:25
by msdobrescu
Hi,

The upgrade process from 1 to 2 simply crashed, similar to bug 5746.

I have started upgrading by booting the x64 DVD on my 64 bit system. It detected my Mageia 1 installation and offered the upgrade option.
I took the regular steps until I have tried to add a mirror. I couldn't. It couldn't bring the network card online - I would not complain about the ugly grapgics of the installer or the lack of obviuos way to diagniose. So I have skept the online mirror - which might be one reason of the fail.

Then, it took a looong time to scan the disk for packages (it is a 650GB disk with one partition, having tens of gigs free). Eventually, it stopped missing about 128 packages missing or needing (well, I could not write them down by hand as it tooks almost forever, but it started with some pango deps for some mga1 packages).
Initially, it reported more than 2400 packages to upgrade. Then I have tried and tried to make it upgrade, trying again and again - I've noticed it reported less and less packages to upgrade (I have hoped to be able to make it work eventually).

Every upgrade I have tried did not install the bootloader.
The major issue here is that I couldn't make network be up and running.

I have tried to see what it does as Live, if it could bring the network alive. I couldn't boot the live CD, no matter what.

Right now, I am upgrading using the Dual CD, that seems to have the libs requested by the x64 DVD. BTW, I have noticed that the x64 DVD has space left - there might have been added a live distro as well...

As the Dual CD seems to succeed, I will try to upgrade the remaining packages, as the Dual CD has 315 of almost 1600 reported to be needed...

My adventure on Mageia continues.

Stubbornly yours,
Mike

Re: When magic becomes tragic - upgrading from 1 to 2

PostPosted: May 26th, '12, 21:29
by msdobrescu
OK, I've got a working system now, but who knows what is left of my original one?

Samba was not upgraded, but deleted during the process.
Webmin too. Now, as I have reinstalled them, I am happy to see they are simply working, because it seems the configs were kept.

I couldn't start a KDE from the boot until I have manually selected the left 1 packages and uninstall/reinstall the 2 ones.
... and it didn't still work until I have installed the nVidia non-free drivers. I.e., I had to start the X from the command line otherwise.

The upgrade was not right. I have to go and find all the 1 left packages and replace them. Awful.

Anyway, the OS runs smooth, I'm pretty pleased.

My advice for the future would be to have as much as possible on the DVD, including some popular non-free drivers.
It would have save me a lot of pain.

Now, I need to re-do some internet connection sharing for my Mageia machine, through a Sabayon 8 KDE. Any idea how could I configure IPTables for that?

Thank you.

Re: When magic becomes tragic - upgrading from 1 to 2

PostPosted: May 27th, '12, 12:36
by msdobrescu
OK, I have a question related to the packages: I have left MANY mga1 packages in the Software Management list. Is that expected? Could them be cleaned up? Is this related to the fact that I have a question icon in the tray, saying "No medium found. You must add some media through 'Software Media Manager'", although I have plenty there?

BTW, is there on this thread anybody else left? :D

Re: When magic becomes tragic - upgrading from 1 to 2

PostPosted: May 27th, '12, 12:58
by djennings
msdobrescu wrote:OK, I have a question related to the packages: I have left MANY mga1 packages in the Software Management list. Is that expected? Could them be cleaned up? Is this related to the fact that I have a question icon in the tray, saying "No medium found. You must add some media through 'Software Media Manager'", although I have plenty there?

BTW, is there on this thread anybody else left? :D


Could it be you still have some mga1 repositories defined?
And is your version number up to date? You should have mageia-release-common-2-2.mga2 installed

Re: When magic becomes tragic - upgrading from 1 to 2

PostPosted: May 27th, '12, 13:28
by msdobrescu
For sure, the package manager shows mga2 repos only. The Mageia Online is mga2, but it still says I have NO repos.
This is curious.

mageia-release-common-2-2.mga2 seems installed.

Anyway, the upgrading process was messy, due to many installed packages missing from the DVD medium.

Re: When magic becomes tragic - upgrading from 1 to 2

PostPosted: May 27th, '12, 14:40
by msdobrescu
Checking the mirrors, revealed that numerous mga1 packages are on the v2 too.

Re: When magic becomes tragic - upgrading from 1 to 2

PostPosted: May 27th, '12, 17:05
by msdobrescu
Anyway, lots of mga1 that should have been replaced are still in the list.

Re: When magic becomes tragic - upgrading from 1 to 2

PostPosted: May 27th, '12, 17:32
by msdobrescu
Is there a way to query the database in order to get what mga1 only packages were left in the system?

Re: When magic becomes tragic - upgrading from 1 to 2

PostPosted: May 27th, '12, 17:40
by djennings
Code: Select all
rpm -qa | grep mga1

Re: When magic becomes tragic - upgrading from 1 to 2

PostPosted: May 27th, '12, 19:08
by msdobrescu
Thanks, but, as I've told, if you look in a mirror or on the DVD, you'll see packages included in the Mageia 2 release and being 'mga1'.
This will select these files too. I wish to make a diff between the mga1 I have and mga1 I should have (i.e. being released with Mageia 2 too, which I want to keep).

Re: When magic becomes tragic - upgrading from 1 to 2

PostPosted: May 27th, '12, 22:03
by doktor5000
There was no time and resources to do a full rebuild of the distro before release, so there are still many .mga1 packages there, but they should still work. If there are issues with those packages, report them so we can put out updates for those. As for the upgrade, even a DVD has only limited space, and the full repos are like ~65GB so only a fraction of all packages can be packed on the DVD. You should have either upgraded via replacing your urpmi repositories or have done a fresh install, but keeping your /home.
That much cleaner, faster and more hassle-free in my opinion.

Re: When magic becomes tragic - upgrading from 1 to 2

PostPosted: May 27th, '12, 23:32
by msdobrescu
I am sure there is a tremendous work involved. Imagine this: I have upgraded from Mandriva, having similar issues, now to Mageia 2. It still works fine. Great work!
The issue is with the packages remaining from Mageia 1 and not upgraded. I would like to detect them and remove them, in order to avoid issues in future.

Re: When magic becomes tragic - upgrading from 1 to 2

PostPosted: May 28th, '12, 01:32
by doktor5000
djennings wrote:
Code: Select all
rpm -qa | grep mga1

will give you the list, so you could try something like
Code: Select all
urpme $(rpm -qa | grep mga1)
but i think that would only do damage, and not help at all.

But, i'll ask again, is there some particular problem with one of the mga1 packages?

Re: When magic becomes tragic - upgrading from 1 to 2

PostPosted: May 28th, '12, 08:18
by msdobrescu
Hello,

Please excuse me for replying so late.
Old and new packages, all mixed together, resulted in a usable system.
Regarding the OS, one issue I've had: my system had nvidia non-free driver installed, which could not build against the new kernel.
So, I could not log into KDE until I have updated it. Because of upgrading from the DVD, it was not provided, which, I think, should have been - it is a great probability to need the non-free drivers for nVidia or Ati.
Another issue, was that the DVD lacked some packages (about 128, but I couldn't get the list saved, unless you know some place on the disk where I could find the log of the upgrades). I've got the files fine upgrading with the dual CD. Then I've continued with the DVD.

So, it works fine now. I need a good cleanup only. I love this system.

Re: When magic becomes tragic - upgrading from 1 to 2

PostPosted: May 28th, '12, 09:28
by isadora
Image

Thanks in advance!!!

Re: When magic becomes tragic - upgrading from 1 to 2

PostPosted: May 28th, '12, 12:22
by doktor5000
msdobrescu wrote:Regarding the OS, one issue I've had: my system had nvidia non-free driver installed, which could not build against the new kernel.
So, I could not log into KDE until I have updated it. Because of upgrading from the DVD, it was not provided, which, I think, should have been - it is a great probability to need the non-free drivers for nVidia or Ati.


Documented in Errata: https://wiki.mageia.org/en/Mageia_2_Err ... etary_card

For your mentioning of upgrading via dualarch CD, the DVD does contain much more packages than dualarch CD, so i don't know how the dualarch cd could do a better upgrade without internet connection than the DVD, probably you just confused something there.

Re: When magic becomes tragic - upgrading from 1 to 2

PostPosted: May 28th, '12, 13:26
by msdobrescu
Nope, I do not confuse anything. The DVD did not upgrade due to lacking about 128 packages. The dual managed to upgrade. Maybe the dual arch ignored them. The dual created a working system having enough packages upgraded, probably, in order to work. The DVD just stopped.

Re: When magic becomes tragic - upgrading from 1 to 2

PostPosted: May 28th, '12, 14:54
by doktor5000
Ok, whatever you say.
Apart from that you still didn't mark the thread as [SOLVED].

Re: When magic becomes tragic - upgrading from 1 to 2

PostPosted: May 28th, '12, 14:58
by msdobrescu
Don't shoot me, I will. When I cleanup my system. I will manage to compare the packages if I have a full distro mirror. Should I hope it is everywhere already fully deployed? Or do you recommend a specific one?
Regarding this mark. I wonder why isn't there a way to do it by a checkbox?

Re: When magic becomes tragic - upgrading from 1 to 2

PostPosted: May 28th, '12, 15:03
by doktor5000
msdobrescu wrote:Don't shoot me, I will. When I cleanup my system. I will manage to compare the packages if I have a full distro mirror. Should I hope it is everywhere already fully deployed? Or do you recommend a specific one?
Regarding this mark. I wonder why isn't there a way to do it by a checkbox?


What exactly do you wantto compare against what? Related, i don't know what you mean with that checkbox thing.
Also mostly all mirrors should be fully synced by now, as it doesn't take that long to resign all the cauldron packages and hard-link them somewhere else on the mirror.

Re: When magic becomes tragic - upgrading from 1 to 2

PostPosted: May 28th, '12, 15:10
by msdobrescu
I will simply list the packages in a mirror (plain text) and compare them to the (plain text) of packages reported in my system. So, I will detect whatever was left by the unfinished upgrade. I will try to match, then, the old version files (Mageia 1) with the Mageia 2 files, if possible. Eventually, I will have no "unupgraded" packages. Such diff would have been a nice and useful feature of the Software Manager (meaning display of the old version remains...).

The checkbox is related to the forum. I've seen this feature: you solve the thread by checking it as such, not adding the "[Solved]" string in the topic's subject. Wow, I see now, I am thinking to this :lol: .

Re: When magic becomes tragic - upgrading from 1 to 2

PostPosted: May 28th, '12, 15:30
by marja
msdobrescu wrote:Don't shoot me, I will. When I cleanup my system. I will manage to compare the packages if I have a full distro mirror. Should I hope it is everywhere already fully deployed? Or do you recommend a specific one?
Regarding this mark. I wonder why isn't there a way to do it by a checkbox?


You can look at the packages here, choose the "core" ones (the nonfree and tainted ones aren't upgraded to the nonfree and tainted versions till after you reboot and enable those repositories in MCC). I doubt it is useful, though, because the dual cd uses the same drakx-installer-stage2 as is used by the DVD. The DVD contains the packages on the dual iso + many more.

Did you check the md5sum of your DVD?

Edit: the link ftp://mageia.webconquest.com/distrib/2/x86_64/media/

Re: When magic becomes tragic - upgrading from 1 to 2

PostPosted: May 28th, '12, 15:36
by msdobrescu
Sorry, I apologize to everybody for being unclear.

I was telling the story of the upgrade. Now, I don't need or use the CD/DVDs. I can comfortably use any urpmi or gui, as my OS work fine. I'll cleanup by hand.
And yes, at the upgrade time, I have checked the DVD/CD (I always do, it's a habit).
I've seen that some packages were moved from tainted to core. But I'll manage.
I am impressed by the provided attention and help. Thank you.

Re: When magic becomes tragic - upgrading from 1 to 2

PostPosted: May 28th, '12, 16:33
by marja
msdobrescu wrote:I've seen that some packages were moved from tainted to core.


Yes, your system was upgraded with the free versions. You can pick the tainted and non free versions after enabling the related repositories.

Cheers and thanks for the thanks ;)
marja

Re: When magic becomes tragic - upgrading from 1 to 2

PostPosted: May 29th, '12, 07:53
by msdobrescu
So far so good.
Few things to note:
1. In the Software Manager do not appear some packages of mga2, but the old one is there listed. It doesn't happen on all the packages. If I remove the old package, the new one becomes visible. If I look for 'perl', will have many 'perl-*' packages, the old ones appear in list, some new ones not. If I check and find some that have newer version as mga2, and I look for them specifically, with the full name (I mean the words, not the versions), both packages magically appear.
2. When I remove the old package, that is not on version 2 anymore and has a newer version as mga2, some mga2 packages will be removed as dependents, and I have to re-install them. When I reinstall them, they request the correct version of the package. The old package disappears from the list forever.
3. The updater still reports no update media, although there are all defined.
4. Is there a feature of the Software Manager to list packages not belonging to any media defined? Would be useful to list there the left packages after upgrade, or the 3rd party manually added ones.

What do you think of these?

Thank you.