Resolving duplicates in f36

I installed WineHQ on f36 (following the info here: Fedora - WineHQ Wiki) and evidently got duplicates with mesa:

[jackr@localhost ~]$ sudo dnf check
mesa-dri-drivers-22.1.3-1.fc36.x86_64 is a duplicate with mesa-dri-drivers-22.1.3-3.fc36.i686
mesa-filesystem-22.1.3-1.fc36.x86_64 is a duplicate with mesa-filesystem-22.1.3-3.fc36.i686
mesa-libEGL-22.1.3-1.fc36.x86_64 is a duplicate with mesa-libEGL-22.1.3-3.fc36.i686
Error: Check discovered 3 problem(s)

I tried to resolve this via: sudo dnf remove --duplicates

[jackr@localhost ~]$ sudo dnf remove --duplicates
Last metadata expiration check: 1:41:33 ago on Sun 17 Jul 2022 05:26:39 PM CEST.
Dependencies resolved.
Nothing to do.
Complete!

It doesn’t resolve anything and apparently the command doesn’t work in f36…

[jackr@localhost ~]$ sudo dnf check
mesa-dri-drivers-22.1.3-1.fc36.x86_64 is a duplicate with mesa-dri-drivers-22.1.3-3.fc36.i686
mesa-filesystem-22.1.3-1.fc36.x86_64 is a duplicate with mesa-filesystem-22.1.3-3.fc36.i686
mesa-libEGL-22.1.3-1.fc36.x86_64 is a duplicate with mesa-libEGL-22.1.3-3.fc36.i686
Error: Check discovered 3 problem(s)

The major problem is that I cannot update dnf…

[jackr@localhost ~]$ sudo dnf update
Last metadata expiration check: 1:45:34 ago on Sun 17 Jul 2022 05:26:39 PM CEST.
Dependencies resolved.
================================================================================
 Package                   Architecture Version             Repository     Size
================================================================================
Upgrading:
 gdk-pixbuf2               i686         2.42.8-2.fc36       updates       473 k
 gdk-pixbuf2               x86_64       2.42.8-2.fc36       updates       465 k
 gdk-pixbuf2-devel         x86_64       2.42.8-2.fc36       updates       339 k
 gdk-pixbuf2-modules       i686         2.42.8-2.fc36       updates        89 k
 gdk-pixbuf2-modules       x86_64       2.42.8-2.fc36       updates        85 k
 glib-networking           i686         2.72.1-1.fc36       updates       192 k
 glib-networking           x86_64       2.72.1-1.fc36       updates       184 k
 gnome-desktop3            x86_64       42.3-1.fc36         updates       605 k
 gnome-desktop4            x86_64       42.3-1.fc36         updates       149 k
 harfbuzz                  i686         4.0.0-2.fc36        updates       766 k
 harfbuzz                  x86_64       4.0.0-2.fc36        updates       744 k
 harfbuzz-devel            x86_64       4.0.0-2.fc36        updates       350 k
 harfbuzz-icu              x86_64       4.0.0-2.fc36        updates        15 k
 libtpms                   x86_64       0.9.5-1.fc36        updates       390 k
 mesa-dri-drivers          x86_64       22.1.3-3.fc36       updates        18 M
 mesa-filesystem           x86_64       22.1.3-3.fc36       updates        18 k
 mesa-libEGL               x86_64       22.1.3-3.fc36       updates       125 k
 mesa-libxatracker         x86_64       22.1.3-3.fc36       updates       2.0 M
 openconnect               x86_64       9.01-3.fc36         updates       864 k

Transaction Summary
================================================================================
Upgrade  19 Packages

Total size: 26 M
Is this ok [y/N]: y
Downloading Packages:
[SKIPPED] gdk-pixbuf2-2.42.8-2.fc36.i686.rpm: Already downloaded                
[SKIPPED] gdk-pixbuf2-2.42.8-2.fc36.x86_64.rpm: Already downloaded              
[SKIPPED] gdk-pixbuf2-devel-2.42.8-2.fc36.x86_64.rpm: Already downloaded        
[SKIPPED] gdk-pixbuf2-modules-2.42.8-2.fc36.i686.rpm: Already downloaded        
[SKIPPED] gdk-pixbuf2-modules-2.42.8-2.fc36.x86_64.rpm: Already downloaded      
[SKIPPED] glib-networking-2.72.1-1.fc36.i686.rpm: Already downloaded            
[SKIPPED] glib-networking-2.72.1-1.fc36.x86_64.rpm: Already downloaded          
[SKIPPED] gnome-desktop3-42.3-1.fc36.x86_64.rpm: Already downloaded             
[SKIPPED] gnome-desktop4-42.3-1.fc36.x86_64.rpm: Already downloaded             
[SKIPPED] harfbuzz-4.0.0-2.fc36.i686.rpm: Already downloaded                    
[SKIPPED] harfbuzz-4.0.0-2.fc36.x86_64.rpm: Already downloaded                  
[SKIPPED] harfbuzz-devel-4.0.0-2.fc36.x86_64.rpm: Already downloaded            
[SKIPPED] harfbuzz-icu-4.0.0-2.fc36.x86_64.rpm: Already downloaded              
[SKIPPED] libtpms-0.9.5-1.fc36.x86_64.rpm: Already downloaded                   
[SKIPPED] mesa-dri-drivers-22.1.3-3.fc36.x86_64.rpm: Already downloaded         
[SKIPPED] mesa-filesystem-22.1.3-3.fc36.x86_64.rpm: Already downloaded          
[SKIPPED] mesa-libEGL-22.1.3-3.fc36.x86_64.rpm: Already downloaded              
[SKIPPED] mesa-libxatracker-22.1.3-3.fc36.x86_64.rpm: Already downloaded        
[SKIPPED] openconnect-9.01-3.fc36.x86_64.rpm: Already downloaded                
Running transaction check
Error: transaction check vs depsolve:
mesa-filesystem(x86-32) is needed by (installed) libva-2.14.0-1.fc36.i686
mesa-filesystem(x86-32) = 22.1.3-3.fc36 is needed by (installed) mesa-dri-drivers-22.1.3-3.fc36.i686
To diagnose the problem, try running: 'rpm -Va --nofiles --nodigest'.
You probably have corrupted RPMDB, running 'rpm --rebuilddb' might fix the issue.
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.

