在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 #已下载的包
即可解决