我正在学习如何通过跟踪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。
发布于 2023-03-22 03:07:33
https://askubuntu.com/questions/1460377
复制相似问题