Ubuntu 18.04 上的 libssl-dev 依賴問題

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.

我已經嘗試了所有常見的操作,例如更新、重新啟動等。如果需要,我很樂意提供更多資訊。感謝您的任何幫助。

答案1

我設法透過運行以下命令解決了該問題:

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

sudo apt install libssl-dev

然後我重新安裝了libssl降級時卸載的幾個軟體包。現在一切似乎都進展順利。

相關內容