Snap binaries are only available for user account and not root account on Raspbian

Bug #1938921 reported by Marc
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snappy
Invalid
Undecided
Unassigned

Bug Description

There is an issue with the snapd package in raspbian/debian.

The PATH needs to be updated to include the paths of Snap binaries. It seems the PATH is only updated for the user account and not for the root account.

I am unable to run Snap installed programs as root unless it's run through Snap.

example using easy-openvpn-server:

pi@raspberrypi:~ $ easy-openvpn-server setup
ERROR: Please run this as root!
pi@raspberrypi:~ $ sudo easy-openvpn-server setup
sudo: easy-openvpn-server: command not found

however the following command works:

sudo snap run easy-openvpn-server setup

Revision history for this message
Maciej Borzecki (maciek-borzecki) wrote :

That's because raspbian most likely overrides the PATH by setting secure_path in /etc/sudoers. You could probably workaround that by using `sudo -l ...` or if that does not work you can run `sudo snap run easy-openvpn-server setup`.

Changed in snappy:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.