Hello,
I am receiving errors when trying to update my Nagios server OS.. Thsi is happening only with this server therefore I assume it's related. Please advise.
Error: Package: libjq1-1.5-1.0.1.el7.x86_64 (@ol7_addons)
Requires: libonig.so.2()(64bit)
Removing: oniguruma-5.9.5-3.el7.x86_64 (@ol7_addons)
libonig.so.2()(64bit)
Updated By: oniguruma-6.8.2-1.el7.x86_64 (epel)
~libonig.so.5()(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
Here's a partial list of my repositories..
epel/x86_64 Extra Packages for Enterprise Linux 7 - x86_64 13,516
nagios-base Nagios 100
nagiosxi-deps Nagios XI Dependencies
Nagios server returning dependency errors during update
-
- Posts: 20
- Joined: Tue Mar 25, 2014 2:00 pm
Re: Nagios server returning dependency errors during update
What are the outputs from the following commands:
Code: Select all
rpm -qa |grep 'nagios\|oniguruma\|libjq' |sort
Code: Select all
yum info libjq1
Code: Select all
yum info oniguruma
Code: Select all
yum info nagiosxi
If you didn't get an 8% raise over the course of the pandemic, you took a pay cut.
Discussion of wages is protected speech under the National Labor Relations Act, and no employer can tell you you can't disclose your pay with your fellow employees.
Discussion of wages is protected speech under the National Labor Relations Act, and no employer can tell you you can't disclose your pay with your fellow employees.
-
- Posts: 20
- Joined: Tue Mar 25, 2014 2:00 pm
Re: Nagios server returning dependency errors during update
rpm -qa |grep 'nagios\|oniguruma\|libjq' |sort
libjq1-1.5-1.0.1.el7.x86_64
nagios-repo-7-4.el7.noarch
nagiosxi-deps-el7-5.8.1-1.noarch
oniguruma-5.9.5-3.el7.x86_64
yum info libjq1
Loaded plugins: langpacks, ulninfo
Installed Packages
Name : libjq1
Arch : x86_64
Version : 1.5
Release : 1.0.1.el7
Size : 289 k
Repo : installed
From repo : ol7_addons
Summary : Library for a lightweight and flexible command-line JSON processor
URL : http://stedolan.github.io/jq/
License : MIT and ASL 2.0 and CC-BY and GPLv3
Description : Library for a lightweight and flexible command-line JSON processor.
yum info oniguruma
Loaded plugins: langpacks, ulninfo
Installed Packages
Name : oniguruma
Arch : x86_64
Version : 5.9.5
Release : 3.el7
Size : 555 k
Repo : installed
From repo : ol7_addons
Summary : Regular expressions library
URL : http://www.geocities.jp/kosako3/oniguruma/
License : BSD
Description : Oniguruma is a regular expressions library.
: The characteristics of this library is that different character encoding
: for every regular expression object can be specified.
: (supported APIs: GNU regex, POSIX and Oniguruma native)
Available Packages
Name : oniguruma
Arch : x86_64
Version : 6.8.2
Release : 1.el7
Size : 181 k
Repo : epel/x86_64
Summary : Regular expressions library
URL : https://github.com/kkos/oniguruma/
License : BSD
Description : Oniguruma is a regular expressions library.
: The characteristics of this library is that different character encoding
: for every regular expression object can be specified.
: (supported APIs: GNU regex, POSIX and Oniguruma native)
yum info nagiosxi
Loaded plugins: langpacks, ulninfo
Available Packages
Name : nagiosxi
Arch : x86_64
Version : 5.7.5
Release : 1.el7
Size : 62 M
Repo : nagios-base
Summary : Nagios XI IT infrastructure monitoring solution
URL : http://www.nagios.com/
License : Nagios Software License
Description : Nagios XI is the most powerful IT infrastructure monitoring solution on the market. Nagios XI extends on proven, enterprise-class Open Source components to deliver the best monitoring
: solution for today's demanding organizational requirements. Designed for scalability and flexibility, XI is designed to make problematic IT monitoring tasks simple, while retaining the
: powerful attributes of its enterprise-class foundation blocks.
libjq1-1.5-1.0.1.el7.x86_64
nagios-repo-7-4.el7.noarch
nagiosxi-deps-el7-5.8.1-1.noarch
oniguruma-5.9.5-3.el7.x86_64
yum info libjq1
Loaded plugins: langpacks, ulninfo
Installed Packages
Name : libjq1
Arch : x86_64
Version : 1.5
Release : 1.0.1.el7
Size : 289 k
Repo : installed
From repo : ol7_addons
Summary : Library for a lightweight and flexible command-line JSON processor
URL : http://stedolan.github.io/jq/
License : MIT and ASL 2.0 and CC-BY and GPLv3
Description : Library for a lightweight and flexible command-line JSON processor.
yum info oniguruma
Loaded plugins: langpacks, ulninfo
Installed Packages
Name : oniguruma
Arch : x86_64
Version : 5.9.5
Release : 3.el7
Size : 555 k
Repo : installed
From repo : ol7_addons
Summary : Regular expressions library
URL : http://www.geocities.jp/kosako3/oniguruma/
License : BSD
Description : Oniguruma is a regular expressions library.
: The characteristics of this library is that different character encoding
: for every regular expression object can be specified.
: (supported APIs: GNU regex, POSIX and Oniguruma native)
Available Packages
Name : oniguruma
Arch : x86_64
Version : 6.8.2
Release : 1.el7
Size : 181 k
Repo : epel/x86_64
Summary : Regular expressions library
URL : https://github.com/kkos/oniguruma/
License : BSD
Description : Oniguruma is a regular expressions library.
: The characteristics of this library is that different character encoding
: for every regular expression object can be specified.
: (supported APIs: GNU regex, POSIX and Oniguruma native)
yum info nagiosxi
Loaded plugins: langpacks, ulninfo
Available Packages
Name : nagiosxi
Arch : x86_64
Version : 5.7.5
Release : 1.el7
Size : 62 M
Repo : nagios-base
Summary : Nagios XI IT infrastructure monitoring solution
URL : http://www.nagios.com/
License : Nagios Software License
Description : Nagios XI is the most powerful IT infrastructure monitoring solution on the market. Nagios XI extends on proven, enterprise-class Open Source components to deliver the best monitoring
: solution for today's demanding organizational requirements. Designed for scalability and flexibility, XI is designed to make problematic IT monitoring tasks simple, while retaining the
: powerful attributes of its enterprise-class foundation blocks.
Re: Nagios server returning dependency errors during update
Looks like this is caused by libjq1 in an Oracle Linux repo (ol7_addons).
If we exclude that package, we can move forward. If you add the following line to the file in /etc/yum.repos.d where ol7_addons is defined, under the header [ol7_addons]
jq is actually available in the CentOS repos, you can safely replace jq from the Oracle repos with that package.
If we exclude that package, we can move forward. If you add the following line to the file in /etc/yum.repos.d where ol7_addons is defined, under the header [ol7_addons]
Code: Select all
exclude=libjq1
If you didn't get an 8% raise over the course of the pandemic, you took a pay cut.
Discussion of wages is protected speech under the National Labor Relations Act, and no employer can tell you you can't disclose your pay with your fellow employees.
Discussion of wages is protected speech under the National Labor Relations Act, and no employer can tell you you can't disclose your pay with your fellow employees.
-
- Posts: 20
- Joined: Tue Mar 25, 2014 2:00 pm
Re: Nagios server returning dependency errors during update
I added the line as requested and it is still not working. The file was in:
/etc/yum.repos.d/oracle-linux-ol7.repo
I did run "yum clean all" as well when it first failed..
Added line as follows:
[ol7_addons]
name=Oracle Linux $releasever Add ons ($basearch)
baseurl=http://yum$ociregion.oracle.com/repo/OracleLinux/OL7/addons/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/-------------
exclude=libjq1
gpgcheck=1
enabled=1
ERROR as follows:
--> Finished Dependency Resolution
Error: Package: libjq1-1.5-1.0.1.el7.x86_64 (@ol7_addons)
Requires: libonig.so.2()(64bit)
Removing: oniguruma-5.9.5-3.el7.x86_64 (@ol7_addons)
libonig.so.2()(64bit)
Updated By: oniguruma-6.8.2-1.el7.x86_64 (epel)
~libonig.so.5()(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
/etc/yum.repos.d/oracle-linux-ol7.repo
I did run "yum clean all" as well when it first failed..
Added line as follows:
[ol7_addons]
name=Oracle Linux $releasever Add ons ($basearch)
baseurl=http://yum$ociregion.oracle.com/repo/OracleLinux/OL7/addons/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/-------------
exclude=libjq1
gpgcheck=1
enabled=1
ERROR as follows:
--> Finished Dependency Resolution
Error: Package: libjq1-1.5-1.0.1.el7.x86_64 (@ol7_addons)
Requires: libonig.so.2()(64bit)
Removing: oniguruma-5.9.5-3.el7.x86_64 (@ol7_addons)
libonig.so.2()(64bit)
Updated By: oniguruma-6.8.2-1.el7.x86_64 (epel)
~libonig.so.5()(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
Re: Nagios server returning dependency errors during update
What happens now if you run the following commands:
Code: Select all
yum remove -y libjq1
yum update
If you didn't get an 8% raise over the course of the pandemic, you took a pay cut.
Discussion of wages is protected speech under the National Labor Relations Act, and no employer can tell you you can't disclose your pay with your fellow employees.
Discussion of wages is protected speech under the National Labor Relations Act, and no employer can tell you you can't disclose your pay with your fellow employees.
-
- Posts: 20
- Joined: Tue Mar 25, 2014 2:00 pm
Re: Nagios server returning dependency errors during update
The update ran successfully after removing the package as advised. I assume this is no longer required by Nagios? (or do I need to reinstall it after updating the remaining items)
Re: Nagios server returning dependency errors during update
Glad to hear that fixed it.
I have no idea how it was put into a broken state, but I think jq is or was installed from the Oracle repo, which was split into two packages, jq and libjq1, so Yum installed both, and the dep for libjq1, libonig.
Fast-forward a little and jq and libjq1 are now merged into the same package, jq.libjq1 is installed on your system, and still depends on libonig.
Fast-forward a little more and libonig changes its name to onigurama. At this point, Yum has been trying to update libjq1, but not finding anything in the repos, and it breaks because libonig is no longer a thing anywhere.
Nagios doesn't depend on jq directly, but maybe a check wizard does; wizards have a tendency to install things they need if/when you run them.
I have no idea how it was put into a broken state, but I think jq is or was installed from the Oracle repo, which was split into two packages, jq and libjq1, so Yum installed both, and the dep for libjq1, libonig.
Fast-forward a little and jq and libjq1 are now merged into the same package, jq.libjq1 is installed on your system, and still depends on libonig.
Fast-forward a little more and libonig changes its name to onigurama. At this point, Yum has been trying to update libjq1, but not finding anything in the repos, and it breaks because libonig is no longer a thing anywhere.
Nagios doesn't depend on jq directly, but maybe a check wizard does; wizards have a tendency to install things they need if/when you run them.
If you didn't get an 8% raise over the course of the pandemic, you took a pay cut.
Discussion of wages is protected speech under the National Labor Relations Act, and no employer can tell you you can't disclose your pay with your fellow employees.
Discussion of wages is protected speech under the National Labor Relations Act, and no employer can tell you you can't disclose your pay with your fellow employees.