0

当我尝试使用此命令在 ubuntu 12.04 中安装 ruby​​-rvm

sudo apt-get install ruby-rvm  

它正确下载软件包,但随后出现此错误

Setting up ruby-rvm (1.6.9-0ubuntu2) ...
dpkg-statoverride: error: syntax error: unknown group 'admin' in statoverride file
dpkg: error processing ruby-rvm (--configure):
 subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
 ruby-rvm
E: Sub-process /usr/bin/dpkg returned an error code (1)

stateoverride 文件内容如下

root mlocate 2755 /usr/bin/mlocate
hplip root 755 /var/run/hplip
root ssl-cert 710 /etc/ssl/private
root crontab 2755 /usr/bin/crontab
4

1 回答 1

0

您不应该以这种方式安装 rvm,ubuntu 存储库中的软件包非常旧并且包含多个错误,请查看此说明以了解正确清理和安装 rvm 的方法:https ://stackoverflow.com/a/9056395/497756

于 2013-07-20T06:10:59.020 回答