我尝试按照这个指南将我的Windows Ubuntu子系统升级到18.10版本:
https://linuxconfig.org/how-to-upgrade-ubuntu-to-18-10-cosmic-cuttlefish#h9-how-to-upgrade-ubuntu-the-debian-way
但在升级过程中,我遇到了以下错误:
我的防火墙已经禁用,所以我看不出为什么这个不会起作用。
我还尝试运行了`snap info lxd`,但是...
以下是在尝试运行更新时,在命令行中显示的完整消息:
有什么办法可以修复这个问题吗?子系统已经连接到互联网,所以我不确定为什么它无法连接到Snap商店。
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商店。
lxd-client:依赖于lxd(>=1:0.4),但将不会安装 E:无法满足的依赖关系。尝试使用“apt --fix-broken install”而不需要任何软件包(或指定解决方案)。```
- Zokersudo apt-get remove lxd lxd-client
。请注意,系统无法访问Snapcraft意味着在WSL中可能会出现一些奇怪的问题,因为它并不是真正的Ubuntu,而是在Windows系统调用上运行的Ubuntu,这可能会引起一些麻烦。 - Thomas Wardsudo apt remove lxd lxd-client
。我仍然想知道为什么它首先被安装了。 - Zoker