Page 1 of 1

Unable to upgrade because of lack of rpmlib package

PostPosted: Aug 29th, '12, 21:29
by pahnin
I have just installed mageia 2 and want to upgrade to development version.
I was following the instructions given in the wiki, I have changed the repository information but the process doesnt continue because it could not find package rpmlib, I cannot even find the package to install from install or remove GUI app.
Where can I get this rpm?

Re: Unable to upgrade because of lack of rpmlib package

PostPosted: Aug 29th, '12, 23:26
by jkerr82508
The procedure is slightly different if you want to upgrade from Mageia 2:

http://article.gmane.org/gmane.linux.mageia.devel/18223

Jim

Re: Unable to upgrade because of lack of rpmlib package

PostPosted: Aug 29th, '12, 23:47
by alf
Or just wait a few days; the alpha release of MGA3 is coming soon.

Re: Unable to upgrade because of lack of rpmlib package

PostPosted: Aug 30th, '12, 14:36
by pahnin
I tried that too but for proceeding rpmlib couldnot be installed, and since I added cauldron repos I couldnot install any software every software requires rpmlib, I dont know why!
Is there anyway to revert the repos

Re: Unable to upgrade because of lack of rpmlib package

PostPosted: Aug 30th, '12, 15:28
by digigold
Have you successfully completed the /usr move?

Re: Unable to upgrade because of lack of rpmlib package

PostPosted: Aug 30th, '12, 15:34
by pahnin
/usr means creating symlinks or
the below given process?

Run urpmi --auto-update --skip '/filesystem|ncurses/' to install everything that can be installed. Some packages will not be installable! Do not be alarmed. To get all the RPMs cached locally for after you convert the filesystem, you can run an additional urpmi --auto-select command (the packages will fail to install, but that is expected).
Ensure that latest dracut is installed. Run urpmi dracut to make sure (it may have been excluded in the --auto-update if it was in a transaction with other packages that could not be installed).
Ensure that you do not have zapata installed (rpm -e zapata). These packages have conflicts not handled in the conversion routine.
Generate a new initrd and include the conversion script: dracut -f -a convertfs. Make sure you are currently running the latest kernel when you run this. If you have installed a newer kernel but not yet rebooted, then you will be generating an initrd for the current kernel, not the one you will use on next boot! Either adjust the command accordingly to include the initrd and kernel name specifically or just reboot first.
If you run lilo, make sure to tell it about the new initrd by running lilo
If you have /usr on a separate partition
Ensure there is enough free space to hold /bin, /sbin, /lib and /lib64 content.
If your /usr is mounted readonly, change your /etc/fstab to mount it rw.
Reboot.
At the bootloader prompt, edit the command line and append: rw rd.convertfs (without the quotes) to your command line and then boot.
Your system should boot as normal with a slight delay while content is migrated.
Once booted, install the remaining updates.
Finally regenerate the initrd again: dracut -f (some problems were found when going back into the initrd at shutdown/reboot if this stage was not done)

Re: Unable to upgrade because of lack of rpmlib package

PostPosted: Aug 30th, '12, 15:36
by pahnin
if symlinks had to be done, can you please explain how to do, where to put symlinks?

Re: Unable to upgrade because of lack of rpmlib package

PostPosted: Aug 30th, '12, 15:51
by digigold
Best thing to do is read Colin Guthrie's wiki on the /usr move here: https://wiki.mageia.org/en/Feature:UsrMove

Re: Unable to upgrade because of lack of rpmlib package

PostPosted: Aug 30th, '12, 15:58
by pahnin
Well, I read that many times, I'm asking because, I don't understand that. I'm not an expert, so please explain what to do.

Re: Unable to upgrade because of lack of rpmlib package

PostPosted: Aug 30th, '12, 16:12
by digigold
#1 Run urpmi --auto-update --skip '/filesystem|ncurses/' to install everything that can be installed. Some packages will not be installable! Do not be alarmed. To get all the RPMs cached locally for after you convert the filesystem, you can run an additional urpmi --auto-select command (the packages will fail to install, but that is expected).
#2 Ensure that latest dracut is installed. Run urpmi dracut to make sure (it may have been excluded in the --auto-update if it was in a transaction with other packages that could not be installed).
[/color[color=#FF4000]]#3 Ensure that you do not have zapata installed (rpm -e zapata). These packages have conflicts not handled in the conversion routine.
#4 Generate a new initrd and include the conversion script: dracut -f -a convertfs. Make sure you are currently running the latest kernel when you run this. If you have installed a newer kernel but not yet rebooted, then you will be generating an initrd for the current kernel, not the one you will use on next boot! Either adjust the command accordingly to include the initrd and kernel name specifically or just reboot first.
#5 If you run lilo, make sure to tell it about the new initrd by running lilo
#6 If you have /usr on a separate partition
A) Ensure there is enough free space to hold /bin, /sbin, /lib and /lib64 content.
B) If your /usr is mounted readonly, change your /etc/fstab to mount it rw.
#7 Reboot.
#8 At the bootloader prompt, edit the command line and append: rw rd.convertfs (without the quotes) to your command line and then boot.
#9 Your system should boot as normal with a slight delay while content is migrated.
#10 Once booted, install the remaining updates.
#11 Finally regenerate the initrd again: dracut -f (some problems were found when going back into the initrd at shutdown/reboot if this stage was not done)

Does the color help... :mrgreen:

Re: Unable to upgrade because of lack of rpmlib package

PostPosted: Aug 30th, '12, 16:14
by digigold
If you are still unsure about the above, you might want to avoid cauldron.

Re: Unable to upgrade because of lack of rpmlib package

PostPosted: Aug 30th, '12, 16:37
by pahnin
ok that means I dont have to create symlinks before this process, when I'm doing the above process, after 1st step it said couldnt install some packages because of rpmlib so that means I can proceed further. I'll try and let you know, thanx for the help

Re: Unable to upgrade because of lack of rpmlib package

PostPosted: Aug 30th, '12, 16:53
by digigold
No worries, happy to help. The only goofy thing that I've had happen is occasionaly if I install a KDE app from source, it occasionally sets up everything in /usr/local/share/foo/bar/ so I just setup a symbolic link for the directory. e.g.
Code: Select all
# ln -sv /usr/local/share/foo/bar /usr/share/foo/bar

Re: Unable to upgrade because of lack of rpmlib package

PostPosted: Aug 31st, '12, 00:22
by pahnin
I have continued with the procedure giiven in https://wiki.mageia.org/en/Feature:UsrM ... ease_Notes. but nothing changed I mean I rebooted with rw rd.convertfs option after generating initrd but I dont think it worked!! Still the same problem couldnt update because of lack of package rpmlib.

Re: Unable to upgrade because of lack of rpmlib package

PostPosted: Aug 31st, '12, 01:47
by Ken-Bergen
pahnin wrote: Still the same problem couldnt update because of lack of package rpmlib.
As there is no rpmlib package and never has been could you post the exact error message or a screen shot of it?

Also post the contents of /etc/urpmi/urpmi.cfg
In code tags please.

Re: Unable to upgrade because of lack of rpmlib package

PostPosted: Aug 31st, '12, 20:53
by pahnin
P.S: Since I can't post directly cause it has so many urls, I pasting it on pastebin. Thanks

This is cat /etc/urpmi/urpmi.cfg

http://pastebin.com/NFvscAME
#######################################################
after adding rw rd.convertfs to the boot command,
I tried updating with urpmi --auto-update
and this happend

http://pastebin.com/MHUqdt8j


Hope thats helpful to solve my problem

Re: Unable to upgrade because of lack of rpmlib package

PostPosted: Sep 1st, '12, 12:17
by pahnin
I found that rpmlib package here http://pkgs.org/download/kobo-rpmlib
but could not install it

Code: Select all
[root@localhost Downloads]# urpmi kobo-rpmlib-0.3.6-1.el6.noarch.rpm
A requested package cannot be installed:
kobo-rpmlib-0.3.6-1.el6.noarch (due to unsatisfied python(abi)[== 2.6])
Continue installation anyway? (Y/n) y

While some packages may have been installed, there were failures.
A requested package cannot be installed:
kobo-rpmlib-0.3.6-1.el6.noarch (due to unsatisfied python(abi)[== 2.6])
Continue installation anyway?