[SOLVED] Online updating SuSE: kernel rpm could not be installed
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629
Rep:
Online updating SuSE: kernel rpm could not be installed
There was a kernel update included in my last three attempts of online updating SuSE 11.2 -- all of which which ended with an error, something like kernel rpm could not be installed (one can't copy that out of the YAST-window ).
The new kernel-relevant directories are there under /boot, the original 2.6.31.5 is gone. This produced lots of errors during the next boot until I manually re-assigned links in /lib/modules pointing to the new kernels. "uname -a" shows my old kernel (see also this thread: http://www.linuxquestions.org/questi...46#post3927146).
I ran "rpm --rebuilddb" and re-tried the installation, all to no avail.
In the message box during install came about 1,5 MB of errors, a brief extract is shown below:
Code:
Subprocess failed. Error: RPM fehlgeschlagen (<- failed): Free diskspace below /boot: 3782912 blocks
error: db4 error(-30987) from dbcursor->c_get: DB_PAGE_NOTFOUND: Requested page not found
error: error(-30987) getting "ddecac6d" records from Provideversion index
error: db4 error(-30987) from dbcursor->c_get: DB_PAGE_NOTFOUND: Requested page not found
error: error(-30987) getting "f5011f67" records from Provideversion index
error: db4 error(-30987) from dbcursor->c_get: DB_PAGE_NOTFOUND: Requested page not found
....
error: db4 error(-30977) from dbcursor->c_get: DB_RUNRECOVERY: Fatal error, run database recovery
error: error(-30977) getting "" records from Filedigests index
rpmdb: PANIC: fatal region error detected; run recovery
error: db4 error(-30977) from dbcursor->c_get: DB_RUNRECOVERY: Fatal error, run database recovery
error: error(-30977) getting "+��fF� V � � " records from Filedigests index
rpmdb: PANIC: fatal region error detected; run recovery
....
rpmdb: PANIC: fatal region error detected; run recovery
error: db4 error(-30977) from db->sync: DB_RUNRECOVERY: Fatal error, run database recovery
rpmdb: PANIC: fatal region error detected; run recovery
error: db4 error(-30977) from db->sync: DB_RUNRECOVERY: Fatal error, run database recovery
....
Any ideas how to proceed? Can one delete the rpm database and rebuild it from the online repositories?
Ok, just of the top o' my head, here...but it is possible to start the old kernel, assuming that you cannot launch it - if I hit the ball wrong, sorry...
Go su and edit /boot/grub/grub.conf (I assume that SUSE has a Grub, I use Fedora) to allow some timeout (it says timeout=0, possibly, edit that to the amount of seconds you need to select and launch the required kernel) and commend the "hidemenu" out. Restart and select the kernel previous to the "update" (using that word loosely - absolutely no malicious pleasure intended here, believe me) - that should get the girl up and running. Now, to remove the kernel in question. Have a look at this page http://www.cyberciti.biz/faq/debian-...ernel-command/
I hope this helps.
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629
Original Poster
Rep:
Quote:
Originally Posted by linusr@flanders
...but it is possible to start the old kernel, assuming that you cannot launch it...
I can start it, no sweat, the system is running okay. If you read the other thread (see link in my first post), you will see that it is rather the problem of updating my system.
Quote:
Originally Posted by linusr@flanders
...Restart and select the kernel previous to the "update" (using that word loosely - absolutely no malicious pleasure intended here, believe me) - that should get the girl up and running.
", so that could help, furthermore, I noticed this:
Quote:
"Requested page not found error: error(-30987) getting "ddecac6d" records from Provideversion index"
And I had this too, on my F8 going to F12. It could (*could*) mean that a server is either (temp) down or a repo is off-line/obsolete. You may have to tinker with your repos (Suse must have a folder like yum.repos.d where all repos are located) - each repo (a location where software & updates are stored on the net) has its own file, I'd find the one with the text "Provideversion" in it, and set it
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629
Original Poster
Rep:
Quote:
Originally Posted by linusr@flanders
...Hmm, I AM a new-be (only three-odd years, but Linux keeps surprising, so, one is always a newbe somewhere) so sorry abut wasting time...
Aren't we always?
I did already try "rpm --rebuild" but probably not as root . Will try soonest (tomorrow) again (first looking for /var/lib/rpm.old. If that is not there the problem seems pinpointed).
I doubt that it is a repository error. I repeatedly tried to install the rpm without downloading it anew and also with many weeks in between to tries of downloading and installing it.
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629
Original Poster
Rep:
Darn. I did it as root. But I can't find that rpm-database. There is a /var/lib/rpm/* directory with 33 items in it, but none look like it and there is no .old file either. Grrr .
Next I did a "rpm -qa | grep kernel" and got -- tataaa -- the newest and latest kernel which is most regrettably not installed. And I had not idea at all how to manually try to install it again. How does one install a packet which is already in the rpm database?
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629
Original Poster
Rep:
To answer my own question: yes, it would work (I just remembered doing this years and years ago). But it would overwrite (or possibly install the new along) the old kernel with no further notice.
To avoid this, a true installation is necessary, since an installation (or rather YAST) adds a stanza for the new kernel to the entries in /boot/grub/menu.lst it leaves the old kernel and its libraries intact (just creating symbolic links) and so can be undone if necessary.
The reason behind all this trouble:
I had two /boot directories (and even partitions). During system start up I used the old /boot of SuSE 11.0 but in the /etc/fstab I had an entry for the other and new /boot of SuSE 11.2 ... accordingly I updated that (the new one) while starting from the other (the old one) and thus never got the new kernel where it belongs.
I don't quite understand why the old /boot got the libraries and modules but not the kernel. Anyway, after I corrected the /boot entry in /etc/fstab everything is as it should be . If anybody is interested here are more threads connected to this topic:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.