2015-06-22 133 views
-3

我正在關注這個博客在我的Ubuntu 13.10系統上安裝Ruby。我好權,直到我嘗試做 「紅寶石安裝Ruby 2.2.0」,然後我收到以下錯誤信息:Ruby沒有安裝

[email protected]:~/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的更新使我這個:

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. 
+0

'apt-get的update'? –

+0

我將apt-get更新結果添加到主文章中。 –

+0

你的問題是什麼? – sawa

回答

0

13.10不再是受支持的版本。你需要改變你的APT源指向一個老版本的服務器

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

+0

這完全解決了,謝謝。 –