Page 1 of 2
Nagios 5.2 upgrade - Perl issue
Posted: Tue Nov 10, 2015 3:14 pm
by rawwrr
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!
Re: Nagios 5.2 upgrade - Perl issue
Posted: Tue Nov 10, 2015 5:10 pm
by ssax
Try uninstalling perl-Test-Simple:
Then try the upgrade again.
Thank you
Re: Nagios 5.2 upgrade - Perl issue
Posted: Tue Nov 10, 2015 5:10 pm
by scottwilkerson
Or you can perform the following
Code: Select all
yum install --disablerepo=rpmforge -y 'perl(Test::Simple)' 'perl(Class::Accessor)' perl-Params-Validate perl-Config-Tiny perl-Math-Calc-Units
then proceed with the upgrade
Re: Nagios 5.2 upgrade - Perl issue
Posted: Wed Nov 11, 2015 8:09 am
by rawwrr
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.
Re: Nagios 5.2 upgrade - Perl issue
Posted: Wed Nov 11, 2015 8:48 am
by rawwrr
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
-------------
Re: Nagios 5.2 upgrade - Perl issue
Posted: Wed Nov 11, 2015 9:56 am
by scottwilkerson
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
Code: Select all
yum install --disablerepo=rpmforge -y
this should resolve the upgrade issue
Re: Nagios 5.2 upgrade - Perl issue
Posted: Wed Nov 11, 2015 11:51 am
by rawwrr
Out of curiosity, that is from downloading the latest upgrade manually ?
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
)
Thanks for you help !
Re: Nagios 5.2 upgrade - Perl issue
Posted: Wed Nov 11, 2015 1:05 pm
by rkennedy
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.
Re: Nagios 5.2 upgrade - Perl issue
Posted: Wed Nov 11, 2015 1:52 pm
by rawwrr
rkennedy 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.
Thanks for the information regarding the -y
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
Posted: Wed Nov 11, 2015 3:21 pm
by rkennedy
In previous versions it was 716, I believe the line that needs to be changed is 705 in 5.2.1 -
Code: Select all
yum install -y 'perl(Test::Simple)' 'perl(Class::Accessor)' perl-Params-Validate perl-Config-Tiny perl-Math-Calc-Units
Change it to -
Code: Select all
yum install --disablerepo=rpmforge -y 'perl(Test::Simple)' 'perl(Class::Accessor)' perl-Params-Validate perl-Config-Tiny perl-Math-Calc-Units