Tried running running: rpm -Va --nofiles --nodigest and rpm --rebuilddb

No luck…

1 Like

Those listed duplicates are x86_64 and i686, not actually a duplicate.

[jackr@localhost ~]$ sudo dnf check
mesa-dri-drivers-22.1.3-1.fc36.x86_64 is a duplicate with mesa-dri-drivers-22.1.3-3.fc36.i686
mesa-filesystem-22.1.3-1.fc36.x86_64 is a duplicate with mesa-filesystem-22.1.3-3.fc36.i686
mesa-libEGL-22.1.3-1.fc36.x86_64 is a duplicate with mesa-libEGL-22.1.3-3.fc36.i686

Notice that the i686 packages are a slightly different version than the x86_64 packages.

This type problem sometimes occurs when you use a 3rd party repo to do an install.
What is the output of dnf repolist?
What is the output of dnf list installed <package name> where you use each of those 3 package names? This will tell you where those packages were installed from. If the same named packages came from different repos then there often is a conflict.

I would recommend you remove the WineHQ packages, do the upgrade, then reinstall from winehq if needed. You also might consider doing the upgrade while excluding those 3 packages to avoid needing to remove them.

Thank you.

[jackr@localhost ~]$ sudo dnf repolist
repo id                         repo name
WineHQ                          WineHQ packages
docker-ce-stable                Docker CE Stable - x86_64
fedora                          Fedora 36 - x86_64
fedora-cisco-openh264           Fedora 36 openh264 (From Cisco) - x86_64
fedora-modular                  Fedora Modular 36 - x86_64
google-chrome                   google-chrome
phracek-PyCharm                 Copr repo for PyCharm owned by phracek
rpmfusion-free                  RPM Fusion for Fedora 36 - Free
rpmfusion-free-updates          RPM Fusion for Fedora 36 - Free - Updates
rpmfusion-nonfree               RPM Fusion for Fedora 36 - Nonfree
rpmfusion-nonfree-nvidia-driver RPM Fusion for Fedora 36 - Nonfree - NVIDIA Driver
rpmfusion-nonfree-steam         RPM Fusion for Fedora 36 - Nonfree - Steam
rpmfusion-nonfree-updates       RPM Fusion for Fedora 36 - Nonfree - Updates
teamviewer                      TeamViewer - x86_64
updates                         Fedora 36 - x86_64 - Updates
updates-modular                 Fedora Modular 36 - x86_64 - Updates
[jackr@localhost ~]$ sudo dnf list installed mesa-filesystem mesa-dri-drivers mesa-libEGL
Installed Packages
mesa-dri-drivers.x86_64                     22.1.3-1.fc36                     @updates
mesa-dri-drivers.i686                       22.1.3-3.fc36                     @updates
mesa-filesystem.x86_64                      22.1.3-1.fc36                     @updates
mesa-filesystem.i686                        22.1.3-3.fc36                     @updates
mesa-libEGL.x86_64                          22.1.3-1.fc36                     @updates
mesa-libEGL.i686                            22.1.3-3.fc36                     @updates

I ran
[jackr@localhost ~]$ sudo dnf update --exclude=“mesa-filesystem mesa-dri-drivers mesa-libEGL”

and it worked.

Just an FYI.
It seems that at the time you installed from winehq that those 3 packaged (x86_64 version) had not yet been updated in the fedora repo. I just did an update and they were upgraded to the 22.1.3-3 release as you already have for the i686 versions.

Maybe you could try sudo dnf distro-sync and see if that will bring those 3 packages up to the latest version.

The cause seems that installing from winehq pulled in the i686 version of the packages but failed to make certain the x86_64 versions were of a matching version. That seems a packaging error in the dependencies.

BTW, I took the liberty of adding the </> Preformatted text tags to your post above. It makes things easier to read and formatted as they were when you copied from your PC. Please use that method for all posts where you are inserting text copied from the screen.

I can update dnf now, … and after running sudo dnf distro-sync :

[jackr@localhost ~]$ sudo dnf list installed mesa-filesystem mesa-dri-drivers mesa-libEGL
Installed Packages
mesa-dri-drivers.i686                    22.1.3-3.fc36                  @updates
mesa-dri-drivers.x86_64                  22.1.3-3.fc36                  @updates
mesa-filesystem.i686                     22.1.3-3.fc36                  @updates
mesa-filesystem.x86_64                   22.1.3-3.fc36                  @updates
mesa-libEGL.i686                         22.1.3-3.fc36                  @updates
mesa-libEGL.x86_64                       22.1.3-3.fc36                  @updates

Thanks a lot!