在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 #已下载的包
即可解决
在Ubuntu Lucid上安装Ruby1.9.3时遇到依赖错误,涉及libice6、libxss1、libxtst6和libxxf86dga1等包,提示x11-common未正确安装。尝试运行`apt-get -f install`未能解决问题,错误显示subprocess返回状态25。解决方法是手动下载x11-common的deb包并使用`dpkg -i`命令安装。
3734

被折叠的 条评论
为什么被折叠?



