Problem installing cups-devel on Rocky 8.6

Hello community,

i tried to install cups-devel (needed for pycups). but i get an conflict error:

(1/15): cups-filesystem-2.2.6-45.el8_6.2.noarch.rpm 395 kB/s | 109 kB 00:00
(2/15): cups-client-2.2.6-45.el8_6.2.x86_64.rpm 544 kB/s | 169 kB 00:00
(3/15): cups-2.2.6-45.el8_6.2.x86_64.rpm 2.8 MB/s | 1.4 MB 00:00
(4/15): cups-devel-2.2.6-45.el8_6.2.x86_64.rpm 1.9 MB/s | 149 kB 00:00
(5/15): gnutls-c+±3.6.16-4.el8.x86_64.rpm 617 kB/s | 48 kB 00:00
(6/15): gnutls-dane-3.6.16-4.el8.x86_64.rpm 773 kB/s | 51 kB 00:00
(7/15): cups-libs-2.2.6-45.el8_6.2.x86_64.rpm 735 kB/s | 433 kB 00:00
(8/15): libidn2-devel-2.2.0-1.el8.x86_64.rpm 159 kB/s | 60 kB 00:00
(9/15): gnutls-devel-3.6.16-4.el8.x86_64.rpm 2.7 MB/s | 2.2 MB 00:00
(10/15): libtasn1-devel-4.13-3.el8.x86_64.rpm 653 kB/s | 334 kB 00:00
(11/15): gmp-c+±6.1.2-10.el8.x86_64.rpm 411 kB/s | 32 kB 00:00
(12/15): gmp-devel-6.1.2-10.el8.x86_64.rpm 990 kB/s | 186 kB 00:00
(13/15): nettle-devel-3.4.1-7.el8.x86_64.rpm 1.1 MB/s | 635 kB 00:00
(14/15): p11-kit-devel-0.23.22-1.el8.x86_64.rpm 351 kB/s | 86 kB 00:00
(15/15): cups-ipptool-2.2.6-45.el8_6.2.x86_64.rpm 2.3 MB/s | 5.8 MB 00:02

Error: Transaktionstest fehlerhaft:
File/usr/lib64/.libgnutls.so.30.28.2.hmac from installation
gnutls-devel-3.6.16-4.el8.x86_64 collides with the file from gnutls-3.6.16-4.el8.x86_64

i already searched for solutions but all i found didn´t help…
maybe someone has a good idea!??!

Thankx
Alexander

It does look like the file is in both devel and runtime packages.
To simplify the error try with just gnutls

dnf install gnutls-devel

Post the exact output, formatted as “code”
It should fail with the same error

Hello,
ok i tried and with the same result as you expected:

Transaktionsübersicht
Installieren  9 Pakete
Gesamte Downloadgröße: 3.6 M
Installationsgröße: 7.5 M
Ist dies in Ordnung? [j/N]: j
Pakete werden heruntergeladen:
(1/9): gnutls-c++-3.6.16-4.el8.x86_64.rpm
(2/9): gnutls-dane-3.6.16-4.el8.x86_64.rpm   
(3/9): libidn2-devel-2.2.0-1.el8.x86_64.rpm 
(4/9): libtasn1-devel-4.13-3.el8.x86_64.rpm
(5/9): gnutls-devel-3.6.16-4.el8.x86_64.rpm 
(6/9): nettle-devel-3.4.1-7.el8.x86_64.rpm  
(7/9): gmp-c++-6.1.2-10.el8.x86_64.rpm  
(8/9): gmp-devel-6.1.2-10.el8.x86_64.rpm 
(9/9): p11-kit-devel-0.23.22-1.el8.x86_64.rpm 
--------------------------------------------------------------------------------------------------------------------------------------
Gesamt                                                                                                124 kB/s | 3.6 MB     00:29
Transaktionsüberprüfung wird ausgeführt
Transaktionsprüfung war erfolgreich.
Transaktion wird getestet
Die heruntergeladenen Pakete wurden bis zur nächsten erfolgreichen Transaktion im Zwischenspeicher abgelegt.
Sie können zwischengespeicherte Pakete mit dem Befehl »dnf clean packages« entfernen.
Fehler: Transaktionstest fehlerhaft:
  Datei /usr/lib64/.libgnutls.so.30.28.2.hmac aus der Installation von gnutls-devel-3.6.16-4.el8.x86_64 kollidiert mit der Datei aus dem Paket gnutls-3.6.16-4.el8.x86_64

