Ask Your Question
2

Kernal update problem

asked 2018-06-01 10:55:57 -0600

qssdrc gravatar image

updated 2018-06-03 16:37:08 -0600

Anybody give me a solution to this error message that comes up when I try to update Fedora 28

Problem: package kernel-4.16.9-300.fc28.i686 requires kernel-core-uname-r = 4.16.9-300.fc28.i686, but none of the providers can be installed This is the report I get when I try to update kernel:

[qssdrc@localhost ~]$ sudo dnf update kernel [sudo] password for qssdrc: Failed to synchronize cache for repo 'amirsamimi-persepolis', disabling. Last metadata expiration check: 0:50:53 ago on Sat 02 Jun 2018 22:34:14 BST. Error: Problem 1: package kernel-modules-extra-4.16.9-300.fc28.i686 requires kernel-uname-r = 4.16.9-300.fc28.i686, but none of the providers can be installed - conflicting requests Problem 2: package kernel-4.16.9-300.fc28.i686 requires kernel-core-uname-r = 4.16.9-300.fc28.i686, but none of the providers can be installed - conflicting requests [qssdrc@localhost ~]$

These are the kernels currently installed:

[qssdrc@localhost ~]$ rpm -qa 'kernel*'
kernel-modules-extra-4.16.10-300.fc28.i686
kernel-4.16.9-300.fc28.i686
kernel-4.16.10-300.fc28.i686
kernel-modules-4.16.10-300.fc28.i686
kernel-headers-4.16.11-300.fc28.i686
kernel-PAE-modules-4.16.5-200.fc27.i686
kernel-PAE-modules-4.15.15-300.fc27.i686
kernel-modules-4.16.9-300.fc28.i686
kernel-modules-extra-4.16.9-300.fc28.i686
kernel-PAE-core-4.16.5-200.fc27.i686
kernel-core-4.16.11-300.fc28.i686
kernel-modules-4.16.8-300.fc28.i686
kernel-modules-extra-4.16.11-300.fc28.i686
kernel-PAE-4.15.17-300.fc27.i686
kernel-core-4.16.10-300.fc28.i686
kernel-PAE-4.16.5-200.fc27.i686
kernel-4.16.8-300.fc28.i686
kernel-core-4.16.9-300.fc28.i686
kernel-PAE-modules-4.15.17-300.fc27.i686
kernel-core-4.16.8-300.fc28.i686
kernel-modules-4.16.11-300.fc28.i686
kernel-PAE-core-4.15.15-300.fc27.i686
kernel-modules-extra-4.16.8-300.fc28.i686
kernel-PAE-4.15.15-300.fc27.i686
kernel-PAE-core-4.15.17-300.fc27.i686
kernel-headers-4.16.10-300.fc28.i686

First problem cannot rebuild rpm database get following message

[qssdrc@localhost ~]$ rpm --rebuilddb error: can't create transaction lock on /var/lib/rpm/.rpm.lock (No such file or directory) [qssdrc@localhost ~]$

edit retag flag offensive close merge delete

Comments

The versions it's trying to install are already installed. And the rpm command requires sudo.

cmurf gravatar imagecmurf ( 2018-06-07 13:23:47 -0600 )edit

1 Answer

Sort by » oldest newest most voted
1

answered 2018-06-01 14:06:27 -0600

villykruse gravatar image

updated 2018-06-03 03:42:18 -0600

You can install either (original version)

kernel-4.16.3-301.fc28
kernel-core-4.16.3-301.fc28
kernel-modules-4.16.3-301.fc28

or you can install (latest update)

kernel-4.16.12-300.fc28
kernel-core-4.16.12-300.fc28
kernel-modules-4.16.12-300.fc28

package kernel-4.16.9-300.fc28 is no longer in the standard repository, it was removed when replaced by a newer update.

kernel-core-uname-r = 4.16.9-300.fc28.i686 was provided by kernel-core-4.16.9-300.fc28.i686 and is also no longer available.

The fix can get rather complicated. First rebuild the rpm database

 rpm --rebuilddb

Then remove some of the dnf status files.

rm -rf /var/lib/dnf/yumdb/k/*kernel*

Then remove the old kernels using rpm

rpm --erase kernel-PAE-4.16.5-200.fc27.i686 kernel-PAE-core-4.16.5-200.fc27.i686 kernel-PAE-modules-4.16.5-200.fc27.i686
rpm --erase kernel-PAE-4.15.15-300.fc27.i686 kernel-PAE-core-4.15.15-300.fc27.i686 kernel-PAE-modules-4.15.15-300.fc27.i686
rpm --erase kernel-PAE-4.15.17-300.fc27.i686 kernel-PAE-core-4.15.17-300.fc27.i686 kernel-PAE-modules-4.15.17-300.fc27.i686

rpm --erase kernel-4.16.8-300.fc28.i686 kernel-core-4.16.8-300.fc28.i686 kernel-modules-4.16.8-300.fc28.i686 kernel-modules-extra-4.16.8-300.fc28.i686
rpm --erase kernel-4.16.9-300.fc28.i686 kernel-core-4.16.9-300.fc28.i686 kernel-modules-4.16.9-300.fc28.i686 kernel-modules-extra-4.16.9-300.fc28.i686
rpm --erase kernel-4.16.10-300.fc28.i686 kernel-core-4.16.10-300.fc28.i686 kernel-modules-4.16.10-300.fc28.i686 kernel-modules-extra-4.16.10-300.fc28.i686
rpm --erase kernel-headers-4.16.10-300.fc28.i686

Then try to do the kernel update

dnf update 'kernel*'
edit flag offensive delete link more

Comments

I get the same error message when i try to install any of the above

qssdrc gravatar imageqssdrc ( 2018-06-01 17:30:12 -0600 )edit

You were running dnf update kernel, right? Anything else would not make sense.

villykruse gravatar imagevillykruse ( 2018-06-02 03:25:08 -0600 )edit

Yes that’s what I used. Getting a bit desperate now as I can’t update or install anything!

qssdrc gravatar imageqssdrc ( 2018-06-02 08:01:35 -0600 )edit

You dojn't provide the whole picture. We will need the exact messages you get when running dnf update kernel -- and ALL of it.

Also which kernels are installed? Run rpm -qa 'kernel*'

Edit your own question and paste in in there.

villykruse gravatar imagevillykruse ( 2018-06-02 09:02:51 -0600 )edit

Done see above. Any help?

qssdrc gravatar imageqssdrc ( 2018-06-02 17:32:37 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2018-06-01 10:55:57 -0600

Seen: 219 times

Last updated: Jun 03