LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 06-30-2017, 03:18 AM   #1
justluckyg
LQ Newbie
 
Registered: Jun 2017
Posts: 2

Rep: Reputation: Disabled
RPM dependency issues when installing an RPM package on a server that has no internet


I am in a situation where I am trying to install a list of packages for Docker on a CentOS server in a remote location that has no internet service. I managed to copy the packages on that server but I am having all sorts of dependency problems.
Like when I tried installing the packages I am getting the below:
yum install --downloadonly docker-ce-*.rpm --downloaddir=.'
--> Finished Dependency Resolution Error: Package: audit-2.4.1-5.el7.x86_64 (@anaconda) Requires: audit-libs = 2.4.1-5.el7 Removing: audit-libs-2.4.1-5.el7.x86_64 (@anaconda) audit-libs = 2.4.1-5.el7 Updated By: audit-libs-2.6.5-3.el7_3.1.x86_64 (/audit-libs-2.6.5-3.el7_3.1.x86_64) audit-libs = 2.6.5-3.el7_3.1 Error: Package: systemd-sysv-219-19.el7.x86_64 (@anaconda) Requires: systemd = 219-19.el7 Removing: systemd-219-19.el7.x86_64 (@anaconda) systemd = 219-19.el7 Updated By: systemd-219-30.el7_3.9.x86_64 (/systemd-219-30.el7_3.9.x86_64) systemd = 219-30.el7_3.9 Error: Package: systemd-python-219-19.el7.x86_64 (@anaconda) Requires: systemd = 219-19.el7 Removing: systemd-219-19.el7.x86_64 (@anaconda) systemd = 219-19.el7 Updated By: systemd-219-30.el7_3.9.x86_64 (/systemd-219-30.el7_3.9.x86_64) systemd = 219-30.el7_3.9 Error: Package: libgudev1-219-19.el7.x86_64 (@anaconda) Requires: systemd-libs = 219-19.el7 Removing: systemd-libs-219-19.el7.x86_64 (@anaconda) systemd-libs = 219-19.el7 Updated By: systemd-libs-219-30.el7_3.9.x86_64 (/systemd-libs-219-30.el7_3.9.x86_64) systemd-libs = 219-30.el7_3.9 Error: Package: libcgroup-tools-0.41-8.el7.x86_64 (@anaconda) Requires: libcgroup(x86-64) = 0.41-8.el7 Removing: libcgroup-0.41-8.el7.x86_64 (@anaconda) libcgroup(x86-64) = 0.41-8.el7 Updated By: libcgroup-0.41-11.el7.x86_64 (/libcgroup-0.41-11.el7.x86_64) libcgroup(x86-64) = 0.41-11.el7 You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest
or via rpm upgrade command...
offline_repo]# rpm -Uvh audit-libs-2.6.5-3.el7_3.1.x86_64.rpm warning: audit-libs-2.6.5-3.el7_3.1.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY error: Failed dependencies: audit-libs = 2.4.1-5.el7 is needed by (installed) audit-libs-python-2.4.1-5.el7.x86_64 audit-libs = 2.4.1-5.el7 is needed by (installed) audit-2.4.1-5.el7.x86_64
offline_repo]# rpm -Uvh systemd-219-30.el7_3.9.x86_64.rpm warning: systemd-219-30.el7_3.9.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY error: Failed dependencies: systemd-libs = 219-30.el7_3.9 is needed by systemd-219-30.el7_3.9.x86_64 systemd = 219-19.el7 is needed by (installed) systemd-sysv-219-19.el7.x86_64 systemd = 219-19.el7 is needed by (installed) systemd-python-219-19.el7.x86_6
offline_repo]# rpm -Uvh libcgroup-0.41-11.el7.x86_64.rpm warning: libcgroup-0.41-11.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY error: Failed dependencies: libcgroup(x86-64) = 0.41-8.el7 is needed by (installed) libcgroup-tools-0.41-8.el7.x86_64
My question is other than the obvious "how do i get around this without messing the server or removing any important dependent package" , what is the best way or do you have any best practice for dealing with these type of scenarios?
Thanks to anyone who can answer!

Last edited by justluckyg; 06-30-2017 at 11:04 PM.
 
Old 06-30-2017, 05:16 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,804

Rep: Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306
my god, please do not use that yellow, it is unreadable.
You may try to rpm install all of the required packages in one (I'm not really sure if that works, but...), or you may try to create a local repository, add it to yum config and use that repo to resolve dependencies.
 
1 members found this post helpful.
Old 06-30-2017, 11:03 PM   #3
justluckyg
LQ Newbie
 
Registered: Jun 2017
Posts: 2

Original Poster
Rep: Reputation: Disabled
sorry for the choice of font color :O

I think I would look into what you suggested. Thanks!
 
Old 07-01-2017, 01:56 PM   #4
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
Download all the necessary rpms and run rpm from the directory they're stored in. Just use *.rpm instead of a full filename. I think rpm can sort it out from there.
 
  


Reply



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] RPM file conflict when installing a set of files to the same directory as another RPM package brigitor Red Hat 4 01-19-2016 06:51 PM
error package rpm-build which installing rpm-build from RHN Satellite Server. johnabraham Linux - Server 1 10-05-2013 06:51 PM
RPM package - dependency checks sashadolstar Red Hat 1 10-19-2012 07:50 PM
Bogus dependency in an rpm package? dsdonut Linux - Software 3 03-10-2012 04:56 PM
possible to downgrade a package? (rpm dependency hell) Goog Linux - Software 3 05-26-2003 09:13 AM

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

All times are GMT -5. The time now is 12:05 PM.

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
Open Source Consulting | Domain Registration