我尝试使用vagrant来设置开发环境,方法是遵循https://bitbucket.org/suunto/movesense-device-lib/src/523308c2b380fcde46d51af9af2f9ed17907ab55/README.md上的"Automated setup on all operating systems using Vagrant“这篇指南
但是,我无法下载远程文件。以下是错误输出:
~/symbio/suunto-movesense-device-lib-c96b25358d86$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'ubuntu/artful64' could not be found. Attempting to find and install...
default: Box Provider: virtualbox
default: Box Version: >= 0
==> default: Loading metadata for box 'ubuntu/artful64'
default: URL: https://vagrantcloud.com/ubuntu/artful64
==> default: Adding box 'ubuntu/artful64' (v20180718.0.0) for provider: virtualbox
default: Downloading: https://vagrantcloud.com/ubuntu/boxes/artful64/versions/20180718.0.0/providers/virtualbox.box
default: Download redirected to host: cloud-images.ubuntu.com
An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
again.
The requested URL returned error: 404 Not Found
我如何解决这个问题?
使用Vagrant 2.2.3和Debian 9.7
发布于 2019-02-04 17:26:26
这可能是由于Debian artfull64不再支持和从Ubuntu服务器上删除的repo/image造成的。
尝试更新到更新的Ubuntu版本(Xenial或Bionic)以获取LTS,并且不会太快再次中断构建。
要升级,请编辑Vagrant文件中的config.vm.box行:
config.vm.box = 'ubuntu/xenial64'
可以在vagrant documentation https://app.vagrantup.com/boxes/search中找到该盒子的可能候选者
我遇到了一个类似的问题,并让Movesense的人从July更新到artful,我还警告他们artful将在2018年7月停止支持,他们应该使用LTS版本的Ubuntu。
主要的问题是获得一个版本,在它的代码库中包含"gcc-arm-embedded“包,当时我有问题,当时它不是仿生/xenial的,但现在应该是了。
https://stackoverflow.com/questions/54418043
复制相似问题