Ensure yum install fails if post install script fails - linux

When trying to install a yum package, I'm getting:
Non-fatal POSTIN scriptlet failure in rpm package
But the yum install is completing successfully, so it's tough to know when it failed or not.
Anyway to fail when yum encounters this?

You must update your selinux-policy package. Check RPM scriptlets
fail during updates
Just ensure you have the right kernel-headers installed for your running kernel and you should be fine. According to trouble installing on Fedora and CentOS
And finally, check this bug: Fedora 25 Install from DVD ISO Fails DNF error: Non-fatal POSTIN scriptlet failure

Related

libcouchbase not instaling on Red Hat Enterprise Linux Server release 6.6

Following the documentation for RHEL/CentOS, this is how I try to install libcouchbase:
wget http://packages.couchbase.com/releases/couchbase-release/couchbase-release-1.0-6-x86_64.rpm
sudo rpm -iv couchbase-release-1.0-6-x86_64.rpm
sudo yum install libcouchbase-devel libcouchbase2-bin gcc gcc-c++
However libcouchbase-devel and libcouchbase2-bin fail with:
Running rpm_check_debug
Running Transaction Test
Transaction Check Error:
file /usr/lib64/libcouchbase.so.2.0.65 conflicts between attempted installs of libcouchbase-2.10.3-1.el6.remi.x86_64 and libcouchbase2-core-2.10.3-1.el6.x86_64
Error Summary
-------------
I tried installing those packages one at a time but, if I install libcouchbase-devel first it succeeds and libcouchbase2-bin fail. If I remove what I installed and do libcouchbase2-bin first it succeeds, but thenlibcouchbase-devel` fails.
This clearly points to a conflict somewhere, but I am unsure what this conflict is exactly
I removed all packages that have couchbase in their name: yum remove packagename
Then, yum install libcouchbase libcouchbase-devel

Can't install condor on CentOS

I have been trying to install condor on my centos virtual machine but keep getting the following errors:
--> Finished Dependency Resolution
Error: Package: condor-classads-8.5.5-1.el6.x86_64 (htcondor-development)
Requires: libpcre.so.0()(64bit)
Error: Package: condor-8.5.5-1.el6.x86_64 (htcondor-development)
Requires: ecryptfs-utils
Error: Package: condor-8.5.5-1.el6.x86_64 (htcondor-development)
Requires: libpcre.so.0()(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
I looked around online and tried all the suggestions but nothing's worked. I did the next logical thing and tried to install those packages but doing yum install ecryptfs-utils gave me "Nothing to do," message. Same with libpcre.so.0() I'm a beginner with Linux so I don't know what I'm doing wrong here. Help appreciated.
I had the same issue, and this was happening because yum was trying to install different version of condor. I was running centos 6.6, but yum was trying to install centos 7 (rhel 7) version. The reason for this was, by mistake, I initially downloaded and setup the rhel7 repo details of condor, and results got cached.
The solution is to clear yum cache (yum clean all), download the correct condor repo for your CentOS version/arch (use rpm -q centos-release to find this out), and then install (yum install condor-all).
Get condor from the official location. It has all the binaries it needs.

xz compression install on centos

Any installation or update using yum command I ended up error: Error: xz compression not available. On website I read that Python library is missing. When you try to install a library (sudo yum update pyliblzma) again failed with error. Do not know how? Thanks.
This problem comes if you installed a wrong epel release on your machine. If so, then you need to remove the epel release by
yum remove epel-release
Sometimes that is not enough, you need to remove the cache as well by:
rm -rf /var/cache/yum/x86_64/6/epel
Then you can install the epel-release again
yum -y install epel-release
You need install the EPEL repository by downloading the appropriate RPM package for your system and installing it. For example, for CentOS and Red Hat Enterprise Linux 6.x:
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
sudo rpm -Uvh epel-release-6*.rpm
If you get a File Not Found error message when trying to download the package, the version number might have changed. You can access the latest version of the RPM installer from the Fedora EPEL wiki page. The wiki page also includes additional instructions for Red Hat Network subscribers who are installing the EPEL repository.
Finally, install the Python library:
yum install pyliblzma
This works perfecly in my CentOS 6.x.
I've found a solution on this page of stackexchange, working in CentOS 6.X:
https://unix.stackexchange.com/a/314756
sudo rpm -e epel-release-7-5.noarch
wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
sudo rpm -ivh epel-release-6-8.noarch.rpm
sudo yum clean all
sudo rpmdb -v --rebuilddb
sudo yum -y install libselinux-python
I was also suffering from this issue..
If you are installing packages but it is already available on your system.
Remove existing packages and then try to install new.
It will work properly...
I was able to solve this problem by installing pyliblzma using rpm instead of yum as yum is not working.
Find pyliblzma rpm package according to your architecture and install it using the command.
rpm -Uvh pyliblzma-version-release.architecture.rpm
I used the following command to install pyliblzma for my 64 bit Redhat 6.8 machine. Please check URL in the command and make changes accordingly.
rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/pyliblzma-0.5.3-3.el6.x86_64.rpm
In my case the issue was caused by missing modules in python's site-packages directory. Here's what I did:
$ rpm -Va
to get a list of all files belonging to all rpms that do not verify. I got a bunch of messages about missing modules:
missing /usr/lib64/python2.7/site-packages/...
Luckily, I had an identical CentOS version elsewhere with all these packages present, so I just copied them over and ran
$ rpmdb -v --rebuilddb
to rebuild rpm database.

Linux CentOS YUM Error Package Requires - libcrypto.so.10(OPENSSL_1.0.1_EC)(64bit)

I'm getting errors when I try to do a "yum update" that I'm unsure how to resolve. Below is the error message:
--> Finished Dependency Resolution
Error: Package: nginx-1.4.7-1.el6.ngx.x86_64 (nginx)
Requires: libcrypto.so.10(OPENSSL_1.0.1_EC)(64bit)
When I try to upgrade (which I believe is the best step forward) it these me there is "nothing to do" - like using the following line:
like:
sudo yum reinstall openssl
or:
sudo yum install http://mirror.centos.org/centos/6/os/x86_64/Packages/openssl-1.0.1e-15.el6.x86_64.rpm
Examining /var/tmp/yum-root-qbBKfF/openssl-1.0.1e-15.el6.x86_64.rpm: openssl-1.0.1e-15.el6.x86_64
/var/tmp/yum-root-qbBKfF/openssl-1.0.1e-15.el6.x86_64.rpm: does not update installed package.
Error: Nothing to do
I have tried cleaning out the YUM database
rpm -e --justdb --nodeps openssl
and
sudo rpm -ivh --force http://mirror.centos.org/centos/6.5/updates/x86_64/Packages/openssl-1.0.1e-16.el6_5.4.x86_64.rpm
and these both appear to put on the required packages when I run "rpm -q --provides openssl" however I then get this error message in YUM:
sudo yum update
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:
/lib64/libcrypto.so.10: version `OPENSSL_1.0.1_EC' not found (required by /usr/lib64/libssl.so.10)
Please install a package which provides this module, or
verify that the module is installed correctly.
It's possible that the above module doesn't match the
current version of Python, which is:
2.6.9 (unknown, Feb 24 2014, 11:42:49)
[GCC 4.6.3 20120306 (Red Hat 4.6.3-2)]
If you cannot solve this problem yourself, please go to
the yum faq at:
http://yum.baseurl.org/wiki/Faq
Can anyone suggest anyother things I should try?
I can't seem to update, force an update, clean Yum DB and reinstall. The clean DB and Force do get the package on but them YUM can't find what OPENSSL_1.0.1_EC package it needs.
I tried upgrading with these 2 packages:
http://mirror.centos.org/centos/6.5/updates/x86_64/Packages/openssl-1.0.1e-16.el6_5.4.x86_64.rpm
http://mirror.centos.org/centos/6/os/x86_64/Packages/openssl-1.0.1e-15.el6.x86_64.rpm
you seem to have non-stock openssl packages installed (perhaps ptudor's?) they do NOT PROVIDE OPENSSL_1.0.1_EC since he drops openssl-1.0.1e/version.map.fips-ec entirely.
One possible fix is to add the provide to the custom openssl packages of yours this way:
--- openssl-1.0.1e-version.patch 2014-06-06 11:52:55.772046103 +0200
+++ new_openssl-1.0.1e-version.patch 2014-06-06 11:52:40.854045438 +0200
## -61,4 +61,12 ##
+ _original*;
+ _current*;
+};
++OPENSSL_1.0.1_EC {
++ global:
++ EC*;
++};
should add the required PROVIDE to the lib. I offered that solution to him but he did not like it.
https://github.com/ptudor/centos6-openssl/issues/4
Or else you have to rebuild the nginx packages to link against your custom openssl.

