bootvue
bootvue

Reputation: 61

snap access denied on ubuntu 20.04

how to make non-root user use snap command direct ? how to make non-root user use snap command direct ?

$ 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)

Upvotes: 6

Views: 6629

Answers (1)

AlphaGk
AlphaGk

Reputation: 24

Follow the steps

step1:sudo apt update

setp2:sudo apt install ruby

step3:sudo snap install ruby –classic

Upvotes: 0

Related Questions