由于依赖 libssl1.1,无法使用 apt 安装任何东西

由于依赖 libssl1.1,无法使用 apt 安装任何东西

当我sudo apt upgrade从终端运行时,它出现错误。

输出:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libssl-dev : Depends: libssl1.1 (= 1.1.1f-1ubuntu2.18) but 1.1.1f-1ubuntu2 is installed
 libssl1.1 : Breaks: libssl1.1:i386 (!= 1.1.1f-1ubuntu2) but 1.1.1f-1ubuntu2.18 is installed
 libssl1.1:i386 : Breaks: libssl1.1 (!= 1.1.1f-1ubuntu2.18) but 1.1.1f-1ubuntu2 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution)

有人能给我一些提示/建议来解决这个问题吗?我正在提供一些有关我的设备的信息。

输出uname -a

Linux milon-bs 5.15.0-75-generic #82~20.04.1-Ubuntu SMP Wed Jun 7 19:37:37 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

输出lsb_release -crid

Distributor ID: Ubuntu
Description:    Ubuntu 20.04.6 LTS
Release:    20.04
Codename:   focal

输出sudo apt-cache policy libssl-dev libssl1.1

libssl-dev:
  Installed: 1.1.1f-1ubuntu2.18
  Candidate: 1.1.1f-1ubuntu2.19
  Version table:
     1.1.1f-1ubuntu2.19 500
        500 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
        500 http://archive.ubuntu.com/ubuntu focal-security/main amd64 Packages
 *** 1.1.1f-1ubuntu2.18 100
        100 /var/lib/dpkg/status
     1.1.1f-1ubuntu2 500
        500 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages
     1.1.1-1ubuntu2.1~18.04.23 500
        500 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages
libssl1.1:
  Installed: 1.1.1f-1ubuntu2
  Candidate: 1.1.1f-1ubuntu2.19
  Version table:
     1.1.1f-1ubuntu2.19 500
        500 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
        500 http://archive.ubuntu.com/ubuntu focal-security/main amd64 Packages
 *** 1.1.1f-1ubuntu2 500
        500 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages
        100 /var/lib/dpkg/status
     1.1.1-1ubuntu2.1~18.04.23 500
        500 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages

相关内容