V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
zjsxwc
V2EX  ›  程序员

vagrant 好像不能拉取公共镜像?

  •  
  •   zjsxwc ·
    zjsxwc · 2018-02-13 21:10:35 +08:00 · 2111 次点击
    这是一个创建于 2257 天前的主题,其中的信息可能已经有所发展或是发生改变。

    我刚想用最新的 debian,但是现在好像不行了:

    $ cat Vagrantfile 
    Vagrant.configure("2") do |config|
      config.vm.box = "debian/stretch64"
    end
    
    $ vagrant up
    Bringing machine 'default' up with 'virtualbox' provider...
    ==> default: Box 'debian/stretch64' could not be found. Attempting to find and install...
        default: Box Provider: virtualbox
        default: Box Version: >= 0
    The box 'debian/stretch64' could not be found or
    could not be accessed in the remote catalog. If this is a private
    box on HashiCorp's Atlas, please verify you're logged in via
    `vagrant login`. Also, please double-check the name. The expanded
    URL and error message are shown below:
    
    URL: ["https://atlas.hashicorp.com/debian/stretch64"]
    Error: The requested URL returned error: 404 Not Found
    

    这个报错提醒我用vagrant login先登录,但是https://atlas.hashicorp.com根本没有注册账号的入口也就登录不了,成了个死循环,我是不是哪里弄错了?我要怎么做?

    3 条回复    2018-02-13 23:08:43 +08:00
    NewJoy7
        1
    NewJoy7  
       2018-02-13 22:49:15 +08:00   ❤️ 1
    更新到最新的 vagrant 吧,前一段时间折腾过.

    或者
    NewJoy7
        2
    NewJoy7  
       2018-02-13 22:49:47 +08:00
    export VAGRANT_SERVER_URL='https://vagrantcloud.com'
    zjsxwc
        3
    zjsxwc  
    OP
       2018-02-13 23:08:43 +08:00
    @NewJoy7

    真的解决了,更新最新的 vagrant 就好了
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1140 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 18:25 · PVG 02:25 · LAX 11:25 · JFK 14:25
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.