我对 Ubuntu 世界还很陌生,在使用 zlib1g-dev 时遇到了这个问题。
这是我的系统的版本:
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.6 LTS
Release: 18.04
Codename: bionic
我正在尝试安装 samtools,按照主页https://github.com/samtools/samtools/blob/develop/INSTALL不幸的是,当我尝试安装先决条件时
udo apt-get update # Ensure the package list is up to date
sudo apt-get install autoconf automake make gcc perl zlib1g-dev libbz2-dev liblzma-dev libcurl4-gnutls-dev libssl-dev libncurses5-dev
我得到了这个输出
Reading package lists... Done
Building dependency tree
Reading state information... Done
autoconf is already the newest version (2.69-11).
autoconf set to manually installed.
automake is already the newest version (1:1.15.1-3ubuntu2).
automake set to manually installed.
make is already the newest version (4.1-9.1ubuntu1).
make set to manually installed.
gcc is already the newest version (4:7.4.0-1ubuntu2.3).
gcc set to manually installed.
libbz2-dev is already the newest version (1.0.6-8.1ubuntu0.2).
perl is already the newest version (5.26.1-6ubuntu0.5).
perl set to manually installed.
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
libncurses5-dev : Depends: libtinfo-dev (= 6.1-1ubuntu1.18.04) but it is not going to be installed
python3.9 : Depends: libpython3.9-stdlib (= 3.9.13-1+bionic1) but 3.9.10-1+bionic1 is to be installed
python3.9-minimal : Depends: libpython3.9-minimal (= 3.9.13-1+bionic1) but 3.9.10-1+bionic1 is to be installed
zlib1g-dev : Depends: zlib1g (= 1:1.2.11.dfsg-0ubuntu2.2) but 1:1.2.11.dfsg-0ubuntu2.1 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
您能建议我继续进行的方法吗?我尝试了 apt --fix-broken install,但出现了更多错误。提前谢谢您。
更新
sudo apt policy libtinfo-dev
libtinfo-dev:
Installed: (none)
Candidate: 6.1-1ubuntu1.18.04
Version table:
6.1-1ubuntu1.18.04 500
500 http://de.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
6.1-1ubuntu1 500
500 http://de.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
sudo apt policy libpython3.9-stdlib
libpython3.9-stdlib:
Installed: 3.9.10-1+bionic1
Candidate: 3.9.13-1+bionic1
Version table:
3.9.13-1+bionic1 500
500 http://ppa.launchpad.net/deadsnakes/ppa/ubuntu bionic/main amd64 Packages
*** 3.9.10-1+bionic1 100
100 /var/lib/dpkg/status