Sorry for the german language in the output, but i think it´s still understandable!

Can you try edit your post, and format the output as “code”, otherwise no one will be able to read it.

The gnutls, which you have already installed, is from baseos repository.
Is the gnutls-devel from appstream repository?

It could be a (Rocky) build error for them both to provide the /usr/lib64/.libgnutls.so.30.28.2.hmac

On my Rocky 8.6, it says ‘gnutls’ is in “anaconda”, but ‘gnutls-devel’ is in appstream.

I was able to install gnutls-devel without issues.

[root@cm01 ~]# dnf install gnutls-devel
Last metadata expiration check: 1:51:06 ago on Tue 26 Jul 2022 06:49:00 PM MST.
Dependencies resolved.
===================================================================================================================================================================================================================== Package                                               Architecture                                  Version                                                  Repository                                        Size
=====================================================================================================================================================================================================================Installing:
 gnutls-devel                                          x86_64                                        3.6.16-4.el8                                             appstream                                        2.2 M
Installing dependencies:
 gmp-c++                                               x86_64                                        1:6.1.2-10.el8                                           baseos                                            32 k
 gmp-devel                                             x86_64                                        1:6.1.2-10.el8                                           baseos                                           186 k
 gnutls-c++                                            x86_64                                        3.6.16-4.el8                                             appstream                                         48 k
 gnutls-dane                                           x86_64                                        3.6.16-4.el8                                             appstream                                         51 k
 libidn2-devel                                         x86_64                                        2.2.0-1.el8                                              appstream                                         60 k
 libtasn1-devel                                        x86_64                                        4.13-3.el8                                               appstream                                        334 k
 nettle-devel                                          x86_64                                        3.4.1-7.el8                                              appstream                                        635 k
 p11-kit-devel                                         x86_64                                        0.23.22-1.el8                                            baseos                                            86 k

Transaction Summary
=====================================================================================================================================================================================================================Install  9 Packages

