Installation Fail - Rockylinux

Trying to Install ApisCP on the latest Rocky Linux.,
I got this error.

[root@netserver playbooks]# grep -m1 failed=1 -B20 /root/apnscp-bootstrapper.log
2022-07-14 02:17:52,335 p=10354 u=cache n=ansible | changed: [localhost]
2022-07-14 02:17:52,356 p=10354 u=cache n=ansible | TASK [packages/install : Loa d packages from os.yml] ****************************
2022-07-14 02:17:52,386 p=10354 u=cache n=ansible | ok: [localhost]
2022-07-14 02:17:52,453 p=10354 u=cache n=ansible | TASK [packages/install : Add RPM channel OS] ***********************************
2022-07-14 02:17:52,514 p=10354 u=cache n=ansible | skipping: [localhost]
2022-07-14 02:17:52,579 p=10354 u=cache n=ansible | TASK [packages/install : Imp ort RPM key OS] ************************************
2022-07-14 02:17:52,640 p=10354 u=cache n=ansible | skipping: [localhost]
2022-07-14 02:17:52,660 p=10354 u=cache n=ansible | TASK [packages/install : Ins tall packages] *************************************
2022-07-14 02:18:56,887 p=10354 u=cache n=ansible | fatal: [localhost]: FAILED! => changed=false
attempts: 2
failures: []
msg: |-
Unknown Error occured: Transaction test error:
file /usr/lib64/.libgnutls.so.30.28.2.hmac from install of gnutls-devel-3. 6.16-4.el8.x86_64 conflicts with file from package gnutls-3.6.16-4.el8.x86_64
rc: 1
results: []
2022-07-14 02:18:56,890 p=10354 u=cache n=ansible | RUNNING HANDLER [common : no op] ************************************************
2022-07-14 02:18:56,890 p=10354 u=cache n=ansible | RUNNING HANDLER [filesystem/ make-mounts : Reload tmp.mount] ********************
2022-07-14 02:18:56,890 p=10354 u=cache n=ansible | RUNNING HANDLER [filesystem/ make-mounts : Restart polkitd] *********************
2022-07-14 02:18:56,892 p=10354 u=cache n=ansible | PLAY RECAP ***************** ****************************************************
2022-07-14 02:18:56,892 p=10354 u=cache n=ansible | localhost : ok=126 changed=42 unreachable=0 failed=1 skipped=67 rescued=0 ign ored=0

I’m not able to reproduce this on a fresh build of Rocky. Both gnutls and gnutls-devel install as expected. gnutls is installed at system inception as systemd requires it.

rpm -qf /usr/lib64/.libgnutls.so.30.28.2.hmac 
# gnutls-3.6.16-4.el8.x86_64
# gnutls-devel-3.6.16-4.el8.x86_64
cat /usr/lib64/.libgnutls.so.30.28.2.hmac 
# 94e14b3461b496ef9df59be61a2e3980d9ef6564a3c0a65c29339a9cef4f791c

rpm -e gnutls-devel
yum install -y gnutls-devel
# Installs OK

What type of Rocky install did you select or was this from a VPS provider? If VPS provider, which one?

I have a Dedicated server on Oneprovider, they don’t have Rocky or Alma. just CentOS Stream.
I install CentOS Stream 8 and did the migration fallowing this guide

The easy-but-slightly-less-secure way

https://docs.rockylinux.org/guides/migrate2rocky/

Everything went great no error.

ApisCP supports Stream 8 out of the box. It smells like your RPM database is corrupted during the migration to Rocky (or Alma).

Reset the server, install ApisCP on Stream. Once that’s installed run cpcmd scope:set system.distro rocky

You may also switch to Alma with cpcmd scope:set system.distro alma; they should be bug-for-bug the same except for branding.

Ok, I did that, everything working now. thank you for your help.

1 Like