Skip to main content

Hi,

We are looking at upgrading our Centreon Solution at the moment, but we have run into some problems, so I am hoping someone can help. Firstly let me just say, I am not the most experienced with Linux or Centreon.

So What we have is a Redhat Centreon Server, and we did have a Centos Remote Server, this obviously is now obsolete, so we used a script from Github to convert it to Oracle Linux, and this looks to have worked okay. The next bit we were looking at doing was to upgrade Centreon to 24.04, to this end we changed the repo to what we believe is the right one for 24.04

baseurl=https://packages.centreon.com/rpm-standard/24.04/el8/stable/$basearch/

The problem we are having when we run sudo yum update, it initially looks to go through okay, but then we get the following errors:

--> Finished Dependency Resolution
Error: Package: perl-FFI-CheckLib-0.31-1.el8.noarch (centreon-plugins-24.04-stab                                                                                                                                                             le-noarch)
           Requires: perl(List::Util) >= 1.33
           Installed: perl-Scalar-List-Utils-1.27-248.el7.x86_64 (@anaconda/7)
               perl(List::Util) = 1.27
Error: Package: perl-HTTP-Daemon-6.16-1.el8.noarch (centreon-plugins-24.04-stabl                                                                                                                                                             e-noarch)
           Requires: perl(IO::Socket::IP) >= 0.32
           Installed: perl-IO-Socket-IP-0.21-5.el7.noarch (@anaconda/7)
               perl(IO::Socket::IP) = 0.21
Error: Package: centreon-broker-core-24.04.9-1.el8.x86_64 (centreon-24.04-stable                                                                                                                                                             )
           Requires: gnutls >= 3.6.0
           Installed: gnutls-3.3.29-9.el7_6.x86_64 (@anaconda/7)
               gnutls = 3.3.29-9.el7_6
           Available: gnutls-3.3.26-9.0.1.el7.i686 (ol7_latest)
               gnutls = 3.3.26-9.0.1.el7
           Available: gnutls-3.3.29-8.0.1.el7.i686 (ol7_latest)
               gnutls = 3.3.29-8.0.1.el7
Error: Package: perl-ZMQ-FFI-1.19-1.el8.noarch (centreon-plugins-24.04-stable-no                                                                                                                                                             arch)
           Requires: perl(Import::Into) >= 1.002005
           Installed: perl-Import-Into-1.002002-1.el7.noarch (@centreon-stable-n                                                                                                                                                             oarch/7)
               perl(Import::Into) = 1.002002
Error: Package: perl-ZMQ-FFI-1.19-1.el8.noarch (centreon-plugins-24.04-stable-no                                                                                                                                                             arch)
           Requires: perl(Moo::Role)
Error: Package: perl-ZMQ-FFI-1.19-1.el8.noarch (centreon-plugins-24.04-stable-no                                                                                                                                                             arch)
           Requires: perl(Moo) >= 1.004005
Error: Package: centreon-broker-core-24.04.9-1.el8.x86_64 (centreon-24.04-stable                                                                                                                                                             )
           Requires: mariadb-connector-c >= 3.1.10
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
IS any one able to help?

Everything we have tried has failed so far.

The server is still working at the moment, but we just need to get passed these errors.

Thanks for any help given.

Anthony

Hello ​@alamb200,

Can you try running the following commands and then update your Centreon?

dnf install -y dnf-plugins-core

dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm

dnf config-manager --set-enabled ol8_codeready_builder


Hi,

Thanks for the reply.

I can’t get dnf to work

proot@cp ~]# dnf install -y dnf-plugins-core
-bash: dnf: command not found

I couldn’t get dnf to install either, I have been using yum, so maybe can we start there?
 


What version is your OS?


Here you go:

[root@cp ~]# cat /etc/os-release
NAME="Oracle Linux Server"
VERSION="7.9"
ID="ol"
ID_LIKE="fedora"
VARIANT="Server"
VARIANT_ID="server"
VERSION_ID="7.9"
PRETTY_NAME="Oracle Linux Server 7.9"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:oracle:linux:7:9:server"
HOME_URL="https://linux.oracle.com/"
BUG_REPORT_URL="https://github.com/oracle/oracle-linux"

ORACLE_BUGZILLA_PRODUCT="Oracle Linux 7"
ORACLE_BUGZILLA_PRODUCT_VERSION=7.9
ORACLE_SUPPORT_PRODUCT="Oracle Linux"
ORACLE_SUPPORT_PRODUCT_VERSION=7.9
[root@cp ~]#
 