Total download size: 3.6 M
Installed size: 7.5 M
Is this ok [y/N]: y
Downloading Packages:
(1/9): gnutls-dane-3.6.16-4.el8.x86_64.rpm                                                                                                                                           308 kB/s |  51 kB     00:00
(2/9): gnutls-c++-3.6.16-4.el8.x86_64.rpm                                                                                                                                            278 kB/s |  48 kB     00:00
(3/9): libidn2-devel-2.2.0-1.el8.x86_64.rpm                                                                                                                                          895 kB/s |  60 kB     00:00
(4/9): libtasn1-devel-4.13-3.el8.x86_64.rpm                                                                                                                                          1.9 MB/s | 334 kB     00:00
(5/9): gmp-c++-6.1.2-10.el8.x86_64.rpm                                                                                                                                               687 kB/s |  32 kB     00:00
(6/9): nettle-devel-3.4.1-7.el8.x86_64.rpm                                                                                                                                           2.8 MB/s | 635 kB     00:00
(7/9): gnutls-devel-3.6.16-4.el8.x86_64.rpm                                                                                                                                          4.2 MB/s | 2.2 MB     00:00
(8/9): gmp-devel-6.1.2-10.el8.x86_64.rpm                                                                                                                                             1.1 MB/s | 186 kB     00:00
(9/9): p11-kit-devel-0.23.22-1.el8.x86_64.rpm                                                                                                                                        926 kB/s |  86 kB     00:00
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Total                                                                                                                                                                                6.4 MB/s | 3.6 MB     00:00     Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                                                             1/1   Installing       : p11-kit-devel-0.23.22-1.el8.x86_64                                                                                                                                                          1/9   Installing       : gmp-c++-1:6.1.2-10.el8.x86_64                                                                                                                                                               2/9   Running scriptlet: gmp-c++-1:6.1.2-10.el8.x86_64                                                                                                                                                               2/9   Installing       : gmp-devel-1:6.1.2-10.el8.x86_64                                                                                                                                                             3/9   Running scriptlet: gmp-devel-1:6.1.2-10.el8.x86_64                                                                                                                                                             3/9   Installing       : nettle-devel-3.4.1-7.el8.x86_64                                                                                                                                                             4/9   Installing       : libtasn1-devel-4.13-3.el8.x86_64                                                                                                                                                            5/9   Running scriptlet: libtasn1-devel-4.13-3.el8.x86_64                                                                                                                                                            5/9   Installing       : libidn2-devel-2.2.0-1.el8.x86_64                                                                                                                                                            6/9   Installing       : gnutls-dane-3.6.16-4.el8.x86_64                                                                                                                                                             7/9   Installing       : gnutls-c++-3.6.16-4.el8.x86_64                                                                                                                                                              8/9   Installing       : gnutls-devel-3.6.16-4.el8.x86_64                                                                                                                                                            9/9   Running scriptlet: gnutls-devel-3.6.16-4.el8.x86_64                                                                                                                                                            9/9   Verifying        : gnutls-c++-3.6.16-4.el8.x86_64                                                                                                                                                              1/9   Verifying        : gnutls-dane-3.6.16-4.el8.x86_64                                                                                                                                                             2/9   Verifying        : gnutls-devel-3.6.16-4.el8.x86_64                                                                                                                                                            3/9   Verifying        : libidn2-devel-2.2.0-1.el8.x86_64                                                                                                                                                            4/9   Verifying        : libtasn1-devel-4.13-3.el8.x86_64                                                                                                                                                            5/9   Verifying        : nettle-devel-3.4.1-7.el8.x86_64                                                                                                                                                             6/9   Verifying        : gmp-c++-1:6.1.2-10.el8.x86_64                                                                                                                                                               7/9   Verifying        : gmp-devel-1:6.1.2-10.el8.x86_64                                                                                                                                                             8/9   Verifying        : p11-kit-devel-0.23.22-1.el8.x86_64                                                                                                                                                          9/9

Installed:
  gmp-c++-1:6.1.2-10.el8.x86_64      gmp-devel-1:6.1.2-10.el8.x86_64   gnutls-c++-3.6.16-4.el8.x86_64       gnutls-dane-3.6.16-4.el8.x86_64   gnutls-devel-3.6.16-4.el8.x86_64   libidn2-devel-2.2.0-1.el8.x86_64
  libtasn1-devel-4.13-3.el8.x86_64   nettle-devel-3.4.1-7.el8.x86_64   p11-kit-devel-0.23.22-1.el8.x86_64

Complete!


[root@cm01 ~]# rpm -q gnutls gnutls-devel
gnutls-3.6.16-4.el8.x86_64
gnutls-devel-3.6.16-4.el8.x86_64

When I check the provides:

# dnf whatprovides /usr/lib64/.libgnutls.so.30.28.2.hmac
Last metadata expiration check: 1:52:12 ago on Tue 26 Jul 2022 06:49:00 PM MST.
gnutls-3.6.16-4.el8.x86_64 : A TLS protocol implementation
Repo        : @System
Matched from:
Filename    : /usr/lib64/.libgnutls.so.30.28.2.hmac

gnutls-3.6.16-4.el8.x86_64 : A TLS protocol implementation
Repo        : baseos
Matched from:
Filename    : /usr/lib64/.libgnutls.so.30.28.2.hmac

gnutls-devel-3.6.16-4.el8.x86_64 : Development files for the gnutls package
Repo        : appstream
Matched from:
Filename    : /usr/lib64/.libgnutls.so.30.28.2.hmac

The spec file notes that the files are shared. See here: SPECS/gnutls.spec · r8 · staging / rpms / gnutls · GitLab

Hi,
here the result from my check

