今天 Ubuntu 要求我升级到 11.04。安装过程非常顺利,直到最后以下软件包失败:
install-info
ubuntu-standard
安装程序挂起,所以我不得不手动关闭它。Ubuntu 仍然运行良好,但它说升级没有正常工作,所以我犹豫着在解决问题之前是否重新启动它,以防我无法重新进入。
我正在最新版本的 Virtual Box 中运行 Ubuntu,之前运行的是 10.10 版本。
我尝试使用 apt-get 手动安装 install-info 但出现以下错误:
Unhandled exception: [#<SystemStackError: stack level too deep>]
/usr/local/ruby/lib/ruby/gems/1.9.1/gems/ZenTest-4.5.0/lib/autotest.rb:842:in `block in <class:Autotest>': undefined method `backtrace' for [#<SystemStackError: stack level too deep>]:Array (NoMethodError)
from /usr/local/ruby/lib/ruby/gems/1.9.1/gems/ZenTest-4.5.0/lib/autotest.rb:828:in `[]'
from /usr/local/ruby/lib/ruby/gems/1.9.1/gems/ZenTest-4.5.0/lib/autotest.rb:828:in `block in hook'
from /usr/local/ruby/lib/ruby/gems/1.9.1/gems/ZenTest-4.5.0/lib/autotest.rb:828:in `each'
from /usr/local/ruby/lib/ruby/gems/1.9.1/gems/ZenTest-4.5.0/lib/autotest.rb:828:in `any?'
from /usr/local/ruby/lib/ruby/gems/1.9.1/gems/ZenTest-4.5.0/lib/autotest.rb:828:in `hook'
from /usr/local/ruby/lib/ruby/gems/1.9.1/gems/ZenTest-4.5.0/lib/autotest.rb:344:in `rescue in run'
from /usr/local/ruby/lib/ruby/gems/1.9.1/gems/ZenTest-4.5.0/lib/autotest.rb:320:in `run'
from /usr/local/ruby/lib/ruby/gems/1.9.1/gems/ZenTest-4.5.0/lib/autotest.rb:241:in `run'
from /usr/local/ruby/lib/ruby/gems/1.9.1/gems/ZenTest-4.5.0/bin/autotest:6:in `<top (required)>'
from /usr/local/ruby/bin/autotest:19:in `load'
from /usr/local/ruby/bin/autotest:19:in `<main>'
dpkg: error processing install-info (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of info:
info depends on install-info; however:
Package install-info is not configured yet.
dpkg: error processing info (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ubuntu-standard:
ubuntu-standard depends on info; however:
Package info is not configured yet.
dpkg: error processing ubuntu-standard (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates it's a follow-up error from a previous failure.
No apport report written because the error message indicates it's a follow-up error from a previous failure.
Errors were encountered while processing:
install-info
info
ubuntu-standard
E: Sub-process /usr/bin/dpkg returned an error code (1)
关于我下一步应该尝试什么,有什么想法吗?
答案1
好的,我找到了问题所在。在我的 /etc/environment 文件中,PATH 变量下有一行 RSPEC。删除此行即可解决问题。