web-dev-qa-db-ja.com

Ubuntu 18.04でのlibssl-dev依存関係の問題

現在、Ubuntu 18.04にlibssl-devをインストールしようとしていますが、次の問題が発生しています。

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:
 libssl-dev : Depends: libssl1.1 (= 1.1.0g-2ubuntu4.3) but 1.1.1b-1 is to be installed
              Recommends: libssl-doc but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

私は更新、再起動などの通常のことをすべて試しました。この問題を他の場所で検索しましたが、すべての結果について、回答が機能しないか、古すぎるか関連性がないか、存在しませんでした。必要に応じて、さらに詳しい情報を提供させていただきます。助けてくれてありがとう.

3
Benji Collins

私はこれらのコマンドを実行して問題を解決することができました:

Sudo apt install --reinstall libssl1.1=1.1.0g-2ubuntu4.3

Sudo apt install libssl-dev

次に、libsslがダウングレードされたときにアンインストールされたいくつかのパッケージを再インストールしました。現在、すべてが順調に機能しているようです。

2
Benji Collins