I tried to:
> # dnf update
my rawhide machine today, which brought in:
> Installing:
> kernel x86_64 4.17.0-0.rc0.git4.1.fc29 rawhide 91 k
> kernel-core x86_64 4.17.0-0.rc0.git4.1.fc29 rawhide 25 M
> kernel-modules x86_64 4.17.0-0.rc0.git4.1.fc29 rawhide 28 M
> .
> .
> .
> Removing:
> kernel x86_64 4.16.0-0.rc6.git1.1.fc29 @rawhide 0
> kernel-core x86_64 4.16.0-0.rc6.git1.1.fc29 @rawhide 61 M
> kernel-modules x86_64 4.16.0-0.rc6.git1.1.fc29 @rawhide 27 M
> Removing dependent packages:
> kernel-modules-extra x86_64 4.16.0-0.rc6.git1.1.fc29 @rawhide 2.2 M
but it failed with:
> Running transaction check
> Transaction check succeeded.
> Running transaction test
> The downloaded packages were saved in cache until the next successful transaction.
> You can remove cached packages by executing 'dnf clean packages'.
> Error: Transaction check error:
> file /usr/share/licenses/kernel-core/COPYING from install of kernel-core-4.17.0-0.rc0.git4.1.fc29.x86_64 conflicts with file from package kernel-core-4.12.0-0.rc5.git0.1.fc27.x86_64
> file /usr/share/licenses/kernel-core/COPYING from install of kernel-core-4.17.0-0.rc0.git4.1.fc29.x86_64 conflicts with file from package kernel-core-4.16.0-0.rc7.git1.1.fc29.x86_64
I have installed:
> # rpm -q kernel-core
> kernel-core-4.12.0-0.rc5.git0.1.fc27.x86_64
> kernel-core-4.16.0-0.rc6.git1.1.fc29.x86_64
> kernel-core-4.16.0-0.rc7.git1.1.fc29.x86_64
but I cannot remove any of those, because:
> # dnf remove kernel-core-4.12.0-0.rc5.git0.1.fc27.x86_64 kernel-core-4.16.0-0.rc7.git1.1.fc29.x86_64
> Error:
> Problem: The operation would result in removing the following protected packages: kernel-core
Thus I'm rather stuck until you fix it or you help me to fix it. Interestingly enough using:
> # dnf update --skip-broken
doesn't help here.