2015. április 3., péntek

Dell OMSA services installation trouble on Debian 7 (wheezy how to)

root@omsa:~# echo 'deb http://linux.dell.com/repo/community/deb/latest /' > /etc/apt/sources.list.d/linux.dell.com.sources.list
root@omsa:~# apt-get update
Hit http://ftp.hu.debian.org wheezy Release.gpg
Hit http://ftp.hu.debian.org wheezy-updates Release.gpg
Hit http://ftp.hu.debian.org wheezy Release
Hit http://ftp.hu.debian.org wheezy-updates Release
Hit http://ftp.hu.debian.org wheezy/main Sources
Hit http://ftp.hu.debian.org wheezy/main i386 Packages
Hit http://ftp.hu.debian.org wheezy/main Translation-en
Hit http://ftp.hu.debian.org wheezy-updates/main Sources
Hit http://ftp.hu.debian.org wheezy-updates/main i386 Packages/DiffIndex
Hit http://ftp.hu.debian.org wheezy-updates/main Translation-en/DiffIndex
Hit http://security.debian.org wheezy/updates Release.gpg
Hit http://security.debian.org wheezy/updates Release
Hit http://security.debian.org wheezy/updates/main Sources
Hit http://security.debian.org wheezy/updates/main i386 Packages
Hit http://security.debian.org wheezy/updates/main Translation-en
Get:1 http://linux.dell.com  Release.gpg [827 B]
Get:2 http://linux.dell.com  Release [1,392 B]
Ign http://linux.dell.com  Release
Get:3 http://linux.dell.com  Packages [12.2 kB]
Ign http://linux.dell.com  Translation-en_US
Ign http://linux.dell.com  Translation-en
Fetched 14.4 kB in 4s (3,136 B/s)
Reading package lists... Done
W: GPG error: http://linux.dell.com  Release: The following signatures couldn't                                                                                                                    be verified because the public key is not available: NO_PUBKEY 1285491434D8786F
root@omsa:~# gpg --keyserver pool.sks-keyservers.net --recv-key 1285491434D8786F                                                                                                                
gpg: directory `/root/.gnupg' created
gpg: new configuration file `/root/.gnupg/gpg.conf' created
gpg: WARNING: options in `/root/.gnupg/gpg.conf' are not yet active during this run
gpg: keyring `/root/.gnupg/secring.gpg' created
gpg: keyring `/root/.gnupg/pubring.gpg' created
gpg: requesting key 34D8786F from hkp server pool.sks-keyservers.net
gpg: /root/.gnupg/trustdb.gpg: trustdb created
gpg: key 34D8786F: public key "Dell Inc., PGRE 2012 (PG Release Engineering Build Group 2012) <PG_Release_Engineering@Dell.com>" imported
gpg: no ultimately trusted keys found
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
root@omsa:~#
root@omsa:~# gpg -a --export 1285491434D8786F | apt-key add -
OK
root@omsa:~# apt-get update
Hit http://ftp.hu.debian.org wheezy Release.gpg
Hit http://ftp.hu.debian.org wheezy-updates Release.gpg
Hit http://ftp.hu.debian.org wheezy Release
Hit http://ftp.hu.debian.org wheezy-updates Release
Hit http://ftp.hu.debian.org wheezy/main Sources
Hit http://security.debian.org wheezy/updates Release.gpg
Hit http://ftp.hu.debian.org wheezy/main i386 Packages
Hit http://ftp.hu.debian.org wheezy/main Translation-en
Hit http://ftp.hu.debian.org wheezy-updates/main Sources
Hit http://ftp.hu.debian.org wheezy-updates/main i386 Packages/DiffIndex
Hit http://security.debian.org wheezy/updates Release
Hit http://ftp.hu.debian.org wheezy-updates/main Translation-en/DiffIndex
Hit http://security.debian.org wheezy/updates/main Sources
Hit http://security.debian.org wheezy/updates/main i386 Packages
Hit http://security.debian.org wheezy/updates/main Translation-en
Get:1 http://linux.dell.com  Release.gpg [827 B]
Hit http://linux.dell.com  Release
Hit http://linux.dell.com  Packages
Ign http://linux.dell.com  Translation-en_US
Ign http://linux.dell.com  Translation-en
Fetched 827 B in 4s (187 B/s)
Reading package lists... Done
root@omsa:~#
root@omsa:~# apt-get install srvadmin-omcommon
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation: The following packages have unmet dependencies:
 srvadmin-omcommon : Depends: libssl0.9.8 (>= 0.9.8k-1) but it is not installable
E: Unable to correct problems, you have held broken packages.
root@omsa:~# dpkg -l|grep libssl
ii  libssl1.0.0:i386                     1.0.1e-2+deb7u16              i386         SSL shared libraries
WTF happens
root@omsa:~# wget http://snapshot.debian.org/archive/debian/20110406T213352Z/pool/main/o/openssl098/libssl0.9.8_0.9.8o-7_i386.deb

--2015-04-03 11:55:41--  http://snapshot.debian.org/archive/debian/20110406T213352Z/pool/main/o/openssl098/libssl0.9.8_0.9.8o-7_i386.deb
Resolving snapshot.debian.org (snapshot.debian.org)... 185.17.185.187, 193.62.202.30, 2001:630:206:4000:1a1a:0:c13e:ca1e, ...
Connecting to snapshot.debian.org (snapshot.debian.org)|185.17.185.187|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3090794 (2.9M) [application/x-debian-package]
Saving to: `libssl0.9.8_0.9.8o-7_i386.deb'
100%[=========================================================================================================================================================>] 3,090,794   1.11M/s   in 2.6s

