Need help installing server onto Hostmonster/CentOS5 account

Business solution to host your own OpenVPN server with web management interface and bundled clients.
Post Reply
GregJ
OpenVpn Newbie
Posts: 6
Joined: Sat Mar 31, 2012 2:19 pm

Need help installing server onto Hostmonster/CentOS5 account

Post by GregJ » Sat Mar 31, 2012 2:40 pm

Hi, I am trying to install the server component on my Hostmonster account. I ran the command "rpm -vv -i openvpn-as-1.8.3-CentOS5.x86_64.rpm" but I received the msg "error: can't create transaction lock on /var/lib/rpm/.rpm.lock (Permission denied)" (full output shown below as "1st Try").

After a bit of reading I created a var/lib/rpm directory structure in my home space and specified my own dbpath in the command, since I don't have write access to the real /var/lib/rpm. The error messages I got look better (full output shown below as "2nd Try"):

error: Failed dependencies:
iptables >= 1.2 is needed by openvpn-as-0:1.8.3-CentOS5.5.x86_64
shadow-utils is needed by openvpn-as-0:1.8.3-CentOS5.5.x86_64
/bin/sh is needed by openvpn-as-0:1.8.3-CentOS5.5.x86_64

A quick check shows that iptables v 1.4.something is installed on the system, but really don't know what I need to do beyond that to get this install working. Can someone help me?

Greg


1st Try:

