{"id":9560,"date":"2022-05-02T14:06:40","date_gmt":"2022-05-02T06:06:40","guid":{"rendered":"https:\/\/jpuyy.com\/?p=9560"},"modified":"2022-05-02T17:57:33","modified_gmt":"2022-05-02T09:57:33","slug":"ubuntu-snap","status":"publish","type":"post","link":"https:\/\/jpuyy.com\/?p=9560","title":{"rendered":"ubuntu wsl2"},"content":{"rendered":"<p># install zsh<br \/>\n$ sudo apt install zsh<\/p>\n<p>https:\/\/ohmyz.sh\/#install<\/p>\n<p>snap not working<\/p>\n<pre>\r\n$ uname -a\r\nLinux 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\r\n\r\n$ lsb_release -a\r\nNo LSB modules are available.\r\nDistributor ID: Ubuntu\r\nDescription:    Ubuntu 20.04.4 LTS\r\nRelease:        20.04\r\nCodename:       focal\r\n<\/pre>\n<pre>\r\n$ sudo snap install go --classic\r\nerror: cannot communicate with server: Post http:\/\/localhost\/v2\/snaps\/go: dial unix \/run\/snapd.socket: connect: no such file or directory\r\n\r\n$ sudo systemctl status snapd\r\nSystem has not been booted with systemd as init system (PID 1). Can't operate.\r\nFailed to connect to bus: Host is down\r\n\r\n$ sudo snap version\r\nsnap    2.54.3+20.04.1ubuntu0.2\r\nsnapd   unavailable\r\nseries  -\r\n\r\n$ sudo snap list\r\n<\/pre>\n<p>https:\/\/blog.csdn.net\/exzds\/article\/details\/121454177<\/p>\n<p># install go<\/p>\n<p>https:\/\/www.digitalocean.com\/community\/tutorials\/how-to-install-go-on-ubuntu-20-04<\/p>\n","protected":false},"excerpt":{"rendered":"<p># 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 &#8211;classic [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-9560","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts\/9560","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=9560"}],"version-history":[{"count":8,"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts\/9560\/revisions"}],"predecessor-version":[{"id":9568,"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts\/9560\/revisions\/9568"}],"wp:attachment":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9560"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9560"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9560"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}