如何让非root用户直接使用snap命令?
如何让非root用户直接使用snap命令?
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04 LTS
Release: 20.04
Codename: focal
$ sudo snap list
Name Version Rev Tracking Publisher Notes
core18 20200427 1754 latest/stable canonical✓ base
lxd 4.1 15067 latest/stable/… canonical✓ -
snapd 2.44.3 7264 latest/stable canonical✓ snapd
$ sudo cat /etc/sudoers.d/99-snapd.conf
# Allow snap-provided applications to work with sudo
Defaults secure_path += /snap/bin
$ snap install ruby --classic
error: access denied (try with sudo)
最佳答案
按照步骤
step1:sudo apt 更新
setp2:sudo apt install ruby
第三步:sudo snap install ruby –classic
关于ubuntu - ubuntu 20.04 上的快照访问被拒绝,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61931657/