首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >Ruby -获取更新错误

Ruby -获取更新错误
EN

Stack Overflow用户
提问于 2014-05-14 09:42:24
回答 16查看 50K关注 0票数 55

在尝试使用RVM安装任何内容时,我会得到以下错误:

代码语言:javascript
复制
Searching for binary rubies, this might take some time.
Found remote file https://rvm.io/binaries/ubuntu/13.04/x86_64/ruby-2.1.1.tar.bz2
Checking requirements for ubuntu.
Installing requirements for ubuntu.
Updating system..kshitiz password required for 'apt-get --quiet --yes update': 
............................
Error running 'requirements_debian_update_system ruby-2.1.1',
showing last 15 lines of /home/kshitiz/.rvm/log/1400047196_ruby-2.1.1/update_system.log
++ /scripts/functions/logging : rvm_pretty_print()  78 > case "${TERM:-dumb}" in
++ /scripts/functions/logging : rvm_pretty_print()  81 > case "$1" in
++ /scripts/functions/logging : rvm_pretty_print()  83 > [[ -t 2 ]]
++ /scripts/functions/logging : rvm_pretty_print()  83 > return 1
++ /scripts/functions/logging : rvm_error()  117 > printf %b 'There has been error while updating '\''apt-get'\'', please give it some time and try again later.
For 404 errors check your sources configured in:
    /etc/apt/sources.list
    /etc/apt/sources.list.d/*.list
\n'
There has been error while updating 'apt-get', please give it some time and try again later.
For 404 errors check your sources configured in:
    /etc/apt/sources.list
    /etc/apt/sources.list.d/*.list

++ /scripts/functions/requirements/ubuntu : requirements_debian_update_system()  53 > return 100
Requirements installation failed with status: 100.

我怎么才能解决这个问题?

EN

Stack Overflow用户

发布于 2014-12-15 14:20:59

我还必须移除失败的存储库,但我很难根据这里的说明发现它们并删除它们。因此,我找到了这个链接,它解释了为什么会发生这种情况,以及如何删除失败的存储库:

简而言之,运行以下命令查找失败的存储库:

代码语言:javascript
复制
sudo apt-get update | grep "Failed"

一个示例输出可以如下所示:

代码语言:javascript
复制
:~# apt-get update  | grep "Failed"
W: Failed to fetch http://ppa.launchpad.net/upubuntu-com/web/ubuntu/dists/trusty/main/binary-amd64/Packages  404  Not Found

W: Failed to fetch http://ppa.launchpad.net/upubuntu-com/web/ubuntu/dists/trusty/main/binary-i386/Packages  404  Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.

最后,使用此命令删除失败的repo:

代码语言:javascript
复制
sudo add-apt-repository --remove ppa:{failing ppa}

这里的示例如下所示:

代码语言:javascript
复制
sudo add-apt-repository --remove ppa:upubuntu-com/web
票数 39
EN
查看全部 16 条回答
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/23650992

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档