Linux - Yum Install GCC - Missing Kernel-headers

When ever i try to install GCC on my linux (centos) It comes back with missing
glibc-headers-2.5-58.el5_6.4.x86_64 from updates has depsolving problems --> Missing Dependency: kernel-headers is needed by package glibc-headers-2.5-
58.el5_6.4.x86_64 (updates)
glibc-headers-2.5-58.el5_6.4.x86_64 from updates has depsolving problems
-->
Missing Dependency: kernel-headers >= 2.2.1 is needed by package glibc-headers-2.5- 58.el5_6.4.x86_64 (updates)
Error: Missing Dependency: kernel-headers >= 2.2.1 is needed by package glibc-headers-2.5-58.el5_6.4.x86_64 (updates)
Error: Missing Dependency: kernel-headers is needed by package glibc-headers-2.5-58.el5_6.4.x86_64 (updates)
I try yum install kernel-header & kernel-devel but get back:
No package kernel-headers available.
Any suggestions?
Your system is probably configured to exclude the kernel packages.
try:
sudo vi /etc/yum.conf
then comment (or remove the 'kernel*' part):
#exclude=kernel*
Then you should be able to do:
sudo yum install kernel-headers
Edit: Or, as pointed by Andrew Beals, you can simply run:
yum install kernel-headers --disableexcludes=all
Yes, you could edit the yum.conf file, or you could simply do this:
yum install kernel-headers --disableexcludes=all
Do note that even if your admin is trying to install an excluded package from your RHN Satellite server via the normal process, it will still fail due to the local configuration.
(This holds for RHEL6 / cent6 (centos6) as well, of course.)
I ran into this issue trying to install VMWare Tools. It required gcc and kernel headers -> kernel headers were missing.
So on Redhat 7.4 I had to execute 'yum install kernel-devel'.
try
yum search kernel-headers
gives:
arm-gp2x-linux-kernel-headers.noarch : Kernel headers for Cross Compiling to
: arm-gp2x-linux
kernel-headers.x86_64 : Header files for the Linux kernel for use by glibc
If you installed from Cloudlinux ISO, you can't do anything until you activate your server against a license, it will throw above error on a VPS.
I had the same issue. It seems that I need to install the kernel-devel-xx.rpm (from kernel development package) to my custom kernel:
sudo yum install kernel-devel-xx.rpm
Then you should be able to run:
sudo yum install kernel-devel

Resources