Dependency Hell

General support questions
User avatar
TrevorH
Site Admin
Posts: 33219
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Dependency Hell

Post by TrevorH » 2011/08/10 18:39:05

[quote]
I used 'su root' to escalate.
[/quote]

Yes, that's not correct. You need to use

[code]
su - root
[/code]

See the '-' sign in there, that means to source root's environment and remove the current user's. It sets things like $HOME correctly.

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Re: Dependency Hell

Post by pschaff » 2011/08/10 19:24:35

[quote]
TrevorH wrote:
... You need to use

[code]
su - root
[/code]

See the '-' sign in there, that means to source root's environment and remove the current user's. It sets things like $HOME correctly.[/quote]
For the record, "su -" is sufficient as root is implied if no user is specified. All this is explained in the [url=http://wiki.centos.org/TipsAndTricks/BecomingRoot]link[/url] supplied in post #23.

So, where are things with respect to the original issue?

z662
Posts: 75
Joined: 2011/08/03 19:46:10

Re: Dependency Hell

Post by z662 » 2011/08/10 22:16:21

I have pasted my output below. Just out of curiosity why do the environment variables matter for something like this, I wouldnt expect them to make much of a difference.


brad@moon:~$ su -
Password:
[root@moon ~]# wget http://apt.sw.be/RPM-GPG-KEY.dag.txt
--2011-08-10 18:13:11-- http://apt.sw.be/RPM-GPG-KEY.dag.txt
Resolving apt.sw.be... 193.1.193.67
Connecting to apt.sw.be|193.1.193.67|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1672 (1.6K) [text/plain]
Saving to: “RPM-GPG-KEY.dag.txt”

100%[======================================>] 1,672 --.-K/s in 0s

2011-08-10 18:13:12 (13.1 MB/s) - “RPM-GPG-KEY.dag.txt” saved [1672/1672]

[root@moon ~]# ls
anaconda-ks.cfg Desktop install.log install.log.syslog RPM-GPG-KEY.dag.txt
[root@moon ~]# cat RPM-GPG-KEY.dag.txt
The following public key can be used to verify RPM packages
downloaded from http://dag.wieers.com/apt/ using 'rpm -K'
if you have the GNU GPG package.
Questions about this key should be sent to:
Dag Wieers

-----BE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0ce9Hjrg
6lMrn0lPsMV6swADBQP9H42sss6mlqnJEFA97Fl3V9s+7UVJoAIA5uSVXxEOwVoh
Vq7uECQRvWzif6tzOY+vHkUxOBRvD6oIU6tlmuG3WByKyA1d0MTqMr3eWieSYf/L
n5VA9NuD7NwjFA1kLkoDwfSbsF51LppTMkUggzwgvwE46MB6yyuqAVI1kReAWw+I
RgQYEQIABgUCP0kxPwAKCRCiDlIUa4155oktAKDAzm9QYbDpk6SrQhkSFy016BjE
BACeJU1hpElFnUZCL4yKj4EuLnlo8kc=
=mqUt
-----END PGP PUBLIC KEY BLOCK-----
[root@moon ~]# rpm -vv --import RPM-GPG-KEY.dag.txt
D: loading keyring from pubkeys in /var/lib/rpm/pubkeys/*.key
D: couldn't find any keys in /var/lib/rpm/pubkeys/*.key
D: loading keyring from rpmdb
D: opening db environment /var/lib/rpm cdb:mpool:joinenv
D: opening db index /var/lib/rpm/Packages rdonly mode=0x0
D: locked db index /var/lib/rpm/Packages
D: opening db index /var/lib/rpm/Name rdonly mode=0x0
D: read h# 1329 Header sanity check: OK
D: added key gpg-pubkey-c105b9de-4e0fd3a3 to keyring
D: read h# 1522 Header sanity check: OK
D: added key gpg-pubkey-f6777c67-45e5b1b9 to keyring
D: read h# 1604 Header sanity check: OK
D: added key gpg-pubkey-6b8d79e6-3f49313d to keyring
D: read h# 1653 Header sanity check: OK
D: added key gpg-pubkey-0608b895-4bd22942 to keyring
D: Using legacy gpg-pubkey(s) from rpmdb
error: RPM-GPG-KEY.dag.txt: key 1 import failed.
D: closed db index /var/lib/rpm/Name
D: closed db index /var/lib/rpm/Packages
D: closed db environment /var/lib/rpm
[root@moon ~]#

r_hartman
Posts: 711
Joined: 2009/03/23 15:08:11
Location: Netherlands
Contact:

Re: Dependency Hell

Post by r_hartman » 2011/08/11 08:59:36

Have a look at [url=https://www.centos.org/modules/newbb/viewtopic.php?topic_id=32639&forum=56]this topic[/url] and pay special attention to reply #5.

z662
Posts: 75
Joined: 2011/08/03 19:46:10

Re: Dependency Hell

Post by z662 » 2011/08/11 14:44:41

I checked out that thread and sure enough that was my problem. The key was already imported. I then proceeded to finish the steps outlined here http://wiki.centos.org/AdditionalResources/Repositories/RPMForge?action=show&redirect=Repositories%2FRPMForge#head-f0c3ecee3dbb407e4eed79a56ec0ae92d1398e01

and believe I now have rpmforge repos enabled :)

Thanks!

However, now we are back to post #16/17

I still need to install vlc, but am unable to find any mentioning of it via yum

brad@moon:/etc/yum.repos.d$ sudo yum search vlc
Loaded plugins: fastestmirror, priorities, refresh-packagekit
Loading mirror speeds from cached hostfile
* base: mirror.steadfast.net
* epel: mirror.steadfast.net
* extras: mirror.rackspace.com
* updates: mirror.batblue.com
4608 packages excluded due to repository priority protections
================================= Matched: vlc =================================
avrc6-tejas-barot-linux.x86_64 : Repository to Install VLC Player on RHEL/CentOS
: 6.x
brad@moon:/etc/yum.repos.d$


What am I doing wrong?? Let me know if I should post the output of ./getInfo.sh again.

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Re: Dependency Hell

Post by pschaff » 2011/08/11 17:59:40

Either the rpmforge-release package was not installed after the key was imported or it is not enabled.[code]
# yum --enablerepo rpmforge install rpmforge-release
Loaded plugins: priorities, refresh-packagekit
...
6450 packages excluded due to repository priority protections
Setting up Install Process
Package rpmforge-release-0.5.2-2.el6.rf.x86_64 already installed and latest version
Nothing to do
# rpm -q rpmforge-release
rpmforge-release-0.5.2-2.el6.rf.x86_64
# yum --disablerepo \* --enablerepo rpmforge list vlc
Loaded plugins: priorities, refresh-packagekit
Available Packages
vlc.x86_64 1.1.11-1.el6.rf rpmforge[/code]

If more help is needed then please [url=http://www.centos.org/modules/newbb/viewtopic.php?topic_id=28723&forum=54]provide more information about your system[/url] by running "./getinfo.sh [b]package[/b]" and showing us the output file.

z662
Posts: 75
Joined: 2011/08/03 19:46:10

Re: Dependency Hell

Post by z662 » 2011/08/11 20:06:26

brad@moon:~$ su -
Password:
su: incorrect password
brad@moon:~$ su -
Password:
[root@moon ~]# yum --enablerepo rpmforge install rpmforge-release
Loaded plugins: fastestmirror, priorities, refresh-packagekit


Error getting repository data for rpmforge, repository not found
[root@moon ~]# rpm -q rpmforge-release
rpmforge-release-0.5.2-2.el6.rf.x86_64
[root@moon ~]# yum --disablerepo \* --enablerepo rpmforge list vlc
Loaded plugins: fastestmirror, priorities, refresh-packagekit


Error getting repository data for rpmforge, repository not found
[root@moon ~]# exit
logout
brad@moon:~$ su -
Password:
[root@moon ~]# yum --enablerepo rpmforge install rpmforge-release
Loaded plugins: fastestmirror, priorities, refresh-packagekit


Error getting repository data for rpmforge, repository not found
[root@moon ~]# rpm -q rpmforge-release
rpmforge-release-0.5.2-2.el6.rf.x86_64
[root@moon ~]# yum --disablerepo \* --enablerepo rpmforge list vlc
Loaded plugins: fastestmirror, priorities, refresh-packagekit


Error getting repository data for rpmforge, repository not found
[root@moon ~]#


Information can be found here: http://pastebin.centos.org/37735

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Re: Dependency Hell

Post by pschaff » 2011/08/11 20:18:10

As I conjectured earlier, you do not have the rpmforge-release package installed. Go back to the [url=http://wiki.centos.org/AdditionalResources/Repositories/RPMForge?action=show&redirect=Repositories%2FRPMForge#head-f0c3ecee3dbb407e4eed79a56ec0ae92d1398e01]Wiki article[/url] and follow the directions.[code]
wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
rpm -i rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm[/code]

markkuk
Posts: 739
Joined: 2007/09/07 10:56:28
Location: Finland

Re: Dependency Hell

Post by markkuk » 2011/08/11 20:18:22

You have deleted (or moved) the rpmforge.repo file installed by the rpmforge-release package. Download and re-install rpmforge-release.

z662
Posts: 75
Joined: 2011/08/03 19:46:10

Re: Dependency Hell

Post by z662 » 2011/08/11 20:57:33

I dont understand how thats possible, or why I am told that it is already installed then. When I go to the wiki page and try to click on the rpm package the GUI tells me it is already installed, and when downloading it and running 'rpm -i xxxx' it says its already installed via CLI too.

Is the install corrupt? I followed the instructions on the wiki down to a T, and then ran into that whole issue with the key already being imported.

Please advise.

Post Reply