Ubuntu 11.04:`apt-get install rake` -> “E:无法定位包耙”
这可能是一种“插入了吗?”的问题。问题,但在获得 Ubuntu 11.04 的默认 Rackspace 映像后。运行命令(以 root 身份)
apt-get install rake
失败并出现错误,
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package rake
我确定缺少一些简单的内容。
This is probably a type of "is it plugged in?" question, but after getting a default Rackspace image of Ubuntu 11.04 up. Running command (as root)
apt-get install rake
Fails with error
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package rake
I'm missing something simple I'm sure.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
看来
rake
包不在 11.04 源中,但在 10.10 源中。要使 apt-get install rake 在 11.04 上运行:
将以下行添加到
/etc/apt/sources.list
deb http://archive.ubuntu .com/ubuntu/ maverick 主受限宇宙
deb-src http://archive.ubuntu.com/ubuntu/ maverick main 受限宇宙
更新软件包列表
apt-get更新
现在
rake
应该可用:apt-get install rake
It appears that
rake
package is not in the 11.04 sources, but it is in 10.10 sources.To get
apt-get install rake
to work on 11.04:Add the following lines to
/etc/apt/sources.list
deb http://archive.ubuntu.com/ubuntu/ maverick main restricted universe
deb-src http://archive.ubuntu.com/ubuntu/ maverick main restricted universe
Update package listing
apt-get update
Now
rake
should be available:apt-get install rake
尝试
gem install rake
使用 rvm 可能比 Ubuntu 的 Ruby 和 Gem 更好。
Try
gem install rake
It may be better to use rvm than Ubuntu's Ruby and Gem.