我在 Ubuntu 15.04 下尝试安装 ruby 2.0 时遇到问题,我ppa:brightbox/ruby-ng
使用以下命令添加:
sudo apt-add-repository ppa:brightbox/ruby-ng
当我使用时出现以下错误sudo apt-get update
:
W: Failed to fetch http://ppa.launchpad.net/brightbox/ruby-ng/ubuntu/dists/vivid/main/binary-amd64/Packages 404 Not Found
W: Failed to fetch http://ppa.launchpad.net/brightbox/ruby-ng/ubuntu/dists/vivid/main/binary-i386/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
我该如何修复此问题?
答案1
电力供应局Brightbox Ruby NG没有 Vivid 的软件包。但 Ruby 2.0 正在Ubuntu 存储库适用于您的 Ubuntu Vivid 安装。
所以
sudo apt-get install ppa-purge
sudo ppa-purge ppa:brightbox/ruby-ng
sudo apt-get install --reinstall ruby