Ubuntu 16.10 的 libgmp3-dev 去哪儿了?

Ubuntu 16.10 的 libgmp3-dev 去哪儿了?

在 Yakkety 上:

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 16.10
Release:        16.10
Codename:       yakkety

我似乎无法安装libgmp3-dev

$ sudo apt-get install libgmp3-dev
[sudo] password for exarkun: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package libgmp3-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libgmp3-dev' has no installation candidate

但看起来我應該有能力去

显然至少还有一个人可以在 16.10 上安装此软件包。正如您所看到的,我在安装 fastecdsa 时遇到了麻烦,这似乎与缺少 libgmp3-dev 有关。

这是我的sources.list(减去注释行):

deb http://mirror.nodesdirect.com/ubuntu/ yakkety-updates main restricted
deb-src http://mirror.nodesdirect.com/ubuntu/ yakkety-updates main restricted

deb http://mirror.nodesdirect.com/ubuntu/ yakkety universe
deb-src http://mirror.nodesdirect.com/ubuntu/ yakkety universe
deb http://mirror.nodesdirect.com/ubuntu/ yakkety-updates universe
deb-src http://mirror.nodesdirect.com/ubuntu/ yakkety-updates universe

deb http://mirror.nodesdirect.com/ubuntu/ yakkety multiverse
deb-src http://mirror.nodesdirect.com/ubuntu/ yakkety multiverse
deb http://mirror.nodesdirect.com/ubuntu/ yakkety-updates multiverse
deb-src http://mirror.nodesdirect.com/ubuntu/ yakkety-updates multiverse

deb http://mirror.nodesdirect.com/ubuntu/ yakkety-backports main restricted universe multiverse
deb-src http://mirror.nodesdirect.com/ubuntu/ yakkety-backports main restricted universe multiverse


deb http://security.ubuntu.com/ubuntu/ yakkety-security universe multiverse main restricted
deb-src http://security.ubuntu.com/ubuntu/ yakkety-security universe multiverse main restricted

mirror.nodesdirect.com来自https://launchpad.net/ubuntu/+archivemirrors(之前我使用普林斯顿数学镜,结果相同)。

为什么我无法安装这个软件包?

答案1

从您的 sources.list 文件中,我发现您缺少main存储库的组件。将这两行添加到文件中sources.list,然后使用以下代码执行包索引更新:sudo apt update

deb http://mirror.nodesdirect.com/ubuntu/ yakkety main
deb-src http://mirror.nodesdirect.com/ubuntu/ yakkety main

然后照常安装包


它哪儿也没去。也可用于 yakkety。http://packages.ubuntu.com/yakkety/libgmp3-dev

检查您的软件源是否已启用相应的软件源。

相关内容