Mer*_*kun 7 package-management apt dependencies
我一直在尝试在运行 Ubuntu 18.04 的 PC 上安装 lighty。我不断收到的错误是它有未满足的依赖项,即 libssl1.1。但是,已经安装了 libssl1.1。
$ sudo apt-get install lighttpd
Reading package lists... Done
Building dependency tree
Reading state information... Done
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:
lighttpd : Depends: libssl1.1 (>= 1.1.0) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Run Code Online (Sandbox Code Playgroud)
的输出apt-cache policy libssl1.1是
libssl1.1:
Installed: 1.1.1a-2+ubuntu18.04.1+deb.sury.org+1
Candidate: 1.1.1a-2+ubuntu18.04.1+deb.sury.org+1
Version table:
*** 1.1.1a-2+ubuntu18.04.1+deb.sury.org+1 500
500 http://ppa.launchpad.net/ondrej/php/ubuntu bionic/main amd64 Packages
100 /var/lib/dpkg/status
1.1.0g-2ubuntu4.3 500
500 http://zw.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
500 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages
1.1.0g-2ubuntu4 500
500 http://zw.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
Run Code Online (Sandbox Code Playgroud)
我不确定这里是否有我可能遗漏的东西。
我看到两个选项:
尝试libssl手动安装(来自官方存储库的确切版本):
sudo apt install libssl1.1=1.1.0g-2ubuntu4.3
Run Code Online (Sandbox Code Playgroud)ppa:ondrej/php从系统中删除:
sudo apt install ppa-purge
sudo ppa-purge ppa:ondrej/php
Run Code Online (Sandbox Code Playgroud)
然后安装 lighttpd
sudo apt install lighttpd
Run Code Online (Sandbox Code Playgroud)| 归档时间: |
|
| 查看次数: |
15966 次 |
| 最近记录: |