![在 Ubuntu 18.04 docker 容器上安装 srvadmin-hapi 包不起作用](https://linux22.com/image/193932/%E5%9C%A8%20Ubuntu%2018.04%20docker%20%E5%AE%B9%E5%99%A8%E4%B8%8A%E5%AE%89%E8%A3%85%20srvadmin-hapi%20%E5%8C%85%E4%B8%8D%E8%B5%B7%E4%BD%9C%E7%94%A8.png)
根据戴尔文档https://linux.dell.com/repo/community/openmanage/我正在尝试安装Dell OpenManage tools
在 Ubuntu 18.04 容器中。
sudo echo 'deb http://linux.dell.com/repo/community/openmanage/940/bionic bionic main' | sudo tee -a /etc/apt/sources.list.d/linux.dell.com.sources.list
sudo wget https://linux.dell.com/repo/pgp_pubkeys/0x1285491434D8786F.asc
sudo apt-key add 0x1285491434D8786F.asc
sudo apt-get update
sudo apt-get install -y srvadmin-idracadm8
但我遇到了以下错误
Setting up srvadmin-hapi (9.4.0) ...
System has not been booted with systemd as init system (PID 1). Can't operate.
dpkg: error processing package srvadmin-hapi (--configure):
installed srvadmin-hapi package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
srvadmin-hapi
E: Sub-process /usr/bin/dpkg returned an error code (1)
我研究了解决方案在 docker 容器上安装 srvadmin-hapi 包。但使用的命令gpg --keyserver pool.sks-keyservers.net --recv-key 1285491434D8786F
无法正常工作gpg: keyserver receive failed: no name
。
按照https://linux.dell.com/repo/community/openmanage/我们应该用来sudo wget https://linux.dell.com/repo/pgp_pubkeys/0x1285491434D8786F.asc
添加存储库密钥。