root@sheo2-consul2:~# cat /etc/*release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION=“Ubuntu 18.04.2 LTS”
NAME=“Ubuntu”
VERSION=“18.04.2 LTS (Bionic Beaver)”
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME=“Ubuntu 18.04.2 LTS”
VERSION_ID=“18.04”
HOME_URL=“https://www.ubuntu.com/”
SUPPORT_URL=“https://help.ubuntu.com/”
BUG_REPORT_URL=“https://bugs.launchpad.net/ubuntu/”
PRIVACY_POLICY_URL=“https://www.ubuntu.com/legal/terms-and-policies/privacy-policy”
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic
root@sheo2-consul2:~# snap install glances
root@sheo2-consul2:~# glances
Warning: Unable to set locale. Expect encoding problems.
Traceback (most recent call last):
File “/snap/glances/5/bin/glances”, line 11, in
load_entry_point(‘Glances==2.11.1’, ‘console_scripts’, ‘glances’)()
File “/snap/glances/5/lib/python3.5/site-packages/glances/init.py”, line 126, in main
core = GlancesMain()
File “/snap/glances/5/lib/python3.5/site-packages/glances/main.py”, line 84, in init
self.args = self.parse_args()
File “/snap/glances/5/lib/python3.5/site-packages/glances/main.py”, line 274, in parse_args
self.config = Config(args.conf_file)
File “/snap/glances/5/lib/python3.5/site-packages/glances/config.py”, line 107, in init
self.read()
File “/snap/glances/5/lib/python3.5/site-packages/glances/config.py”, line 140, in read
with open(config_file, encoding=‘utf-8’) as f:
PermissionError: [Errno 13] Permission denied: ‘/etc/glances/glances.conf’
root@sheo2-consul2:~# tail -f /var/log/syslog
Oct 22 21:26:24 sheo2-consul2 kernel: [8311682.847820] audit: type=1400 audit(1571750784.173:1036): apparmor=“DENIED” operation=“open” profile=“snap.glances.glances” name="/etc/glances/glances.conf" pid=1352274 comm=“python3” requested_mask=“r” denied_mask=“r” fsuid=0 ouid=0