Ruby没有安装

时间:2015-06-22 10:58:00

标签: ruby

我正在关注此博客,在我的Ubuntu 13.10系统上安装Ruby。我很好,直到我尝试做" ruby​​-install ruby​​ 2.2.0"然后我收到以下错误消息:

brandonglajchen@glajchen-laptop:~/ruby-install-0.5.0$ ruby-install ruby 2.2.0
>>> Installing ruby 2.2.0 into /home/brandonglajchen/.rubies/ruby-2.2.0 ...
>>> Installing dependencies for ruby 2.2.0 ...
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package zlib1g-dev
E: Unable to locate package libyaml-dev
E: Unable to locate package libssl-dev
E: Unable to locate package libgdbm-dev
E: Unable to locate package libreadline-dev
E: Unable to locate package libncurses5-dev
E: Unable to locate package libffi-dev
!!! Installing dependencies failed!

apt-get update给了我这个:

W: GPG error: http://repository.spotify.com stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 082CCEDF94558F59
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/saucy-security/main/binary-amd64/Packages  404  Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/saucy-security/main/binary-i386/Packages  404  Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy/main/source/Sources  404  Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy/main/binary-amd64/Packages  404  Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy/main/binary-i386/Packages  404  Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy-updates/main/binary-amd64/Packages  404  Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy-updates/main/binary-i386/Packages  404  Not Found [IP: 91.189.91.24 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.

1 个答案:

答案 0 :(得分:0)

13.10不再是受支持的版本。您需要将apt源更改为指向旧版本服务器

http://old-releases.ubuntu.com/ubuntu/dists/saucy/
http://old-releases.ubuntu.com/ubuntu/dists/saucy-updates/

等等