gpt4 book ai didi

ubuntu - 我无法在 vagrant 中创建 ubuntu 仿生 64 服务器

转载 作者:行者123 更新时间:2023-12-04 19:05:27 29 4
gpt4 key购买 nike

我正在学习项目的 GitHub 和远程服务器基础开发。所以在这样做的时候,我想出了这个我无法解决的错误。我也搜索了谷歌。因为我自己无法解决这个问题或理解这个错误。我在这里发布这个问题。
请帮我修复它。
我正在 Windows 10 中尝试这个
这是我的 Vagrant 文件代码
"# -- 模式: ruby --

# vi: set ft=ruby :

# All Vagrant configuration is done below. The "2" in Vagrant.configure

# configures the configuration version (we support older styles for

# backwards compatibility). Please don't change it unless you know what

# you're doing.

Vagrant.configure("2") do |config|

# The most common configuration options are documented and commented below.

# For a complete reference, please see the online documentation at

# https://docs.vagrantup.com.


# Every Vagrant development environment requires a box. You can search for

# boxes at https://vagrantcloud.com/search.

config.vm.box = "ubuntu/bionic64"

config.vm.box_version = "~> 20200304.0.0"


config.vm.network "forwarded_port", guest: 8000, host: 8000


config.vm.provision "shell", inline: <<-SHELL

systemctl disable apt-daily.service

systemctl disable apt-daily.timer



sudo apt-get update

sudo apt-get install -y python3-venv zip

touch /home/vagrant/.bash_aliases

if ! grep -q PYTHON_ALIAS_ADDED /home/vagrant/.bash_aliases; then

echo "# PYTHON_ALIAS_ADDED" >> /home/vagrant/.bash_aliases

echo "alias python='python3'" >> /home/vagrant/.bash_aliases

fi

SHELL

end"
这是我的错误
"
使用“virtualbox”提供程序将机器“默认”设置为...
==> default: Box 'ubuntu/bionic64' could not be found. Attempting to find and install...

default: Box Provider: virtualbox

default: Box Version: ~> 20200304.0.0

The box 'ubuntu/bionic64' could not be found or

could not be accessed in the remote catalog. If this is a private

box on HashiCorp's Vagrant Cloud, 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://vagrantcloud.com/ubuntu/bionic64"]

Error: schannel: next InitializeSecurityContext failed: Unknown error (0x80092012) - The

revocation function was unable to check revocation for the certificate."

最佳答案

阅读错误消息,您似乎正在尝试下载一个不公开的盒子
从官方文档中,您可以尝试使用 hashincorp/bionic64此处链接到文档:https://www.vagrantup.com/docs/boxes#official-boxes

关于ubuntu - 我无法在 vagrant 中创建 ubuntu 仿生 64 服务器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70970417/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com