Fedora 39 Workstation upgrade to F40 faild

Fedora 39 Workstation upgrade to F40 faild.

dnf upgrade --refresh
dnf install dnf-plugin-system-upgrade
dnf system-upgrade download --releasever=40
LANG=C dnf system-upgrade download --releasever=40 --allowerasing
Error: Transaction test error:
  file /usr/share/gir-1.0/GLib-2.0.gir conflicts between attempted installs of glib2-devel-2.80.0-1.fc40.i686 and glib2-devel-2.80.0-1.fc40.x86_64

I don’t understand which package to remove?

LANG=C dnf search gir-1.0
Last metadata expiration check: 0:35:35 ago on Thu Apr 25 21:52:39 2024.
No matches found.

You can use the rpm -qf <FILENAME> command to find out what package installed a file.
Try this:

rpm -qf /usr/share/gir-1.0/GLib-2.0.gir

I think its from some -devel packages.

1 Like

There is a conflct between i686 and x86_64 version of the same package. Remove the package that does not correspond to your system architecture.

Frank

3 Likes

Thx!

rpm -qf /usr/share/gir-1.0/GLib-2.0.gir
gobject-introspection-devel-1.78.1-1.fc39.x86_64

rpm -qf /usr/share/gir-1.0/GLib-2.0.gir
gobject-introspection-devel-1.78.1-1.fc39.x86_64

Delete (dnfdragora) gobject-introspection-devel-1.78.1-1.fc39.x86_64 package, but upgrade faild

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/gir-1.0/GLib-2.0.gir conflicts between attempted installs of glib2-devel-2.80.0-1.fc40.i686 and glib2-devel-2.80.0-1.fc40.x86_64

LANG=C rpm -qf /usr/share/gir-1.0/GLib-2.0.gir
error: file /usr/share/gir-1.0/GLib-2.0.gir: No such file or directory

Thx, but not install other architecture gobject-introspection-devel.

You could remove glib2-devel package for i686, that should allow upgrade to proceed.

1 Like

Delete package (glib2-devel i686) and
LANG=C dnf system-upgrade download --releasever=40 --allowerasing

Error: Transaction test error:
file /usr/share/gir-1.0/GLib-2.0.gir conflicts between attempted installs of glib2-devel-2.80.0-1.fc40.i686 and glib2-devel-2.80.0-1.fc40.x86_64

1 Like

dnf group list --installed

Installed Environment Groups:
   Fedora Workstation
   Web Server
Installed Groups:
   Audio Production
   Authoring and Publishing
   C Development Tools and Libraries
   Container Management
   Design Suite
   Development Tools
   LibreOffice
   GNOME Desktop Environment
   Fonts
   Hardware Support
   Sound and Video

dnf repoquery --installed --whatrequires glib2-devel

at-spi2-atk-devel-0:2.50.2-1.fc39.x86_64
at-spi2-core-devel-0:2.50.2-1.fc39.x86_64
atk-devel-0:2.50.2-1.fc39.x86_64
cairo-gobject-devel-0:1.18.0-1.fc39.x86_64
cheese-libs-devel-2:44.1-1.fc39.x86_64
clutter-devel-0:1.26.4-11.fc39.x86_64
clutter-gst3-devel-0:3.0.27-16.fc39.x86_64
cogl-devel-0:1.22.8-8.fc39.x86_64
dbus-glib-devel-0:0.112-6.fc39.x86_64
evolution-data-server-devel-0:3.50.4-1.fc39.x86_64
gdk-pixbuf2-devel-0:2.42.10-5.fc39.i686
gdk-pixbuf2-devel-0:2.42.10-5.fc39.x86_64
geocode-glib-devel-0:3.26.4-8.fc39.x86_64
gnome-desktop3-devel-0:44.0-7.fc39.x86_64
gnome-online-accounts-devel-0:3.48.0-2.fc39.x86_64
graphene-devel-0:1.10.6-6.fc39.x86_64
gssdp-devel-0:1.6.3-1.fc39.x86_64
gstreamer1-devel-0:1.22.9-1.fc39.x86_64
gstreamer1-plugins-bad-free-devel-0:1.22.9-1.fc39.x86_64
gstreamer1-plugins-base-devel-0:1.22.9-1.fc39.x86_64
gtk2-devel-0:2.24.33-15.fc39.x86_64
gtk3-devel-0:3.24.41-1.fc39.x86_64
gtk4-devel-0:4.12.5-1.fc39.x86_64
gupnp-devel-0:1.6.6-1.fc39.x86_64
gupnp-igd-devel-0:1.6.0-2.fc39.x86_64
harfbuzz-devel-0:8.2.1-2.fc39.x86_64
javascriptcoregtk4.0-devel-0:2.44.1-1.fc39.x86_64
javascriptcoregtk4.1-devel-0:2.44.1-1.fc39.x86_64
javascriptcoregtk6.0-devel-0:2.44.1-1.fc39.x86_64
json-glib-devel-0:1.8.0-1.fc39.x86_64
libgda-devel-1:6.0.0-6.fc39.x86_64
libgnome-keyring-devel-0:3.12.0-26.fc39.x86_64
libgudev-devel-0:238-2.fc39.x86_64
libgweather4-devel-0:4.4.2-1.fc39.x86_64
libical-glib-devel-0:3.0.17-1.fc39.x86_64
libnice-devel-0:0.1.21-4.fc39.x86_64
libnotify-devel-0:0.8.3-1.fc39.x86_64
libsecret-devel-0:0.21.2-1.fc39.x86_64
libsoup-devel-0:2.74.3-3.fc39.x86_64
libsoup3-devel-0:3.4.4-1.fc39.x86_64
pango-devel-0:1.51.0-1.fc39.x86_64
webkit2gtk4.0-devel-0:2.44.1-1.fc39.x86_64
webkit2gtk4.1-devel-0:2.44.1-1.fc39.x86_64
webkitgtk6.0-devel-0:2.44.1-1.fc39.x86_64

gobject-introspection-devel there is none requires …

I deleted the glib2-devel x86_64 package and update successful!

1 Like