我正在运行ubuntu服务器12.04。我想在虚拟框上编译Monetdb,但是得到错误,我没有安装pkg-config。当我使用sudo apt-get install pkg-config时,我收到错误:
Package pkg-config is not available, but is referred to by another package. This mean that the package is missing, has been obsoleted, or is only available from another source
E: Package 'pkg-config' has no installation candidate.
我在14.04没有这个问题。提前谢谢。
答案 0 :(得分:1)
通过以下方式解决了问题:
sudo rm -rf /var/lib/apt/lists/*
sudo apt-key --keyserver keyserver.ubuntu.com --recv-keys KEY
sudo apt-get update
虽然不确定为什么会这样。