[~/G]# rpm -vv -i openvpn-as-1.8.3-CentOS5.x86_64.rpm
D: ============== openvpn-as-1.8.3-CentOS5.x86_64.rpm
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 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# 210 Header sanity check: OK
D: added key gpg-pubkey-c105b9de-4e0fd3a3 to keyring
D: read h# 222 Header sanity check: OK
D: added key gpg-pubkey-080d0922-443ed6a0 to keyring
D: read h# 230 Header sanity check: OK
D: added key gpg-pubkey-6b8d79e6-3f49313d to keyring
D: read h# 237 Header sanity check: OK
D: added key gpg-pubkey-0608b895-4bd22942 to keyring
D: Using legacy gpg-pubkey(s) from rpmdb
D: Expected size: 21079421 = lead(96)+sigs(180)+pad(4)+data(21079141)
D: Actual size: 21079421
D: openvpn-as-1.8.3-CentOS5.x86_64.rpm: Header SHA1 digest: OK (e8c09fab441fc5f3a07e7ce5c2bb758b30d7c095)
D: ========== relocations
D: added binary package [0]
D: found 0 source and 1 binary packages
D: ========== +++ openvpn-as-0:1.8.3-CentOS5.5 x86_64/linux 0x0
D: opening db index /var/lib/rpm/Providename rdonly mode=0x0
D: read h# 1944 Header V3 DSA/SHA1 Signature, key ID 080d0922: OK
D: Requires: iptables >= 1.2 YES (db provides)
D: read h# 33 Header V3 RSA/SHA1 Signature, key ID c105b9de: OK
D: Requires: shadow-utils YES (db provides)
D: opening db index /var/lib/rpm/Basenames rdonly mode=0x0
D: read h# 14 Header V3 RSA/SHA1 Signature, key ID c105b9de: OK
D: Requires: /bin/sh YES (db files)
D: Requires: /bin/sh YES (cached)
D: Requires: /bin/sh YES (cached)
D: Requires: /bin/sh YES (cached)
D: Requires: rpmlib(PayloadFilesHavePrefix) <= 4.0-1 YES (rpmlib provides)
D: Requires: rpmlib(CompressedFileNames) <= 3.0.4-1 YES (rpmlib provides)
D: opening db index /var/lib/rpm/Conflictname rdonly mode=0x0
D: ========== recording tsort relations
D: ========== tsorting packages (order, #predecessors, #succesors, tree, depth)
D: 0 0 0 0 1 +openvpn-as-0:1.8.3-CentOS5.5.x86_64
D: installing binary packages
error: can't create transaction lock on /var/lib/rpm/.rpm.lock (Permission denied)
D: closed db index /var/lib/rpm/Conflictname
D: closed db index /var/lib/rpm/Providename
D: closed db index /var/lib/rpm/Basenames
D: closed db index /var/lib/rpm/Name
D: closed db index /var/lib/rpm/Packages


2nd Try:

[~/G]# rpm -vv -i openvpn-as-1.8.3-CentOS5.x86_64.rpm -dbpath ~/G/var/lib/rpm
D: ============== openvpn-as-1.8.3-CentOS5.x86_64.rpm
D: loading keyring from pubkeys in /home3/myloginname/G/var/lib/rpm/pubkeys/*.key
D: couldn't find any keys in /home3/myloginname/G/var/lib/rpm/pubkeys/*.key
D: loading keyring from rpmdb
D: opening db environment /home3/myloginname/G/var/lib/rpm cdb:mpool:joinenv
D: opening db index /home3/myloginname/G/var/lib/rpm/Packages rdonly mode=0x0
D: locked db index /home3/myloginname/G/var/lib/rpm/Packages
D: opening db index /home3/myloginname/G/var/lib/rpm/Name rdonly mode=0x0
D: Expected size: 21079421 = lead(96)+sigs(180)+pad(4)+data(21079141)
D: Actual size: 21079421
D: openvpn-as-1.8.3-CentOS5.x86_64.rpm: Header SHA1 digest: OK (e8c09fab441fc5f3a07e7ce5c2bb758b30d7c095)
D: ========== relocations
D: added binary package [0]
D: found 0 source and 1 binary packages
D: ========== +++ openvpn-as-0:1.8.3-CentOS5.5 x86_64/linux 0x0
D: opening db index /home3/myloginname/G/var/lib/rpm/Providename rdonly mode=0x0
D: Requires: iptables >= 1.2 NO
D: package openvpn-as-0:1.8.3-CentOS5.5.x86_64 has unsatisfied Requires: iptables >= 1.2
D: Requires: shadow-utils NO
D: package openvpn-as-0:1.8.3-CentOS5.5.x86_64 has unsatisfied Requires: shadow-utils
D: opening db index /home3/myloginname/G/var/lib/rpm/Basenames rdonly mode=0x0
D: Requires: /bin/sh NO
D: package openvpn-as-0:1.8.3-CentOS5.5.x86_64 has unsatisfied Requires: /bin/sh
D: Requires: /bin/sh NO (cached)
D: package openvpn-as-0:1.8.3-CentOS5.5.x86_64 has unsatisfied Requires: /bin/sh
D: Requires: /bin/sh NO (cached)
D: package openvpn-as-0:1.8.3-CentOS5.5.x86_64 has unsatisfied Requires: /bin/sh
D: Requires: /bin/sh NO (cached)
D: package openvpn-as-0:1.8.3-CentOS5.5.x86_64 has unsatisfied Requires: /bin/sh
D: Requires: rpmlib(PayloadFilesHavePrefix) <= 4.0-1 YES (rpmlib provides)
D: Requires: rpmlib(CompressedFileNames) <= 3.0.4-1 YES (rpmlib provides)
D: opening db index /home3/myloginname/G/var/lib/rpm/Conflictname rdonly mode=0x0
error: Failed dependencies:
iptables >= 1.2 is needed by openvpn-as-0:1.8.3-CentOS5.5.x86_64
shadow-utils is needed by openvpn-as-0:1.8.3-CentOS5.5.x86_64
/bin/sh is needed by openvpn-as-0:1.8.3-CentOS5.5.x86_64

D: closed db index /home3/myloginname/G/var/lib/rpm/Conflictname
D: closed db index /home3/myloginname/G/var/lib/rpm/Providename
D: closed db index /home3/myloginname/G/var/lib/rpm/Basenames
D: closed db index /home3/myloginname/G/var/lib/rpm/Name
D: closed db index /home3/myloginname/G/var/lib/rpm/Packages
D: closed db environment /home3/myloginname/G/var/lib/rpm

User avatar
Mimiko
Forum Team
Posts: 1564
Joined: Wed Sep 22, 2010 3:18 am

Re: Need help installing server onto Hostmonster/CentOS5 acc

Post by Mimiko » Tue May 15, 2012 5:38 am

Upgrade the packages that throws errors: iptables, shadow-utils.

Post Reply