gpt4 book ai didi

ubuntu - ubuntu 20.04 上的快照访问被拒绝

转载 作者:行者123 更新时间:2023-12-04 18:24:58 33 4
gpt4 key购买 nike

如何让非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/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com