E:软件包‘pkg-config’没有安装候选项

E:软件包‘pkg-config’没有安装候选项

我在 Ubuntu 14.10 上,并尝试安装新的 mongodb 驱动程序,但出现此错误:

configure: error: Cannot find OpenSSL's libraries
ERROR: `/tmp/pear/temp/mongodb/configure' failed

我发现在安装新驱动程序之前我需要安装 pkg-config,但是当我尝试这样做时出现以下错误:

E: Package 'pkg-config' has no installation candidate

有人可以帮帮我吗?

答案1


Ubuntu 14.10:请/etc/apt/sources.list用此新文本替换所有文本

deb http://old-releases.ubuntu.com/ubuntu/ utopic main restricted
deb http://old-releases.ubuntu.com/ubuntu/ utopic multiverse universe
deb http://old-releases.ubuntu.com/ubuntu/ utopic-updates main restricted
deb http://old-releases.ubuntu.com/ubuntu/ utopic-updates multiverse universe
deb http://old-releases.ubuntu.com/ubuntu/ utopic-backports main restricted
deb http://old-releases.ubuntu.com/ubuntu/ utopic-backports multiverse universe
deb http://old-releases.ubuntu.com/ubuntu/ utopic-security main restricted
deb http://old-releases.ubuntu.com/ubuntu/ utopic-security multiverse universe

...然后运行sudo apt-get update

安装“OpenSSL 的库”:sudo apt-get install libssl-dev pkg-config


相关内容