我试图使用以下指令将我的windows ubuntu子系统升级到18.10
但在升级过程中,我得到了以下错误:
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,但是
Interacting with snapd is not yet supported on Windows Subsystem for Linux.
This command has been left available for documentation purposes only.在尝试运行更新时,下面是命令行中的完整消息:
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商店
发布于 2019-03-05 19:15:08
这个微软WSL发行完全让它对我有用。从本质上讲,它归结为:
do-release-upgrade脚本sudo dpkg --force depends -P lxd; sudo dpkg --force depends -P lxd-client删除lxdsudo apt upgrade完成发布于 2019-09-04 16:21:02
面对同样的问题,我发现了这个问题。
So远,唯一的答案是中止 do-release-upgrade script。我不想要这个
以下是解决办法:
当出现来自lxd的错误消息时,您将得到三个选项,其中一个选项是skip。
在选择跳过之后,出现了以下消息:
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。这一次,安装继续进行。
发布于 2020-01-17 03:14:25
JBCP方法对我非常有用。差别很小:在运行do-release升级之前,我停止了lxd,并删除了/var/lib/lxd。现在,当系统发展到那个程度时,我就可以跳过了。没有额外的窗户或台阶。非常感谢,不过我不会发现的。
https://askubuntu.com/questions/1119301
复制相似问题