Nagios 5.2 upgrade - Perl issue
Nagios 5.2 upgrade - Perl issue
Hi,
I'm trying to upgrade Nagios from 2014R2.7 to 5.2 and I'm getting the following errors;
Transaction Check Error:
file /usr/share/man/man3/Test::Builder.3pm.gz from install of perl-Test-Simple-0.98-1.el5.rf.noarch conflicts with file from package perl-5.8.8-43.el5_11.x86_64
file /usr/share/man/man3/Test::Builder::Module.3pm.gz from install of perl-Test-Simple-0.98-1.el5.rf.noarch conflicts with file from package perl-5.8.8-43.el5_11.x86_64
file /usr/share/man/man3/Test::Builder::Tester.3pm.gz from install of perl-Test-Simple-0.98-1.el5.rf.noarch conflicts with file from package perl-5.8.8-43.el5_11.x86_64
file /usr/share/man/man3/Test::Builder::Tester::Color.3pm.gz from install of perl-Test-Simple-0.98-1.el5.rf.noarch conflicts with file from package perl-5.8.8-43.el5_11.x86_64
file /usr/share/man/man3/Test::More.3pm.gz from install of perl-Test-Simple-0.98-1.el5.rf.noarch conflicts with file from package perl-5.8.8-43.el5_11.x86_64
file /usr/share/man/man3/Test::Simple.3pm.gz from install of perl-Test-Simple-0.98-1.el5.rf.noarch conflicts with file from package perl-5.8.8-43.el5_11.x86_64
file /usr/share/man/man3/Test::Tutorial.3pm.gz from install of perl-Test-Simple-0.98-1.el5.rf.noarch conflicts with file from package perl-5.8.8-43.el5_11.x86_64
I tried removing the Perl 5.8.8 package before the upgrade but it "Fubared" my install so I had to rollback to my checkpoint.
Could someone please advise if removing the perl package is the correct solution?
Thanks!
I'm trying to upgrade Nagios from 2014R2.7 to 5.2 and I'm getting the following errors;
Transaction Check Error:
file /usr/share/man/man3/Test::Builder.3pm.gz from install of perl-Test-Simple-0.98-1.el5.rf.noarch conflicts with file from package perl-5.8.8-43.el5_11.x86_64
file /usr/share/man/man3/Test::Builder::Module.3pm.gz from install of perl-Test-Simple-0.98-1.el5.rf.noarch conflicts with file from package perl-5.8.8-43.el5_11.x86_64
file /usr/share/man/man3/Test::Builder::Tester.3pm.gz from install of perl-Test-Simple-0.98-1.el5.rf.noarch conflicts with file from package perl-5.8.8-43.el5_11.x86_64
file /usr/share/man/man3/Test::Builder::Tester::Color.3pm.gz from install of perl-Test-Simple-0.98-1.el5.rf.noarch conflicts with file from package perl-5.8.8-43.el5_11.x86_64
file /usr/share/man/man3/Test::More.3pm.gz from install of perl-Test-Simple-0.98-1.el5.rf.noarch conflicts with file from package perl-5.8.8-43.el5_11.x86_64
file /usr/share/man/man3/Test::Simple.3pm.gz from install of perl-Test-Simple-0.98-1.el5.rf.noarch conflicts with file from package perl-5.8.8-43.el5_11.x86_64
file /usr/share/man/man3/Test::Tutorial.3pm.gz from install of perl-Test-Simple-0.98-1.el5.rf.noarch conflicts with file from package perl-5.8.8-43.el5_11.x86_64
I tried removing the Perl 5.8.8 package before the upgrade but it "Fubared" my install so I had to rollback to my checkpoint.
Could someone please advise if removing the perl package is the correct solution?
Thanks!
Re: Nagios 5.2 upgrade - Perl issue
Try uninstalling perl-Test-Simple:
Then try the upgrade again.
Thank you
Code: Select all
yum remove perl-Test-SimpleThank you
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Nagios 5.2 upgrade - Perl issue
Or you can perform the following
then proceed with the upgrade
Code: Select all
yum install --disablerepo=rpmforge -y 'perl(Test::Simple)' 'perl(Class::Accessor)' perl-Params-Validate perl-Config-Tiny perl-Math-Calc-UnitsRe: Nagios 5.2 upgrade - Perl issue
Hi,
So I ran both command;
yum remove perl-Test-Simple --> Package(s) perl-Test-Simple available, but not installed.
yum install --disablerepo=rpmforge -y 'perl(Test::Simple)' 'perl(Class::Accessor)' perl-Params-Validate perl-Config-Tiny perl-Math-Calc-Units
I'm having some trouble finding what the -y switches does but my guess is it only exclude some packages from the repo?
Anyway, after both commands ran, I still have the exact same output.
So I ran both command;
yum remove perl-Test-Simple --> Package(s) perl-Test-Simple available, but not installed.
yum install --disablerepo=rpmforge -y 'perl(Test::Simple)' 'perl(Class::Accessor)' perl-Params-Validate perl-Config-Tiny perl-Math-Calc-Units
I'm having some trouble finding what the -y switches does but my guess is it only exclude some packages from the repo?
Anyway, after both commands ran, I still have the exact same output.
Re: Nagios 5.2 upgrade - Perl issue
Here's a bit more of the log;
Code: Select all
Appending installation info to /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/perllocal.pod
Extra Plugins upgraded OK
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: centos.mirror.iweb.ca
* epel: mirror.symnds.com
* extras: centos.mirror.iweb.ca
* rpmforge: mirror.team-cymru.org
* updates: centos.mirror.iweb.ca
Excluding Packages in global exclude list
Finished
Setting up Install Process
Package perl-Number-Format-1.73-1.el5.noarch already installed and latest version
Package 2:nmap-6.47-1.x86_64 already installed and latest version
Package subversion-1.6.11-12.el5_10.x86_64 already installed and latest version
Nothing to do
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: centos.mirror.iweb.ca
* epel: mirror.symnds.com
* extras: centos.mirror.iweb.ca
* rpmforge: mirror.team-cymru.org
* updates: centos.mirror.iweb.ca
Excluding Packages in global exclude list
Finished
Setting up Install Process
Package perl-Class-Accessor-0.34-1.el5.rf.noarch already installed and latest version
Package perl-Params-Validate-0.95-1.el5.rf.x86_64 already installed and latest version
Package perl-Config-Tiny-2.12-1.el5.rf.noarch already installed and latest version
Package perl-Math-Calc-Units-1.07-6.el5.noarch already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package perl-Test-Simple.noarch 0:0.98-1.el5.rf set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
perl-Test-Simple noarch 0.98-1.el5.rf rpmforge 122 k
Transaction Summary
================================================================================
Install 1 Package(s)
Upgrade 0 Package(s)
Total size: 122 k
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Check Error:
file /usr/share/man/man3/Test::Builder.3pm.gz from install of perl-Test-Simple-0.98-1.el5.rf.noarch conflicts with file from package perl-5.8.8-43.el5_11.x86_64
file /usr/share/man/man3/Test::Builder::Module.3pm.gz from install of perl-Test-Simple-0.98-1.el5.rf.noarch conflicts with file from package perl-5.8.8-43.el5_11.x86_64
file /usr/share/man/man3/Test::Builder::Tester.3pm.gz from install of perl-Test-Simple-0.98-1.el5.rf.noarch conflicts with file from package perl-5.8.8-43.el5_11.x86_64
file /usr/share/man/man3/Test::Builder::Tester::Color.3pm.gz from install of perl-Test-Simple-0.98-1.el5.rf.noarch conflicts with file from package perl-5.8.8-43.el5_11.x86_64
file /usr/share/man/man3/Test::More.3pm.gz from install of perl-Test-Simple-0.98-1.el5.rf.noarch conflicts with file from package perl-5.8.8-43.el5_11.x86_64
file /usr/share/man/man3/Test::Simple.3pm.gz from install of perl-Test-Simple-0.98-1.el5.rf.noarch conflicts with file from package perl-5.8.8-43.el5_11.x86_64
file /usr/share/man/man3/Test::Tutorial.3pm.gz from install of perl-Test-Simple-0.98-1.el5.rf.noarch conflicts with file from package perl-5.8.8-43.el5_11.x86_64
Error Summary
-------------
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Nagios 5.2 upgrade - Perl issue
Apparently the rpmforge version of perl-Test-Simple has conflicts with the perl man files you have.
Here is a work around
edit the Nagios XI upgrade script
/tmp/nagiosxi/upgrade
On line 716 change the yum install to start with
this should resolve the upgrade issue
Here is a work around
edit the Nagios XI upgrade script
/tmp/nagiosxi/upgrade
On line 716 change the yum install to start with
Code: Select all
yum install --disablerepo=rpmforge -y Re: Nagios 5.2 upgrade - Perl issue
Out of curiosity, that is from downloading the latest upgrade manually ?
If I go that route, the 716th line is "cd ./subcomponents/webinject"
Thanks for you help !
If I go that route, the 716th line is "cd ./subcomponents/webinject"
Code: Select all
# reinstall webinject to make sure we have proper permissions
(
cd ./subcomponents/webinject
./install
)
Re: Nagios 5.2 upgrade - Perl issue
Did this solve your upgrade issue with the line yum install --disablerepo=rpmforge -y that @scottwilkerson posted?
For reference, the -y will eliminate any prompts that ask you yes/no.
For reference, the -y will eliminate any prompts that ask you yes/no.
Former Nagios Employee
Re: Nagios 5.2 upgrade - Perl issue
Thanks for the information regarding the -yrkennedy wrote:Did this solve your upgrade issue with the line yum install --disablerepo=rpmforge -y that @scottwilkerson posted?
For reference, the -y will eliminate any prompts that ask you yes/no.
It did not solve the issue when I did run the disablerepo=rpmforce command and then ran the nagios upgrade again.
I'm still looking where to put the line in the upgrade file since the 716th line doesn't appears to be where it should go in my upgrage file
thanks!
Re: Nagios 5.2 upgrade - Perl issue
In previous versions it was 716, I believe the line that needs to be changed is 705 in 5.2.1 -
Change it to -
Code: Select all
yum install -y 'perl(Test::Simple)' 'perl(Class::Accessor)' perl-Params-Validate perl-Config-Tiny perl-Math-Calc-Units
Code: Select all
yum install --disablerepo=rpmforge -y 'perl(Test::Simple)' 'perl(Class::Accessor)' perl-Params-Validate perl-Config-Tiny perl-Math-Calc-Units
Former Nagios Employee