CentOS Icon CentOS Logo
CentOS Text
   
  
www.centos.org Forum Index
   CentOS 5 - Application & Software Support
  Package Interdependency

 

 Bottom   Previous Topic   Next Topic
  •  Rate Thread
      Rate this Thread
      Excellent
      Good
      Average
      Bad
      Terrible
Poster Thread
  •  egwilliams
      egwilliams
Package Interdependency
#1
Newbie
Joined: 2007/6/13
From
Posts: 4
I'm trying to install tk-devel-8.4.13-3 using rpm -ivh [package name], and I get a list of failed dependencies. That's OK.

I download those rpms and install them the same way. However, I get stuck when one package needs the other to install itself, _and_ vice versa:


# rpm -ivh libX11-devel-1.0.3-8.el5.x86_64.rpm
warning: libX11-devel-1.0.3-8.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
error: Failed dependencies:
libXdmcp-devel is needed by libX11-devel-1.0.3-8.el5.x86_64
xorg-x11-proto-devel >= 7.1-2 is needed by libX11-devel-1.0.3-8.el5.x86_64

# rpm -ivh xorg-x11-proto-devel-7.1-9.el5.centos.x86_64.rpm
warning: xorg-x11-proto-devel-7.1-9.el5.centos.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
error: Failed dependencies:
mesa-libGL-devel is needed by xorg-x11-proto-devel-7.1-9.el5.centos.x86_64

# rpm -ivh mesa-libGL-devel-6.5.1-7.2.el5.x86_64.rpm
warning: mesa-libGL-devel-6.5.1-7.2.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
error: Failed dependencies:
libX11-devel is needed by mesa-libGL-devel-6.5.1-7.2.el5.x86_64


So, I need xorg-x11 to install libX11. Xorg-x11 needs mesa-libGL to install, and mesa-libGL needs libX11 to install. Great.

I'd use yum to install it (since apparently yum can cheat around the package interdependencies), but then I get this problem:

# yum install tk-devel-8.4.13-3.fc6.x86_64.rpm
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=5&arch=x86_64&repo=os error was
[Errno 4] IOError: <urlopen error (111, 'Connection refused')>
Error: Cannot find a valid baseurl for repo: base


Thanks.
Posted on: 2007/6/14 8:36
Create PDF from Post Print
Top
  •  egwilliams
      egwilliams
Re: Package Interdependency
#2
Newbie
Joined: 2007/6/13
From
Posts: 4
EDIT: Problem solved. Can't edit the first post anymore to say that though. Anyway, if other people come across this problem, here's what I did.





As for yum not working properly, I'm at an institute that's behind a proxy. I did go to the /etc/yum.conf file and add

"proxy=http://[myproxy]"

and Yum started working somewhat better.

However, I still get this problem:

Downloading Packages:
(1/5): libX11-devel-1.0.3 100% |=========================| 666 kB 00:00
(2/5): libXdmcp-devel-1.0 100% |=========================| 7.5 kB 00:00
(3/5): xorg-x11-proto-dev 100% |=========================| 253 kB 00:00
(4/5): mesa-libGL-devel-6 100% |=========================| 465 kB 00:00
(5/5): libX11-1.0.3-8.0.1 100% |=========================| 796 kB 00:00
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID e8562897


GPG key retrieval failed: [Errno 4] IOError: <urlopen error (111, 'Connection refused')>


I see that the GPG key retrieval error is relatively common, but I seem to find very little that's related to urlopen error 111.

I edited the /etc/yum.repos.d/CentOS-Base.repo and changed the gpgcheck=1 to gpgcheck=0 for all the lines, but it appears to have made no difference.


[Edit: Removing the comments on the baseurl seems to have though. Everything now works. For reference for anyone who looks, my CentOS-Base.repo looks like this:

enabled=0 and gpgcheck=0 and baseurl un-un-comment were my only changes.


# CentOS-Base.repo
#
# [...]
#

[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#released updates
[updates]
name=CentOS-$releasever - Updates
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=upd$
baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
gpgcheck=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

(Et cetera)
Posted on: 2007/6/14 8:49
Create PDF from Post Print
Top
  •  KenBailey
      KenBailey
Re: Package Interdependency
#3
Newbie
Joined: 2008/3/28
From
Posts: 1
The problem is that you need to tell both yum *and* rpm the proxy host setting; e.g. by adding a "proxy" config line in /etc/yum.conf for yum and setting a http_proxy environment variable for rpm.
Posted on: 2008/3/28 22:31
Create PDF from Post Print
Top
 Top   Previous Topic   Next Topic

 


 You cannot start a new topic.
 You can view topic.
 You cannot reply to posts.
 You cannot edit your posts.
 You cannot delete your posts.
 You cannot add new polls.
 You cannot vote in polls.
 You cannot attach files to posts.
 You cannot post without approval.




"Linux" is a registered trademark of Linus Torvalds. | All other trademarks are property of their respective owners. | All other content is Copyright @ 2004-2009 by the CentOS Project or "each individual contributor (forums, comments, etc.) unless otherwise assigned".| Theme based on a theme by 7dana.com