ubuntu安裝ruby1.9.3報錯

在ubuntu lucid上安裝ruby1.9.3時有時會報如下錯誤:


You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
  libice6: Depends: x11-common but it is not going to be installed
  libxss1: Depends: x11-common but it is not going to be installed
  libxtst6: Depends: x11-common but it is not going to be installed
  libxxf86dga1: Depends: x11-common but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).


表明依賴報x11-common未正確安裝或者無法安裝


按提示運行

apt-get install -f無法額解決

dpkg: error processing /var/cache/apt/archives/x11-common_1%3a7.6+12ubuntu1_all.deb (--install):
 subprocess new pre-installation script returned error exit status 25
Errors were encountered while processing:
 /var/cache/apt/archives/x11-common_1%3a7.6+12ubuntu1_all.deb

可以嘗試手動安裝x11-common

1、從連接下載x11-common deb包

dpkg -i xxx.deb     #已下載的包


即可解決



發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章