sudo apt install snapd
#如果提示错误“error: cannot communicate with server: Post "http://localhost/v2/snaps/barrier": dial unix /run/snapd.socket: connect: no such file or directory
”
sudo systemctl unmask snapd.service
sudo systemctl enable snapd.service
sudo systemctl restart snapd.service
欢迎指出任何有错误或不够清晰的表达,可以在下面评论区评论。