首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >您的系统无法到达快照存储区。

您的系统无法到达快照存储区。
EN

Ask Ubuntu用户
提问于 2019-02-18 18:17:16
回答 3查看 42.2K关注 0票数 22

我试图使用以下指令将我的windows ubuntu子系统升级到18.10

但在升级过程中,我得到了以下错误:

代码语言:javascript
复制
 Your system is unable to reach the snap store, please make sure you're connected to the Internet and update any   │
 │ firewall or proxy settings as needed so that you can reach the snap store.                                        │
 │                                                                                                                   │
 │ You can manually check for connectivity by running "snap info lxd"                                                │
 │                                                                                                                   │
 │ Aborting will cause the upgrade to fail and will require it to be re-attempted once snapd is functional on the    │
 │ system.                                                                                                           │
 │                                                                                                                   │
 │ Unable to reach the snap store

我的防火墙是禁用的,我看不出有什么理由,为什么这不会起作用。

我也试图运行snap info lxd,但是

代码语言:javascript
复制
Interacting with snapd is not yet supported on Windows Subsystem for Linux.
This command has been left available for documentation purposes only.

在尝试运行更新时,下面是命令行中的完整消息:

代码语言:javascript
复制
The following additional packages will be installed:
  lxd
The following packages will be upgraded:
  lxd
1 upgraded, 0 newly installed, 0 to remove and 227 not upgraded.
180 not fully installed or removed.
Need to get 0 B/11.1 kB of archives.
After this operation, 20.5 MB disk space will be freed.
Do you want to continue? [Y/n] y
Preconfiguring packages ...
(Reading database ... 61051 files and directories currently installed.)
Preparing to unpack .../archives/lxd_1%3a0.4_all.deb ...
invoke-rc.d: could not determine current runlevel
Stopping Container hypervisor based on LXC: (not running).
=> Installing the LXD snap
==> Checking connectivity with the snap store
===> Unable to contact the store
===> Aborting at user request
dpkg: error processing archive /var/cache/apt/archives/lxd_1%3a0.4_all.deb (--unpack):
 new lxd package pre-installation script subprocess returned error exit status 1
invoke-rc.d: could not determine current runlevel
Errors were encountered while processing:
 /var/cache/apt/archives/lxd_1%3a0.4_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

知道吗,我怎么能解决这个问题?子系统有互联网连接,所以我不确定为什么它不能连接到snap商店

EN

回答 3

Ask Ubuntu用户

回答已采纳

发布于 2019-03-05 19:15:08

这个微软WSL发行完全让它对我有用。从本质上讲,它归结为:

  1. 中止do-release-upgrade脚本
  2. 重新启动Ubuntu
  3. 用:sudo dpkg --force depends -P lxd; sudo dpkg --force depends -P lxd-client删除lxd
  4. sudo apt upgrade完成
票数 30
EN

Ask Ubuntu用户

发布于 2019-09-04 16:21:02

面对同样的问题,我发现了这个问题。

So远,唯一的答案是中止 do-release-upgrade script。我不想要这个

以下是解决办法:

当出现来自lxd的错误消息时,您将得到三个选项,其中一个选项是skip

在选择跳过之后,出现了以下消息:

代码语言:javascript
复制
Skipping is not allowed when LXD has been initialized                                                                                                                  
LXD appears to have been configured on this system.
Please stop LXD and remove local data in /var/lib/lxd/ if  
you would like to skip installing the LXD snap and migrating the local data.                                    

因此,首先,我打开了另一个Ubuntu窗口并输入:sudo /etc/init.d/lxd stop响应为Stopping Container hypervisor based on LXC: (not running).

然后第二个,我删除了消息中给出的目录:sudo rm -rf /var/lib/lxd

最后一个,我返回到第一个Ubuntu窗口并按返回。再次选择了skip。这一次,安装继续进行。

票数 8
EN

Ask Ubuntu用户

发布于 2020-01-17 03:14:25

JBCP方法对我非常有用。差别很小:在运行do-release升级之前,我停止了lxd,并删除了/var/lib/lxd。现在,当系统发展到那个程度时,我就可以跳过了。没有额外的窗户或台阶。非常感谢,不过我不会发现的。

票数 0
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1119301

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档