dnf whatprovides /usr/lib64/.libgnutls.so.30.28.2.hmac
Rocky Linux 8 - AppStream                                                               3.8 MB/s | 9.1 MB     00:02
Rocky Linux 8 - BaseOS                                                                  3.5 MB/s | 5.5 MB     00:01
Rocky Linux 8 - Devel WARNING! FOR BUILDROOT AND KOJI USE                                90 kB/s | 2.6 MB     00:30
Rocky Linux 8 - Extras                                                                   19 kB/s |  11 kB     00:00
Rocky Linux 8 - PowerTools                                                              2.6 MB/s | 2.4 MB     00:00
Letzte Prüfung auf abgelaufene Metadaten: vor 0:00:01 am Mi 27 Jul 2022 17:59:26 CEST.
gnutls-3.6.16-4.el8.x86_64 : A TLS protocol implementation
Quelle      : @System
Übereinstimmung von:
Dateiname     : /usr/lib64/.libgnutls.so.30.28.2.hmac

gnutls-3.6.16-4.el8.x86_64 : A TLS protocol implementation
Quelle      : baseos
Übereinstimmung von:
Dateiname     : /usr/lib64/.libgnutls.so.30.28.2.hmac

gnutls-devel-3.6.16-4.el8.x86_64 : Development files for the gnutls package
Quelle      : appstream
Übereinstimmung von:
Dateiname     : /usr/lib64/.libgnutls.so.30.28.2.hmac

I have a feeling that Devel WARNING! FOR BUILDROOT AND KOJI USE might be the problem here, try this:

dnf config-manager --set-disabled devel
dnf clean all
dnf install gnutls-devel

either that, or something is really messed up with your installation or is this an upgrade from CentOS? Or perhaps try:

dnf update

once system has been updated, then try to install that package.

The “anaconda” and “System” are typical names of “repos” that the installer did use.

Having the ‘devel’ repo enabled could cause all kinds of problems, but I don’t actually see a version of ‘gnutls-devel’ inside the ‘devel’ repo.

True yes I did check that, but the warning itself is enough unless you are doing that kind of building then it’s not needed. Either way, I tried with and without it enabled and was able to get gnutls-devel installed, which leads me to believe either:

  1. System not quite up-to-date with perhaps gnutls itself.
  2. System was maybe upgraded and in a bit of a mess with package conflicts.

Another option that could be tried is:

dnf clean all
dnf reinstall gnutls

to force it to pull it from a repo and install over the top of the existing one. As mine doesn’t conflict with the gnutls-devel, despite having that hmac file inside both packages.

Thanks for this hint!

Neuinstallieren:
 gnutls                    x86_64                    3.6.16-4.el8                       baseos                    1.0 M

Transaktionsübersicht
========================================================================================================================

Gesamte Downloadgröße: 1.0 M
Installationsgröße: 2.9 M
Ist dies in Ordnung? [j/N]: j
Pakete werden heruntergeladen:
gnutls-3.6.16-4.el8.x86_64.rpm                                                          2.3 MB/s | 1.0 MB     00:00
------------------------------------------------------------------------------------------------------------------------
Gesamt                                                                                  1.5 MB/s | 1.0 MB     00:00
Transaktionsüberprüfung wird ausgeführt
Transaktionsprüfung war erfolgreich.
Transaktion wird getestet
Transaktionstest war erfolgreich.
Transaktion wird ausgeführt
  Vorbereitung läuft    :                                                                                           1/1
  Neuinstallieren       : gnutls-3.6.16-4.el8.x86_64                                                                1/2
  Aufräumen             : gnutls-3.6.16-4.el8.x86_64                                                                2/2
  Ausgeführtes Scriptlet: gnutls-3.6.16-4.el8.x86_64                                                                2/2
  Überprüfung läuft     : gnutls-3.6.16-4.el8.x86_64                                                                1/2
  Überprüfung läuft     : gnutls-3.6.16-4.el8.x86_64                                                                2/2
Reinstalliert:
  gnutls-3.6.16-4.el8.x86_64
Fertig.

That was the solution for my problem!

Thankx all for the big help!

1 Like