LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-14-2018, 09:06 PM   #1
Teamking12
LQ Newbie
 
Registered: Jun 2017
Posts: 1

Rep: Reputation: Disabled
Lightbulb Cannot install zlib-devel package on rhel 7.1


Hi,

I'm trying to install a package yum install zlib-devel on my environment, but it declines stating that 3 pre-existing rpmdb problems with the following packages:

You could try using --skip-broken to work around the problem
** Found 3 pre-existing rpmdb problem(s), 'yum check' output follows:
freetype-2.8-12.el7.x86_64 is a duplicate with freetype-2.4.11-15.el7.i686
libdrm-2.4.91-3.el7.x86_64 is a duplicate with libdrm-2.4.74-1.el7.i686
libuuid-2.23.2-59.el7.x86_64 is a duplicate with libuuid-2.23.2-43.el7_4.2.i686

Does anyone know on how to solve this problem? Thank you.
 
Old 11-14-2018, 09:23 PM   #2
berndbausch
Senior Member
 
Registered: Nov 2013
Location: Tokyo
Distribution: A few
Posts: 4,790

Rep: Reputation: 1427Reputation: 1427Reputation: 1427Reputation: 1427Reputation: 1427Reputation: 1427Reputation: 1427Reputation: 1427Reputation: 1427Reputation: 1427
The internet offers a few suggestions what to do in this situation. For example https://stackoverflow.com/questions/...duplicate-with, which I found by googling for "yum check" error.

You need to check whether the solutions offered under this link fit your particular configuration.
 
Old 11-15-2018, 02:22 AM   #3
Honest Abe
Member
 
Registered: May 2018
Distribution: CentOS 7, OpenSUSE 15
Posts: 342
Blog Entries: 1

Rep: Reputation: 186Reputation: 186
Link: https://access.redhat.com/solutions/38644

Quote:
1) If the system is Red Hat Enterprise Linux 5 or later, the package-cleanup command can be used:

Raw
# package-cleanup --dupes
# package-cleanup --cleandupes
The --dupes command will list the duplicate packages installed on the machine, while the --cleandupes switch will remove the older versions. package-cleanup command is provided by the yum-utils package.

2) If package-cleanup does not help or the system is Red Hat Enterprise Linux 4, remove packages manually using rpm:

Raw
# rpm -e --justdb <package-name>-<old-version>
The '--justdb' switch is used to ensure that the package removal does not remove its files from the file system, removing it only from the rpm database.
 
Old 11-15-2018, 06:52 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 22,816

Rep: Reputation: 6317Reputation: 6317Reputation: 6317Reputation: 6317Reputation: 6317Reputation: 6317Reputation: 6317Reputation: 6317Reputation: 6317Reputation: 6317Reputation: 6317
Quote:
Originally Posted by Teamking12 View Post
Hi,

I'm trying to install a package yum install zlib-devel on my environment, but it declines stating that 3 pre-existing rpmdb problems with the following packages:

You could try using --skip-broken to work around the problem
** Found 3 pre-existing rpmdb problem(s), 'yum check' output follows:
freetype-2.8-12.el7.x86_64 is a duplicate with freetype-2.4.11-15.el7.i686
libdrm-2.4.91-3.el7.x86_64 is a duplicate with libdrm-2.4.74-1.el7.i686
libuuid-2.23.2-59.el7.x86_64 is a duplicate with libuuid-2.23.2-43.el7_4.2.i686

Does anyone know on how to solve this problem? Thank you.
First, I bolded a line in what you posted for emphasis...did you read/try that??? And what is the WHOLE output of your "yum install zlib-devel" command? That package is available from the RHEL repositories, and may even be on the installation media. You shouldn't get ANY broken dependencies, unless you're not paying for RHEL (ARE YOU??), and don't have access to the RHEL repositories.

If you're not paying for RHEL, there's little sense in using it...CentOS is totally free, and 99.x% identical to RHEL, and you won't have those issue.
 
Old 11-15-2018, 09:38 AM   #5
Honest Abe
Member
 
Registered: May 2018
Distribution: CentOS 7, OpenSUSE 15
Posts: 342
Blog Entries: 1

Rep: Reputation: 186Reputation: 186
@TB0ne,
I do agree with you, but personally, I wouldn't try that option(--skip-broken or --nodeps) with yum (or zypper/apt/rpm) without trying to fix the rpmdb issue first.

I do concur that not all dependencies are real/required/deal-breakers, but that is to be decided on a case-by-case basis.

The OP should have done some homework before posting. This is a pretty common issue (more of a small nuisance really!!) in RHEL/CentOS. Sometimes this error can be reproduced by killing a running yum update. (Of course, killing a running update may introduce other nasties !)
 
Old 11-15-2018, 10:30 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,379

Rep: Reputation: 3598Reputation: 3598Reputation: 3598Reputation: 3598Reputation: 3598Reputation: 3598Reputation: 3598Reputation: 3598Reputation: 3598Reputation: 3598Reputation: 3598
When updating RHEL say once a month (or more often) the version will now show RHEL 7.6 .

Waiting too long with {updates / package installs} the action will sometimes fail.
The old (unsafe) 7.1 = year 2015.

Suggest : Install RHEL 7.6 .... or the free version = "Redhat CentOS 7.5" →
http://ftp.rz.uni-frankfurt.de/pub/m...stall-1804.iso


-

Last edited by knudfl; 11-15-2018 at 10:32 AM.
 
Old 11-15-2018, 01:40 PM   #7
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 22,816

Rep: Reputation: 6317Reputation: 6317Reputation: 6317Reputation: 6317Reputation: 6317Reputation: 6317Reputation: 6317Reputation: 6317Reputation: 6317Reputation: 6317Reputation: 6317
Quote:
Originally Posted by Honest Abe View Post
@TB0ne,
I do agree with you, but personally, I wouldn't try that option(--skip-broken or --nodeps) with yum (or zypper/apt/rpm) without trying to fix the rpmdb issue first.
I agree, and this points to the OP trying to use yum to install a manually-downloaded package, versus doing it from repositories alone. That would fix the dependencies, since the updated packages would get installed during the system update.
Quote:
I do concur that not all dependencies are real/required/deal-breakers, but that is to be decided on a case-by-case basis. The OP should have done some homework before posting. This is a pretty common issue (more of a small nuisance really!!) in RHEL/CentOS. Sometimes this error can be reproduced by killing a running yum update. (Of course, killing a running update may introduce other nasties !)
Indeed. OP, again: are you PAYING for RHEL? If you're not, as said before (and echoed by knudfl), you really should use CentOS instead, and let yum do what it was designed to do.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] No package 'x11' found No package 'xext' found No package 'xdamage' found No package 'xfixes' found No package 'x11-xcb' found Jigsaw Linux From Scratch 12 04-25-2019 07:33 AM
x264-devel and lame-devel cannot be installed by yum yzhang738@hotmail.com Linux - Software 3 12-09-2010 07:19 PM
no matching comp found: client zlib none, zlib@openssh.com lost connection jorge_ivan Linux - Networking 0 08-14-2006 07:09 PM
Package fam-devel needs libselinux-devel belkins Linux - Newbie 2 10-18-2004 03:02 PM
Possible bug in glibc-devel-2.2.93-5 and glibc-devel-2.2.5 mark_umr Linux - Software 1 10-22-2002 01:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration