Ruby RVM apt-get update error

前端 未结 17 2394
醉酒成梦
醉酒成梦 2020-12-02 12:03

I get following error when trying to install anything with RVM:

Searching for binary rubies, this might take some time.
Found remote file https://rvm.io/bina         


        
17条回答
  •  天命终不由人
    2020-12-02 12:40

    Alternative, it is also possible to cut the crap in rvm. I edited requirements_debian_update_system() in file /usr/share/rvm/scripts/functions/requirements/ubuntu like this:

      requirements_debian_update_system()
      {
      echo "*fake* apt-get update"
      #  __rvm_try_sudo apt-get --quiet --yes update ||
      #  {
      #    typeset __ret=$?
      #    case ${__ret} in
      #      (100)
      #        rvm_error "There has been error while updating 'apt-get', please give it some time and try again later.
      #404 errors should be fixed for rvm to proceed. Check your sources configured in:
      #    /etc/apt/sources.list
      #    /etc/apt/sources.list.d/*.list
      #"
      #        ;;
      #    esac
      #    return ${__ret}
      #  }
      }
    

提交回复
热议问题