RHEL6 installed wrong version of rpmforge - linux

I installed the wrong version of rpmforge for el7. Then I ran an update which installed this package on my system
python-crypto-2.6.1-1.el7.rf.x86_64
Notice the el7 but I am on rhel6. I then realized and removed the wrong repository and installed the right one for el6.
$ rpm -qa | grep rpmfor
rpmforge-release-0.5.2-2.el6.rf.x86_64
But the above process has broken the update process, which I know I could work around using --skip-broken option. How do I downgrade for the above mentioned package. I tried to uninstall and install it back again but I get this error:
Error: Trying to remove "c4ebpl", which is protected
It shows me some protected packages which can't be removed.
Update process using sudo yum update gives me this error:
Error: Package: python-crypto-2.6.1-1.el7.rf.x86_64 (rpmforge)
Requires: libgmp.so.10()(64bit)
Error: Package: python-crypto-2.6.1-1.el7.rf.x86_64 (rpmforge)
Requires: libc.so.6(GLIBC_2.14)(64bit)
Error: Package: python-crypto-2.6.1-1.el7.rf.x86_64 (rpmforge)
Requires: python(abi) = 2.7
Installed: python-2.6.6-52.el6.x86_64 (#el66/$releasever)
python(abi) = 2.6
Error: Package: python-crypto-2.6.1-1.el7.rf.x86_64 (rpmforge)
Requires: libpython2.7.so.1.0()(64bit)
You could try using --skip-broken to work around the problem
Would anyone know how to downgrade to the original packages? Is there a way to do a factory reset? Or do I need to re-install linux again?
Some things I tried:
I deleted the python-crypto.x86_64 package using this command
sudo rpm --nodeps -e python-crypto.x86_64
And the update went through. So I thought I should install the python-crypto.x86_64package now as I have the right el6 rpmforge repository. So I ran this command sudo yum install python-crypto.x86_64 but I got the same error:
Resolving Dependencies
--> Running transaction check
---> Package python-crypto.x86_64 0:2.6.1-1.el7.rf will be installed
--> Processing Dependency: python(abi) = 2.7 for package: python-crypto-2.6.1-1.el7.rf.x86_64
--> Processing Dependency: libc.so.6(GLIBC_2.14)(64bit) for package: python-crypto-2.6.1-1.el7.rf.x86_64
--> Processing Dependency: libpython2.7.so.1.0()(64bit) for package: python-crypto-2.6.1-1.el7.rf.x86_64
--> Processing Dependency: libgmp.so.10()(64bit) for package: python-crypto-2.6.1-1.el7.rf.x86_64
--> Finished Dependency Resolution
Error: Package: python-crypto-2.6.1-1.el7.rf.x86_64 (rpmforge)
Requires: libgmp.so.10()(64bit)
Error: Package: python-crypto-2.6.1-1.el7.rf.x86_64 (rpmforge)
Requires: libc.so.6(GLIBC_2.14)(64bit)
Error: Package: python-crypto-2.6.1-1.el7.rf.x86_64 (rpmforge)
Requires: python(abi) = 2.7
Installed: python-2.6.6-52.el6.x86_64 (#el66/$releasever)
python(abi) = 2.6
Error: Package: python-crypto-2.6.1-1.el7.rf.x86_64 (rpmforge)
Requires: libpython2.7.so.1.0()(64bit)
You could try using --skip-broken to work around the problem
I don't know why its trying to find the el7 package? I have these libraries in my machine.
$ rpm -qa | grep rpmfor
rpmforge-release-0.5.3-1.el7.rf.x86_64

Solution from #Michael Hapton on this link
Here is the solution. I take no credit for it.
First you need to install the correct rpmforge-release package. Download it and use rpm -U --oldpackage to install it over the wrong package.
Second, you need to clean the cached yum metadata that it had. Use yum clean all to get rid of everything.
Third, use yum distro-sync to downgrade any packages that were installed for the wrong distribution. (And note that this will also upgrade any out-of-date packages.)

Related

Why am i getting this error nodejs install on centos

I have Centos 7.9 server and I'm trying to install nodejs.
curl --silent --location https://rpm.nodesource.com/setup_18.x | sudo bash -
repository is configured in the file /etc/yum.repos.d/nodesource-el7.repo
after that when typed sudo yum install nodejs its returned:
Resolving Dependencies
--> Running transaction check
---> Package nodejs.x86_64 2:18.13.0-1nodesource will be installed
--> Processing Dependency: libc.so.6(GLIBC_2.28)(64bit) for package: 2:nodejs-18.13.0-1nodesource.x86_64
--> Processing Dependency: libm.so.6(GLIBC_2.27)(64bit) for package: 2:nodejs-18.13.0-1nodesource.x86_64
--> Finished Dependency Resolution
Error: Package: 2:nodejs-18.13.0-1nodesource.x86_64 (nodesource)
Requires: libc.so.6(GLIBC_2.28)(64bit)
Error: Package: 2:nodejs-18.13.0-1nodesource.x86_64 (nodesource)
Requires: libm.so.6(GLIBC_2.27)(64bit)
You could try using --skip-broken to work around the problem
** Found 1 pre-existing rpmdb problem(s), 'yum check' output follows:
mod_fcgid-2.3.9-6.el7.x86_64 has missing requires of httpd-mmn = ('0', '20120211x8664', None)
and I can't install any other version of nodejs

Problem on installing phpmyadmin on centos 7

I have deleted my phpmyadmin by mistake while updating to php version 7.3
Now when i tried to install it back using this command sudo yum install phpmyadmin it is not installing I'm getting this response:
--> Processing Dependency: php-simplexml for package: phpMyAdmin49-4.9.3-1.el7.ius.noarch
--> Processing Dependency: php-recode for package: phpMyAdmin49-4.9.3-1.el7.ius.noarch
--> Processing Dependency: php-mbstring for package: phpMyAdmin49-4.9.3-1.el7.ius.noarch
--> Running transaction check
---> Package php-mbstring.x86_64 0:7.3.17-1.el7.remi will be installed
--> Processing Dependency: libonig.so.5()(64bit) for package: php-mbstring-7.3.17-1.el7.remi.x86_64
---> Package php-recode.x86_64 0:7.3.17-1.el7.remi will be installed
--> Processing Dependency: librecode.so.0()(64bit) for package: php-recode-7.3.17-1.el7.remi.x86_64
---> Package php-xml.x86_64 0:7.3.17-1.el7.remi will be installed
---> Package phpMyAdmin49.noarch 0:4.9.3-1.el7.ius will be installed
--> Processing Dependency: php-zip for package: phpMyAdmin49-4.9.3-1.el7.ius.noarch
Package php73-common-7.3.16-1.el7.ius.x86_64 is obsoleted by php-common-7.3.17-1.el7.remi.x86_64 which is already installed
--> Running transaction check
---> Package oniguruma5.x86_64 0:6.9.4-1.el7.remi will be installed
---> Package phpMyAdmin49.noarch 0:4.9.3-1.el7.ius will be installed
--> Processing Dependency: php-zip for package: phpMyAdmin49-4.9.3-1.el7.ius.noarch
Package php73-common-7.3.16-1.el7.ius.x86_64 is obsoleted by php-common-7.3.17-1.el7.remi.x86_64 which is already installed
---> Package recode.x86_64 0:3.6-38.el7 will be installed
--> Finished Dependency Resolution
Error: Package: phpMyAdmin49-4.9.3-1.el7.ius.noarch (ius)
Requires: php-zip
Available: php-common-5.4.16-46.el7.x86_64 (base)
php-zip
Available: php-common-5.4.16-46.1.el7_7.x86_64 (updates)
php-zip
Available: php-pecl-zip-1.18.1-1.el7.remi.5.6.x86_64 (remi-php56)
php-zip = 1:1.18.1-1.el7.remi.5.6
Available: php-pecl-zip-1.18.1-1.el7.remi.7.3.x86_64 (remi-php73)
php-zip = 1:1.18.1-1.el7.remi.7.3
Available: php-pecl-zip-1.18.2-1.el7.remi.5.6.x86_64 (remi-php56)
php-zip = 1:1.18.2-1.el7.remi.5.6
Available: php-pecl-zip-1.18.2-1.el7.remi.7.3.x86_64 (remi-php73)
php-zip = 1:1.18.2-1.el7.remi.7.3
Available: php72u-common-7.2.26-1.el7.ius.x86_64 (ius)
php-zip
Available: php72u-common-7.2.27-1.el7.ius.x86_64 (ius)
php-zip
Available: php72u-common-7.2.28-1.el7.ius.x86_64 (ius)
php-zip
Available: php73-common-7.3.14-1.el7.ius.x86_64 (ius)
php-zip
Available: php73-common-7.3.15-1.el7.ius.x86_64 (ius)
php-zip
Available: php73-common-7.3.16-1.el7.ius.x86_64 (ius)
php-zip
Installed: php-common-7.3.17-1.el7.remi.x86_64 (#remi-php73)
Not found
Available: php-common-5.6.40-19.el7.remi.x86_64 (remi-php56)
Not found
Available: php-common-5.6.40-20.el7.remi.x86_64 (remi-php56)
Not found
Available: php-common-7.3.16-1.el7.remi.x86_64 (remi-php73)
Not found
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
the php version was updated with no problems however the phpmyadmin it's not installing what can i do to get it back?
Don't mixed so much PHP providers, especially; don't mix "IUS" and "Remi".
If you want PHP 7.3, only keep "remi-php73", and you can take phpMyAdmin (5.0.2) from "remi"
yum-config-manager --enable remi-php73
yum-config-manager --disable remi-php56
yum-config-manager --disable ius
yum --enablerepo=remi install phpMyAdmin
As Remi said, don't mix his repository with IUS. Pick one or the other. If you decide to go with IUS, we have phpMyAdmin49 and phpMyAdmin50 packages available. Asking yum to install phpMyAdmin will likely result in it trying to install the EPEL phpMyAdmin package, which is stuck at version 4.4.x to remain compatible with stock PHP 5.4.x.

Install elastix in centos 6.7 on cloud server

I want to install elastix 2.5 on my sever.
yum install -y elastix
then I got this error
Finished Dependency Resolution
Error: Package: 2009020507:asterisk-1.8.20.0-0.x86_64 (iso)
Requires: libcurl.so.3()(64bit)
Available: curl-7.15.5-15.el5.x86_64 (iso)
libcurl.so.3()(64bit)
Installed: curl-7.19.7-46.el6.x86_64 (#base)
Not found
Error: Package: 2009020507:asterisk-1.8.20.0-0.x86_64 (iso)
Requires: librpmio-4.4.so()(64bit)
Available: rpm-libs-4.4.2.3-31.el5.x86_64 (iso)
librpmio-4.4.so()(64bit)
Installed: rpm-libs-4.8.0-47.el6.x86_64 (#base)
Not found
Error: Package: 1:perl-Archive-Tar-1.39.1-1.el5_5.2.noarch (iso)
Requires: perl(:MODULE_COMPAT_5.8.8)
Available: 4:perl-5.8.8-38.el5_8.x86_64 (iso)
perl(:MODULE_COMPAT_5.8.8)
Installed: 4:perl-5.10.1-141.el6_7.1.x86_64 (#updates)
Not found
Available: 4:perl-5.10.1-141.el6.x86_64 (base)
Not found
Error: Package: 2009020507:asterisk-1.8.20.0-0.x86_64 (iso)
Requires: librpm-4.4.so()(64bit)
Available: rpm-libs-4.4.2.3-31.el5.x86_64 (iso)
librpm-4.4.so()(64bit)
Installed: rpm-libs-4.8.0-47.el6.x86_64 (#base)
Not found
Error: Package: elastix-portknock-0.0.1-0.x86_64 (iso)
Requires: libpcap.so.0.9.4()(64bit)
Available: 14:libpcap-0.9.4-15.el5.x86_64 (iso)
libpcap.so.0.9.4()(64bit)
Available: 14:libpcap-1.4.0-4.20130826git2dbcaa1.el6.i686 (base)
Not found
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
Seem the error say need to downgrade each package. But it is so very conflict, especially on the curl.
Is there any possible solution to get through with the error or any alternative ways? I just want to install elastix on centos 6.7.
Is there anyone who can help?
Thanks in advance.

Failed to install Varnish due to dependencies errors

I'm trying install varnish on CentOS 6.7 and get following errors. Can somebody help?
yum install varnish
.....
Finished Dependency Resolution
Error: Package: varnish-libs-4.1.0-1.el7.x86_64 (varnish-4.1)
Requires: libc.so.6(GLIBC_2.14)(64bit)
Error: Package: varnish-4.1.0-1.el7.x86_64 (varnish-4.1)
Requires: systemd-units
Error: Package: varnish-4.1.0-1.el7.x86_64 (varnish-4.1)
Requires: libpcre.so.1()(64bit)
Error: Package: varnish-4.1.0-1.el7.x86_64 (varnish-4.1)
Requires: libc.so.6(GLIBC_2.14)(64bit)
Error: Package: varnish-libs-4.1.0-1.el7.x86_64 (varnish-4.1)
Requires: libpcre.so.1()(64bit)
Error: Package: varnish-4.1.0-1.el7.x86_64 (varnish-4.1)
Requires: systemd-sysv
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
You will need to install varnish from source. Follow these steps:
https://www.varnish-cache.org/docs/trunk/installation/install.html#compiling-varnish-from-source
Start by downloading the tarball:
http://repo.varnish-cache.org/source/
Then install the packages listed:
yum install -y autoconf automake jemalloc-devel libedit-devel libtool ncurses-devel pcre-devel pkgconfig python-docutils python-sphinx graphviz
tar xzvf downloaded-filename.tar.gz
cd name-of-the-folder-from-tarball
sh autogen.sh
sh configure
make
make check
(go make some tea)
make install
Read the notes on starting the service: https://www.varnish-cache.org/docs/trunk/installation/install.html#compiling-varnish-from-source
I'm not allowed to comment but I've upvoted the answer above. I just used it to install Varnish 5.2 on Amazon Linux. The downside of this approach is that you don't get a nice tidy "sudo service varnish start" option, but the upside is that at least you've got Varnish 5.
One change to the answer above. The location of the source has changed. You'll find it here now:
http://varnish-cache.org/releases/

CentOS 64bit RPM with 32bit dependencies

I have a helper rpm package which is used to install the necessary dependencies in order for some software to work; the problem is that the dependency packages required are the 32bit ones, which can't be installed on CentOS 64bit without the --setopt=protected_multilib=false flag.
To manually install the dependencies I'd just run:
# yum install --setopt=protected_multilib=false libXrandr.i686
# yum install --setopt=protected_multilib=false gtk2.i686
# yum install --setopt=protected_multilib=false libXtst.i686
This would correctly install the 32bit version of the packages.
The problem appears when installing the helper package directly, as it seems there's no way to force --setopt=protected_multilib=false for the dependencies.
When trying to install the package (locally, using yum --nogpgcheck --setopt=protected_multilib=false localinstall centos_helper-0-0.x86_64.rpm) I get the following error:
Examining centos_helper-0-0.x86_64.rpm: centos_helper-0-0.x86_64
Marking centos_helper-0-0.x86_64.rpm to be installed
Loading mirror speeds from cached hostfile
* base: mirror.dattobackup.com
* extras: mirror.metrocast.net
* rpmforge: mirror.de.leaseweb.net
* updates: mirror.dattobackup.com
Resolving Dependencies
--> Running transaction check
---> Package centos_helper.x86_64 0:0-0 will be installed
--> Processing Dependency: libXrandr.i686 for package: centos_helper-0-0.x86_64
--> Processing Dependency: gtk2.i686 for package: centos_helper-0-0.x86_64
--> Processing Dependency: libXtst.i686 for package: centos_helper-0-0.x86_64
--> Finished Dependency Resolution
Error: Package: centos_helper-0-0.x86_64 (/centos_helper-0-0.x86_64)
Requires: gtk2.i686
Error: Package: centos_helper-0-0.x86_64 (/centos_helper-0-0.x86_64)
Requires: libXrandr.i686
Error: Package: centos_helper-0-0.x86_64 (/centos_helper-0-0.x86_64)
Requires: libXtst.i686
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
This is the same error I get when trying to install the dependencies by hand without the protected_multilib=false flag.
The .spec file I'm using to create the package has the following content:
Summary: CentOS helper file
Name: centos_helper
Version: 0
Release: 0
License: Public
Group: Applications/System
Requires: libXrandr.i686,gtk2.i686,libXtst.i686
%description
Installer CentOS helper package
%files
Any way to have the dependencies correctly install?
You might want to look at http://www.rpm.org/wiki/PackagerDocs/ArchDependencies
I prefer referencing sonames myself, that way yum will look up what dependancy to install.
I've had major CentOS upgrades failing because if this.
This if for recent RPM versions only : 4.6 or so. If you're on something older :
Requires: real-soname.so.1()(64bit), real-soname.so.1, packagename
From memory, you might need a tweak.

Resources