I got stuck in an offline update!
First time ever with Fedora, but ok, no problem.
I run sudo dnf upgrade and I got a problem:
...
Total 5.5 MB/s | 1.1 GB 03:32
Delta RPMs reduced 1169.3 MB of updates to 1166.5 MB (0.2% saved)
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 test error:
file /usr/share/libdrm/amdgpu.ids from install of libdrm-2.4.117-1.fc38.i686 conflicts with file from package libdrm-2.4.114-2.fc38.x86_64
file /usr/share/bash-completion/completions/p11-kit from install of p11-kit-0.25.2-1.fc38.i686 conflicts with file from package p11-kit-0.25.0-1.fc38.x86_64
file /usr/share/doc/p11-kit/NEWS from install of p11-kit-0.25.2-1.fc38.i686 conflicts with file from package p11-kit-0.25.0-1.fc38.x86_64
file /usr/share/doc/p11-kit/README from install of p11-kit-0.25.2-1.fc38.i686 conflicts with file from package p11-kit-0.25.0-1.fc38.x86_64
file /usr/share/man/man1/trust.1.gz from install of p11-kit-0.25.2-1.fc38.i686 conflicts with file from package p11-kit-0.25.0-1.fc38.x86_64
file /usr/share/man/man5/pkcs11.conf.5.gz from install of p11-kit-0.25.2-1.fc38.i686 conflicts with file from package p11-kit-0.25.0-1.fc38.x86_64
file /usr/share/man/man8/p11-kit.8.gz from install of p11-kit-0.25.2-1.fc38.i686 conflicts with file from package p11-kit-0.25.0-1.fc38.x86_64
FAIL: 1
I’m running Fedora Workstation 38.
I have enabled the following repositories:
repo id repo name
code Visual Studio Code
copr:copr.fedorainfracloud.org:phracek:PyCharm Copr repo for PyCharm owned by phracek
copr:copr.fedorainfracloud.org:varlad:helix Copr repo for helix owned by varlad
docker-ce-stable Docker CE Stable - x86_64
fedora Fedora 38 - x86_64
fedora-cisco-openh264 Fedora 38 openh264 (From Cisco) - x86_64
fedora-modular Fedora Modular 38 - x86_64
google-chrome google-chrome
hashicorp Hashicorp Stable - x86_64
insync insync repo
rpmfusion-free RPM Fusion for Fedora 38 - Free
rpmfusion-free-tainted RPM Fusion for Fedora 38 - Free tainted
rpmfusion-free-updates RPM Fusion for Fedora 38 - Free - Updates
rpmfusion-nonfree RPM Fusion for Fedora 38 - Nonfree
rpmfusion-nonfree-nvidia-driver RPM Fusion for Fedora 38 - Nonfree - NVIDIA Driver
rpmfusion-nonfree-steam RPM Fusion for Fedora 38 - Nonfree - Steam
rpmfusion-nonfree-tainted RPM Fusion for Fedora 38 - Nonfree tainted
rpmfusion-nonfree-updates RPM Fusion for Fedora 38 - Nonfree - Updates
slack slack
tailscale-stable Tailscale stable
updates Fedora 38 - x86_64 - Updates
updates-modular Fedora Modular 38 - x86_64 - Updates
That is hard to read, and would be much easier if you were to post the output of dnf repolist.
I see non-standard repos as
copr:copr.fedorainfracloud.org:varlad:helix
docker-ce-stable
hashicorp
insync
slack
tailscale-stable
First I would try the following dnf upgrade --best --allowerasing --refresh and see what the differences may be.
If that works then done. If not then post again the output of dnf list installed libdrm p11-kit so we may see which repo those packages may have been installed from.
For me both those packages appear from the F38 updates repo. Every one of the conflicts you show are with the i686 version conflicting with the x86_64 version so the options I gave above will probably fix it.
The issue here is that you have the i686 and x84_64 packages installed. I don’t know what software these packages belong to, but if it was my system, I would remove the .i686 packages (manually), then upgrade.
I have the same problem but only with p11-kit
❯ sudo dnf list installed p11-kit
Installierte Pakete
p11-kit.i686 0.25.1-1.fc38 @updates
p11-kit.x86_64 0.25.1-1.fc38 @updates
p11-kit.x86_64 0.25.2-1.fc38 @updates
dnf upgrade --best --allowerasing --refresh did not help
if I try to remove p11-kit.i686 manually it wants to remove a lot of other stuff:
NetworkManager-libnm i686 1:1.42.8-1.fc38 @updates 9.5 M
at-spi2-core i686 2.48.3-1.fc38 @updates 1.5 M
atk i686 2.48.3-1.fc38 @updates 263 k
cups-libs i686 1:2.4.7-1.fc38 @updates 706 k
dconf i686 0.40.0-8.fc38 @fedora 303 k
fontconfig i686 2.14.2-1.fc38 @fedora 857 k
freetype i686 2.13.0-2.fc38 @fedora 863 k
gdk-pixbuf2 i686 2.42.10-2.fc38 @fedora 2.5 M
glib-networking i686 2.76.1-1.fc38 @updates 709 k
glib2 i686 2.76.5-2.fc38 @updates 14 M
gstreamer1-plugins-good i686 1.22.5-1.fc38 @updates 7.9 M
gtk2 i686 2.24.33-13.fc38 @fedora 14 M
gtk3 i686 3.24.38-1.fc38 @updates 21 M
libFAudio i686 23.07-1.fc38 @updates 262 k
libXft i686 2.3.8-2.fc38 @updates 168 k
pango i686 1.50.14-1.fc38 @fedora 1.0 M
pipewire i686 0.3.83-2.fc38 @updates 342 k
pipewire-alsa i686 0.3.83-2.fc38 @updates 156 k
steam i686 1.0.0.78-1.fc38 @rpmfusion-nonfree-steam 3.7 M
wine x86_64 8.18-1.fc38 @updates 0
wine-core i686 8.18-1.fc38 @updates 513 M
wine-dxvk i686 1.10.3-2.fc38 @fedora 46 M
wine-dxvk
So it didn’t finish? What does this say? sudo dnf repoquery --duplicates
Co-installation of multilib (i686) packages only works when the versions match so that the common files are identical.
The only path forward I know of is to temporarily remove all affected i686 packages. Then some combination of sudo dnf upgrade and sudo dnf remove --duplicates should get you back to a coherent state.
I tried dnf upgrade --best --allowerasing --refresh, I got the same error again:
....
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 test error:
file /usr/share/libdrm/amdgpu.ids from install of libdrm-2.4.117-1.fc38.i686 conflicts with file from package libdrm-2.4.114-2.fc38.x86_64
file /usr/share/bash-completion/completions/p11-kit from install of p11-kit-0.25.2-1.fc38.i686 conflicts with file from package p11-kit-0.25.0-1.fc38.x86_64
file /usr/share/doc/p11-kit/NEWS from install of p11-kit-0.25.2-1.fc38.i686 conflicts with file from package p11-kit-0.25.0-1.fc38.x86_64
file /usr/share/doc/p11-kit/README from install of p11-kit-0.25.2-1.fc38.i686 conflicts with file from package p11-kit-0.25.0-1.fc38.x86_64
file /usr/share/man/man1/trust.1.gz from install of p11-kit-0.25.2-1.fc38.i686 conflicts with file from package p11-kit-0.25.0-1.fc38.x86_64
file /usr/share/man/man5/pkcs11.conf.5.gz from install of p11-kit-0.25.2-1.fc38.i686 conflicts with file from package p11-kit-0.25.0-1.fc38.x86_64
file /usr/share/man/man8/p11-kit.8.gz from install of p11-kit-0.25.2-1.fc38.i686 conflicts with file from package p11-kit-0.25.0-1.fc38.x86_64
FAIL: 1
Yes, the offiline update didn’t finish, it got literraly stuck in the middle of an update.
If I usually press esc I can see the terminal with the upgrade, instead this time something was probably broken and it didn’t respond to any key press.
That shouldn’t be possible. fedora-release-identity-workstation installs /etc/dnf/protected.d/fedora-workstation.conf, which makes gnome-shell non-removable. Does that file exist?
Moreover, gnome-shell should be requested by the installed @gnome-desktop group, so it shouldn’t be autoremoved. What does dnf group list --installed say?
As a minimal workaround, you can run sudo dnf mark install gnome-shell to mark gnome-shell as user-installed.
Ups, I probably know a reason of this problem, I installed Fedora KDE, but later removed KDE and installed GNOME.
I have these installed:
$ sudo dnf group list --installed
Last metadata expiration check: 0:02:16 ago on dom 5 nov 2023, 17:58:38.
Installed Environment Groups:
Fedora Workstation
Installed Groups:
Container Management
Development Tools
LibreOffice
GNOME Desktop Environment
Fonts
Hardware Support
Sound and Video
Now I’ve done dnf mark install gnome-shell, and then removed p11-kit and libdrm, but sadly with them it removed steam and wine.
Not a big deal, I’m going to reinstall them again…
I’m going to reboot now
I sang victory too early!
I tried to install wine and I got this error:
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 test error:
file /usr/share/libdrm/amdgpu.ids from install of libdrm-2.4.117-1.fc38.i686 conflicts with file from package libdrm-2.4.114-2.fc38.x86_64
file /usr/share/bash-completion/completions/p11-kit from install of p11-kit-0.25.2-1.fc38.i686 conflicts with file from package p11-kit-0.25.0-1.fc38.x86_64
file /usr/share/doc/p11-kit/NEWS from install of p11-kit-0.25.2-1.fc38.i686 conflicts with file from package p11-kit-0.25.0-1.fc38.x86_64
file /usr/share/doc/p11-kit/README from install of p11-kit-0.25.2-1.fc38.i686 conflicts with file from package p11-kit-0.25.0-1.fc38.x86_64
file /usr/share/man/man1/trust.1.gz from install of p11-kit-0.25.2-1.fc38.i686 conflicts with file from package p11-kit-0.25.0-1.fc38.x86_64
file /usr/share/man/man5/pkcs11.conf.5.gz from install of p11-kit-0.25.2-1.fc38.i686 conflicts with file from package p11-kit-0.25.0-1.fc38.x86_64
file /usr/share/man/man8/p11-kit.8.gz from install of p11-kit-0.25.2-1.fc38.i686 conflicts with file from package p11-kit-0.25.0-1.fc38.x86_64
FAIL: 1
Did you run sudo dnf remove --duplicates and sudo dnf upgrade ?
You need to end up with no more than one copy of each package installed per architecture, and the versions need to match.
It appears that you still have libdrm-2.4.114-2.fc38.x86_64 installed. You probably also have libdrm-2.4.117-1.fc38.x86_64 installed. dnf remove --duplicates should help there.
The same goes for p11-kit.
You may encounter this problem for more i686 packages as well.
Nice, this did the final fix! dnf remove --duplicates cleaned the last things, nothing else needed to be upgraded but finally I got to install again wine and steam.
Thanks again!