ubuntu 18 salt(salt-master,salt-minion)エラーの解決策のインストール
2529 ワード
会社の機械には新しいubuntu 18 serverバージョンがあり、一部は元のubuntu 16からインストールされている.04アップグレードされたものは、aptインストーラを使用するときとは異なり、アップグレードされたものはapt updateに失敗したり、apt installに失敗したりすることがあります.この場合、/etc/apt/sourcesを含むソースを置き換える必要があります.リスト内の構成と/etc/apt/sources.list.d/以下のファイルの構成.問題1:apt install salt-minionの場合、i 386に報告して解決方法をサポートしないのは、ソースファイルに[arch=amd 64]を入れ、加算後、以下のように構成することである.
質問2:新聞:
現在の構成は次のとおりです.
解決策:変更/etc/apt/sources.リスト:
その後、正常にインストールできます.
ネット上で答えが見つからないので、同じ問題に遭遇した仲間に少し助けを与えるように記録します.
root@sz-dev-vm-ubuntu69-64:/opt# cat /etc/apt/sources.list.d/saltstack.list
deb [arch=amd64] http://repo.saltstack.com/apt/ubuntu/18.04/amd64/latest bionic main
質問2:新聞:
The following packages have unmet dependencies:
salt-minion : Depends: python-zmq (>= 14.4.0) but it is not installable
Depends: salt-common (= 2018.3.3+ds-2) but it is not going to be installed
Recommends: debconf-utils but it is not installable
E: Unable to correct problems, you have held broken packages.
現在の構成は次のとおりです.
oot@ubuntu18-ip54:~# cat /etc/apt/sources.list
deb http://archive.ubuntu.com/ubuntu bionic main
deb http://archive.ubuntu.com/ubuntu bionic-security main
deb http://archive.ubuntu.com/ubuntu bionic-updates main
root@ubuntu18-ip54:~# cat /etc/apt/sources.list.d/saltstack.list
deb [arch=amd64] http://repo.saltstack.com/apt/ubuntu/18.04/amd64/latest bionic main
解決策:変更/etc/apt/sources.リスト:
root@ubuntu18:/etc/apt# cat sources.list
#deb http://archive.ubuntu.com/ubuntu bionic main
#deb http://archive.ubuntu.com/ubuntu bionic-security main
#deb http://archive.ubuntu.com/ubuntu bionic-updates main
deb http://archive.ubuntu.com/ubuntu/ bionic main restricted
deb http://archive.ubuntu.com/ubuntu/ bionic-updates main restricted
deb http://archive.ubuntu.com/ubuntu/ bionic universe
deb http://archive.ubuntu.com/ubuntu/ bionic-updates universe
deb http://archive.ubuntu.com/ubuntu/ bionic multiverse
deb http://archive.ubuntu.com/ubuntu/ bionic-updates multiverse
deb http://archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ bionic-security main restricted
deb http://security.ubuntu.com/ubuntu/ bionic-security universe
deb http://security.ubuntu.com/ubuntu/ bionic-security multiverse
root@ubuntu18:/etc/apt# cat sources.list.d/saltstack.list
root@ubuntu18-ip54:~# cat /etc/apt/sources.list.d/saltstack.list
deb [arch=amd64] http://repo.saltstack.com/apt/ubuntu/18.04/amd64/latest bionic main
その後、正常にインストールできます.
ネット上で答えが見つからないので、同じ問題に遭遇した仲間に少し助けを与えるように記録します.