Score:2

Ubuntu 20.04 under WSL 2: All snaps are always "broken" after reboot

bd flag
  1. Installed Ubuntu 20.04 distro on WSL 2

  2. create wsl.conf as following:

===============================================================
[automount]
enabled = true
options = "metadata,uid=1000,gid=1000,umask=22,fmask=11,case=off"
mountFsTab = true
crossDistro = true

[network]
generateHosts = false
generateResolvConf = true

[interop]
enabled = true
appendWindowsPath = true

=============================================================
  1. Setup systemD according to https://github.com/damionGans/ubuntu-wsl2-systemd-script
  2. Install core, lxd and some other snaps like microk8s. Everything look fine:

$ snap list

Name      Version   Rev    Tracking       Publisher   Notes

core18    20210611  2074   latest/stable  canonical✓  base

core20    20210429  1026   latest/stable  canonical✓  base

lxd       4.15      20840  latest/stable  canonical✓  -

microk8s  v1.21.1   2262   1.21/stable    canonical✓  classic

snapd     2.51.1    12398  latest/stable  canonical✓  snapd
  1. Logout

  2. Login again, snaps status is the same

  3. Logout and then terminate running distribution: wsl -t Ubuntu-20.04

  4. Restart: wsl -d Ubuntu-20.04

  5. Check snaps:

$ snap list

Name      Version  Rev    Tracking       Publisher   Notes

core18             2074   latest/stable  canonical✓  broken

core20             1026   latest/stable  canonical✓  broken

lxd       4.15     20840  latest/stable  canonical✓  -

microk8s           2262   1.21/stable    canonical✓  broken

snapd              12398  latest/stable  canonical✓  broken

I suspect snap configuration goes into temporary space and does not persist.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.