2015-04-03 11:55:44 (1.11 MB/s) - `libssl0.9.8_0.9.8o-7_i386.deb' saved [3090794/3090794]

root@omsa:~# dpkg -i libssl0.9.8_0.9.8o-7_i386.deb
Selecting previously unselected package libssl0.9.8.
(Reading database ... 24865 files and directories currently installed.)
Unpacking libssl0.9.8 (from libssl0.9.8_0.9.8o-7_i386.deb) ...
Setting up libssl0.9.8 (0.9.8o-7) ...

root@omsa:~# apt-get install srvadmin-omcommon
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  libsmbios2 python-libsmbios smbios-utils srvadmin-omilcore
Suggested packages:
  libsmbios-doc
The following NEW packages will be installed:
  libsmbios2 python-libsmbios smbios-utils srvadmin-omcommon srvadmin-omilcore
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 4,685 kB of archives.
After this operation, 24.5 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
[.....]
Setting up python-libsmbios (2.2.13-0ubuntu4) ...
Setting up smbios-utils (2.2.13-0ubuntu4) ...
Setting up srvadmin-omilcore (7.1.0-3) ...
     **********************************************************
     After the install process completes, you may need
     to log out and then log in again to reset the PATH
     variable to access the Dell OpenManage CLI utilities
     **********************************************************
Setting up srvadmin-omcommon (7.1.0-2) ...
root@omsa:~#

root@omsa:~# apt-get install srvadmin-all
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  libargtable2-0 libasound2 libopenipmi0 libperl5.14 libsensors4 libsnmp-base libsnmp15 libxi6 libxslt1.1 libxtst6 openipmi setserial snmpd srvadmin-base srvadmin-deng srvadmin-hapi
  srvadmin-idrac srvadmin-idrac-ivmcli srvadmin-idrac-vmcli srvadmin-idrac7 srvadmin-idracadm srvadmin-idracadm7 srvadmin-isvc srvadmin-jre srvadmin-megalib srvadmin-omacore
  srvadmin-rac-components srvadmin-rac4 srvadmin-rac4-populator srvadmin-rac5 srvadmin-racadm4 srvadmin-racadm5 srvadmin-racdrsc srvadmin-racsvc srvadmin-smcommon srvadmin-smweb
  srvadmin-storage srvadmin-storageservices srvadmin-storelib srvadmin-storelib-sysfs srvadmin-sysfsutils srvadmin-tomcat srvadmin-webserver srvadmin-xmlsup x11-common
Suggested packages:
  libasound2-plugins lm-sensors snmp-mibs-downloader
The following NEW packages will be installed:
  libargtable2-0 libasound2 libopenipmi0 libperl5.14 libsensors4 libsnmp-base libsnmp15 libxi6 libxslt1.1 libxtst6 openipmi setserial snmpd srvadmin-all srvadmin-base srvadmin-deng
  srvadmin-hapi srvadmin-idrac srvadmin-idrac-ivmcli srvadmin-idrac-vmcli srvadmin-idrac7 srvadmin-idracadm srvadmin-idracadm7 srvadmin-isvc srvadmin-jre srvadmin-megalib srvadmin-omacore
  srvadmin-rac-components srvadmin-rac4 srvadmin-rac4-populator srvadmin-rac5 srvadmin-racadm4 srvadmin-racadm5 srvadmin-racdrsc srvadmin-racsvc srvadmin-smcommon srvadmin-smweb
  srvadmin-storage srvadmin-storageservices srvadmin-storelib srvadmin-storelib-sysfs srvadmin-sysfsutils srvadmin-tomcat srvadmin-webserver srvadmin-xmlsup x11-common
0 upgraded, 46 newly installed, 0 to remove and 0 not upgraded.
Need to get 115 MB of archives.
After this operation, 319 MB of additional disk space will be used.
Do you want to continue [Y/n]?
Get:1 http://ftp.hu.debian.org/debian/ wheezy/main libasound2 i386 1.0.25-4 [463 kB]
Get:2 http://linux.dell.com/repo/community/deb/latest/  srvadmin-deng 7.1.0-3 [1,230 kB]
Get:3 http://ftp.hu.debian.org/debian/ wheezy/main libsensors4 i386 1:3.3.2-2+deb7u1 [53.9 kB]
Get:4 http://ftp.hu.debian.org/debian/ wheezy/main libxi6 i386 2:1.6.1-1+deb7u1 [76.6 kB]
[.......]
Setting up srvadmin-racsvc (7.1.0-3) ...
Setting up srvadmin-rac4-populator (7.1.0-3) ...
Setting up srvadmin-rac-components (7.1.0-2) ...
Setting up srvadmin-racdrsc (7.1.0-2) ...
Setting up srvadmin-rac4 (7.1.0-3) ...
Setting up srvadmin-racadm5 (7.1.0-2) ...
update-alternatives: using /opt/dell/srvadmin/sbin/racadm-wrapper-rac5 to provide /opt/dell/srvadmin/sbin/racadm (racadm) in auto mode
Setting up srvadmin-rac5 (7.1.0-2) ...
Setting up srvadmin-idracadm (7.1.0-2) ...
Setting up srvadmin-idrac-vmcli (7.1.0-2) ...
Setting up srvadmin-idrac-ivmcli (7.1.0-2) ...
Setting up srvadmin-idrac (7.1.0-2) ...
Setting up srvadmin-idracadm7 (7.1.0-2) ...
Setting up srvadmin-idrac7 (7.1.0-2) ...
Setting up srvadmin-all (7.1.0-3) ...
root@omsa:~#

Further reading: http://linux.dell.com/repo/community/deb/latest/
http://serverfault.com/questions/425322/how-to-set-up-dell-omsa-tools-on-debian-6-squeeze-pe2950