2016-03-30 83 views
2

我正在運行Ubuntu 12.04。我想在虛擬盒子上編譯Monetdb,但得到錯誤,我沒有安裝pkg-config。當我使用sudo apt-get install pkg-config時出現錯誤:無法安裝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沒有這個問題。提前致謝。

回答

1

通過修正了一個問題:

sudo rm -rf /var/lib/apt/lists/* 
sudo apt-key --keyserver keyserver.ubuntu.com --recv-keys KEY 
sudo apt-get update 

雖然不知道爲什麼會發生。