启动失败:远程“snapcraft”未知或无法访问 - multipass 返回退出代码 2

启动失败:远程“snapcraft”未知或无法访问 - multipass 返回退出代码 2

我正在学习如何通过以下方式创建快照Ubuntu 网站上的教程。前三步进展顺利,但就在我即将进行第四步时,我需要去某个地方。第二天我试图继续,但什么也没发生。

snapcraft当我试图跑步时

❯ snapcraft -v
Starting Snapcraft 7.3.1                                                                                                                                                 
Logging execution to '~/.local/state/snapcraft/log/snapcraft-20230321-191401.108439.log'                                                                       
Launching a VM.
Build environment is in unknown state, cleaning first.
info failed: The following errors occurred:
instance "snapcraft-my-snap-name" does not exist
warning: "--mem" long option will be deprecated in favour of "--memory" in a future release.Please update any scripts, etc.
launch failed: Remote "snapcraft" is unknown or unreachable.                    
An error occurred with the instance when trying to launch with 'multipass': returned exit code 2.
Ensure that 'multipass' is setup correctly and try again.

当我检查多通道的情况时,它显示大量网络访问已被禁用,即

❯ snap logs multipass
2023-03-21T19:04:31-07:00 multipassd[911]: Could not update manifest: failed to download from 'https://cloud-images.ubuntu.com/buildd/releases/bionic/release/bionic-server-cloudimg-amd64-disk.img': Network access is disabled.
2023-03-21T19:12:09-07:00 multipassd[911]: Error getting https://codeload.github.com/canonical/multipass-blueprints/zip/refs/heads/main: Network access is disabled. - trying cache.
2023-03-21T19:12:09-07:00 multipassd[911]: Cannot retrieve headers for https://cdimage.ubuntu.com/ubuntu-core/16/stable/current/ubuntu-core-16-amd64.img.xz: Network access is disabled.
2023-03-21T19:12:09-07:00 multipassd[911]: Could not update manifest: failed to download from 'https://cdimage.ubuntu.com/ubuntu-core/16/stable/current/ubuntu-core-16-amd64.img.xz': Network access is disabled.
2023-03-21T19:12:09-07:00 multipassd[911]: Cannot retrieve headers for https://cloud-images.ubuntu.com/buildd/releases/bionic/release/bionic-server-cloudimg-amd64-disk.img: Network access is disabled.
2023-03-21T19:12:09-07:00 multipassd[911]: Could not update manifest: failed to download from 'https://cloud-images.ubuntu.com/buildd/releases/bionic/release/bionic-server-cloudimg-amd64-disk.img': Network access is disabled.
2023-03-21T19:14:01-07:00 multipassd[911]: Cannot retrieve headers for https://cdimage.ubuntu.com/ubuntu-core/16/stable/current/ubuntu-core-16-amd64.img.xz: Network access is disabled.
2023-03-21T19:14:01-07:00 multipassd[911]: Could not update manifest: failed to download from 'https://cdimage.ubuntu.com/ubuntu-core/16/stable/current/ubuntu-core-16-amd64.img.xz': Network access is disabled.
2023-03-21T19:14:01-07:00 multipassd[911]: Cannot retrieve headers for https://cloud-images.ubuntu.com/buildd/releases/bionic/release/bionic-server-cloudimg-amd64-disk.img: Network access is disabled.
2023-03-21T19:14:01-07:00 multipassd[911]: Could not update manifest: failed to download from 'https://cloud-images.ubuntu.com/buildd/releases/bionic/release/bionic-server-cloudimg-amd64-disk.img': Network access is disabled.

我不确定这些日志是否真的相关,因为教程中说要使用core18(我使用过)并且我也尝试过使用core20

答案1

相关内容