Think before you speak, read before you think.

ubuntu wsl2

by

in

# install zsh
$ sudo apt install zsh

https://ohmyz.sh/#install

snap not working

$ uname -a
Linux jpuyy-PC 5.10.16.3-microsoft-standard-WSL2 #1 SMP Fri Apr 2 22:23:49 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.4 LTS
Release:        20.04
Codename:       focal
$ sudo snap install go --classic
error: cannot communicate with server: Post http://localhost/v2/snaps/go: dial unix /run/snapd.socket: connect: no such file or directory

$ sudo systemctl status snapd
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down

$ sudo snap version
snap    2.54.3+20.04.1ubuntu0.2
snapd   unavailable
series  -

$ sudo snap list

https://blog.csdn.net/exzds/article/details/121454177

# install go

https://www.digitalocean.com/community/tutorials/how-to-install-go-on-ubuntu-20-04


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *