When running htop
I get
Error: File
/etc/sensors3.conf
: Permission denied
the permissions:
$ ls -l /etc/sensors3.conf
-rw-r--r-- 1 root root 10368 Apr 5 2017 /etc/sensors3.conf
htop
still works as expected, but what's up with this error?
I've also tried:
sudo apt install --reinstall lm-sensors
which made no difference.
which htop
/usr/bin/htop
Best Answer
Snap maintainer here. That's just a warning message caused by missing permissions due to snap confinement. As a result, optional CPU temperature stats are unavailable (
N/A
is shown to the right of each CPU bar, if enabled).Just updated the snap with support for manually connecting the
hardware-observe
interface, which fixes it (and also adds support for battery stats, btw). So, you just need to:Also, before just uninstalling the snap, note that depending on your OS release the snap might be much newer than the one in the OS repositories (eg. 3.0.4 vs 2.1.0 on Ubuntu 18.04).