ubuntu安装ruby1.9.3报错

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

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

在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     #已下载的包


即可解决



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值