and got:Host: raspberrypiB Kernel: 4.4.26+ armv6l (32 bit) Console: tty 0
Distro: Raspbian GNU/Linux 8
Code: Select all
sudo vcgencmd measure_temp
sudo: vcgencmd: command not found
and got:Host: raspberrypiB Kernel: 4.4.26+ armv6l (32 bit) Console: tty 0
Distro: Raspbian GNU/Linux 8
Code: Select all
sudo vcgencmd measure_temp
sudo: vcgencmd: command not found
Code: Select all
pi@raspberrypi:~ $ vcgencmd measure_temp
temp=34.3'C
pi@raspberrypi:~ $ which vcgencmd
/usr/bin/vcgencmd
pi@raspberrypi:~ $
Code: Select all
$ apt-cache policy vcgencmd
N: Unable to locate package vcgencmd
Code: Select all
apt-cache policy libraspberrypi-bin
libraspberrypi-bin:
Installed: 1.20161020-1
Candidate: 1.20161020-1
Version table:
*** 1.20161020-1 0
500 http://archive.raspberrypi.org/debian/ jessie/main armhf Packages
100 /var/lib/dpkg/status
Code: Select all
$ apt-cache policy vcgencmd
N: Unable to locate package vcgencmd
That is the output I would expect. There is no package called "vcgencmd", so apt-cache will never find it.wh7qq wrote:And that package is indeed installed but something got screwed up in a recent update.
Code: Select all
$ apt-cache policy vcgencmd N: Unable to locate package vcgencmd
Code: Select all
pi@raspi8:~ $ which vcgencmd
/usr/bin/vcgencmd
pi@raspi8:~ $ ls -l /usr/bin/vcgencmd
lrwxrwxrwx 1 root root 20 Oct 24 13:04 /usr/bin/vcgencmd -> /opt/vc/bin/vcgencmd
pi@raspi8:~ $ ls -l /opt/vc/bin/vcgencmd
-rwxr-xr-x 1 root root 15176 Sep 22 09:07 /opt/vc/bin/vcgencmd
pi@raspi8:~ $ apt-cache policy libraspberrypi-bin
libraspberrypi-bin:
Installed: 1.20161020-1
Candidate: 1.20161020-1
Version table:
*** 1.20161020-1 0
500 http://archive.raspberrypi.org/debian/ jessie/main armhf Packages
100 /var/lib/dpkg/status
Code: Select all
apt-get --reinstall install libraspberrypi-bin