apt-get install 不能用,救救我

帖子列表 发布于 2014/11/17 11:19
阅读 1K+
收藏 0
ddd@pr001:~/ruby/ruby-2.1.5$ sudo apt-get install ruby1.9.1
[sudo] password for ddd:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  libruby1.9.1 libyaml-0-2
Suggested packages:
  ruby1.9.1-examples ri1.9.1 graphviz ruby1.9.1-dev
The following NEW packages will be installed:
  libruby1.9.1 libyaml-0-2 ruby1.9.1
0 upgraded, 3 newly installed, 0 to remove and 256 not upgraded.
Need to get 4,247 kB/4,305 kB of archives.
After this operation, 13.3 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Err http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libruby1.9.1 i386 1.9.3.0-1ubuntu2.8
  404  Not Found [IP: 11.189.91.14 80]
Err http://security.ubuntu.com/ubuntu/ precise-security/main libruby1.9.1 i386 1.9.3.0-1ubuntu2.8
  404  Not Found [IP: 11.189.88.153 80]
Err http://security.ubuntu.com/ubuntu/ precise-security/main ruby1.9.1 i386 1.9.3.0-1ubuntu2.8
  404  Not Found [IP: 11.189.88.153 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/r/ruby1.9.1/libruby1.9.1_1.9.3.0-1ubuntu2.8_i386.deb  404  Not Found [IP: 11.189.88.153 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/r/ruby1.9.1/ruby1.9.1_1.9.3.0-1ubuntu2.8_i386.deb  404  Not Found [IP: 11.189.88.153 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
加载中
0
愤怒的小兔
愤怒的小兔
感觉不是apt-get install的问题,不过一般玩ruby不是用rvm安装比较好吗(多版本共存,方便切换版本)?提供个rvm国内配置方法:https://ruby-china.org/wiki/rvm-guide
0
Feng_Yu
Feng_Yu
404了,也许资源已经重命名了,先试试sudo apt-get update刷新软件缓存
0
dreamhack
dreamhack

sudo apt-get autoremove && sudo apt-get clean && sudo apt-get install -f 

然后:sudo rm /var/cache/apt/archives/lock  
sudo rm var/lib/dpkg/lock 


话说,你这源也有问题吧

0
inuxor
inuxor

源里边没有。


0
leo108
leo108

换一个源,比如网易或者搜狐的

0
s
scooler
你现在用的版本的源已经不受支持了,升级系统到LTS版本
Feng_Yu
Feng_Yu
你看软件源后面打印的开发代号了没?
0
0
hibegin
hibegin
干嘛不用国内的源!
0
最美不过相识
最美不过相识
感觉是源的问题
0
cyper
cyper
sudo apt-get update先
帖子列表
帖子列表
这个没用 试过了
返回顶部
顶部