So what happens if you replace dnf by yum in the commands I posted above?


sudo yum install -y yum-plugins-core
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * epel: d2lzkl7pfhq30w.cloudfront.net
No package yum-plugins-core available.
Error: Nothing to do
 

proot@cp ~]# sudo yum install -y https://dl.fedoraproject.org/pub/epel/epel-rele                                                                                                                                                             ase-latest-8.noarch.rpm
Loaded plugins: fastestmirror
epel-release-latest-8.noarch.rpm                         |  24 kB     00:00
Examining /var/tmp/yum-root-oR9wGW/epel-release-latest-8.noarch.rpm: epel-releas                                                                                                                                                             e-8-21.el8.noarch
Marking /var/tmp/yum-root-oR9wGW/epel-release-latest-8.noarch.rpm as an update t                                                                                                                                                             o epel-release-7-14.noarch
Resolving Dependencies
--> Running transaction check
---> Package epel-release.noarch 0:7-14 will be updated
---> Package epel-release.noarch 0:8-21.el8 will be an update
--> Processing Dependency: redhat-release >= 8 for package: epel-release-8-21.el                                                                                                                                                             8.noarch
Loading mirror speeds from cached hostfile
 * epel: d2lzkl7pfhq30w.cloudfront.net
--> Finished Dependency Resolution
Error: Package: epel-release-8-21.el8.noarch (/epel-release-latest-8.noarch)
           Requires: redhat-release >= 8
           Installed: 1:redhat-release-server-7.9-6.0.1.el7_9.x86_64 (installed)
               redhat-release = 7.9-6.0.1.el7_9
           Available: 1:redhat-release-server-7.5-8.0.1.el7.x86_64 (ol7_latest)
               redhat-release = 7.5-8.0.1.el7
           Available: 1:redhat-release-server-7.5-8.0.3.el7.x86_64 (ol7_latest)
               redhat-release = 7.5-8.0.3.el7
           Available: 1:redhat-release-server-7.5-8.0.5.el7.x86_64 (ol7_latest)
               redhat-release = 7.5-8.0.5.el7
           Available: 1:redhat-release-server-7.6-4.0.1.el7.x86_64 (ol7_latest)
               redhat-release = 7.6-4.0.1.el7
           Available: 1:redhat-release-server-7.7-10.0.1.el7.x86_64 (ol7_latest)
               redhat-release = 7.7-10.0.1.el7
           Available: 1:redhat-release-server-7.8-2.0.1.el7.x86_64 (ol7_latest)
               redhat-release = 7.8-2.0.1.el7
           Available: 1:redhat-release-server-7.9-3.0.1.el7.x86_64 (ol7_latest)
               redhat-release = 7.9-3.0.1.el7
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
root@cp ~]#
 

Âroot@cp ~]# sudo yum config-manager --set-enabled ol8_codeready_builder
Loaded plugins: fastestmirror
Usage: yum eoptions] COMMAND

List of Commands:

check          Check for problems in the rpmdb
check-update   Check for available package updates
clean          Remove cached data
deplist        List a package's dependencies
distribution-synchronization Synchronise installed packages to the latest available versions
downgrade      downgrade a package
erase          Remove a package or packages from your system
fs             Acts on the filesystem data of the host, mainly for removing docs/lanuages for minimal hosts.
fssnapshot     Creates filesystem snapshots, or lists/deletes current snapshots.
groups         Display, or use, the groups information
help           Display a helpful usage message
history        Display, or use, the transaction history
info           Display details about a package or group of packages
install        Install a package or packages on your system
list           List a package or groups of packages
load-transaction load a saved transaction from filename
makecache      Generate the metadata cache
provides       Find what package provides the given value
reinstall      reinstall a package
repo-pkgs      Treat a repo. as a group of packages, so we can install/remove all of them
repolist       Display the configured software repositories
search         Search package details for the given string
shell          Run an interactive yum shell
swap           Simple way to swap packages, instead of using shell
update         Update a package or packages on your system
update-minimal Works like upgrade, but goes to the 'newest' package match which fixes a problem that affects your system
updateinfo     Acts on repository update information
upgrade        Update packages taking obsoletes into account
version        Display a version for the machine and/or available repos.


Command line error: no such option: --set-enabled
 


Looking at this line:

sudo yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm

Should I change it to 7 rather than 8 and try again?

 


Yes.


Reply