ironsheep / RPi-Reporter-MQTT2HA-Daemon

Linux service to collect and transfer Raspberry Pi data via MQTT to Home Assistant (for RPi Monitoring)
GNU General Public License v3.0
441 stars 62 forks source link

Bookworm reports "arch=armhf" #124

Open Firesphere opened 6 months ago

Firesphere commented 6 months ago

Checklist:

Release with the issue:

git master checkout just about half an hour ago

Hardware, Operating System, Python version:

Pi 0W

pi@Clyde:~ $ neofetch
  `.::///+:/-.        --///+//-:``    pi@Clyde 
 `+oooooooooooo:   `+oooooooooooo:    -------- 
  /oooo++//ooooo:  ooooo+//+ooooo.    OS: Raspbian GNU/Linux 12 (bookworm) armv6l 
  `+ooooooo:-:oo-  +o+::/ooooooo:     Host: Raspberry Pi Zero W Rev 1.1 
   `:oooooooo+``    `.oooooooo+-      Kernel: 6.1.0-rpi7-rpi-v6 
     `:++ooo/.        :+ooo+/.`       Uptime: 25 mins 
        ...`  `.----.` ``..           Packages: 722 (dpkg) 
     .::::-``:::::::::.`-:::-`        Shell: bash 5.2.15 
    -:::-`   .:::::::-`  `-:::-       Terminal: /dev/pts/0 
   `::.  `.--.`  `` `.---.``.::`      CPU: BCM2835 (1) @ 1.000GHz 
       .::::::::`  -::::::::` `       Memory: 87MiB / 428MiB 
 .::` .:::::::::- `::::::::::``::.
-:::` ::::::::::.  ::::::::::.`:::-                           
::::  -::::::::.   `-::::::::  ::::                           
-::-   .-:::-.``....``.-::-.   -::-
 .. ``       .::::::::.     `..`..
   -:::-`   -::::::::::`  .:::::`
   :::::::` -::::::::::` :::::::.
   .:::::::  -::::::::. ::::::::
    `-:::::`   ..--.`   ::::::.
      `...`  `...--..`  `...`
            .::::::::::
             `.-::::-`

pi@Clyde:~ $ python -V
Python 3.11.2

Description of problem:

It reports as "arch=armhf" instead of the expected "Bookworm"

image

Run our report script 'genBugInfo' on your failing device and include the output here:

genBugInfo output # SCRIPT genBugInfo v1.1 run 23/12/17-16:41:56 # /bin/cat /etc/apt/sources.list | /bin/egrep -v '#' deb [ arch=armhf ] http://raspbian.raspberrypi.com/raspbian/ bookworm main contrib non-free rpi ---- # /bin/cat /etc/apt/sources.list | /bin/egrep -v '#' | /usr/bin/awk '{ print $3 }' | /bin/grep . | /usr/bin/sort -u | head -1 arch=armhf ---- # /bin/uname -r 6.1.0-rpi7-rpi-v6 ---- # /bin/hostname -f Clyde ---- # /usr/bin/uptime 16:41:56 up 28 min, 2 users, load average: 0.32, 0.30, 0.41 ---- # /sbin/ifconfig lo: flags=73 mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10 loop txqueuelen 1000 (Local Loopback) RX packets 169 bytes 9933 (9.7 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 169 bytes 9933 (9.7 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 wlan0: flags=4163 mtu 1500 inet 192.168.178.79 netmask 255.255.255.0 broadcast 192.168.178.255 inet6 fe80::888e:d098:4108:b03c prefixlen 64 scopeid 0x20 inet6 2406:e001:2:1b00:fdda:956e:e433:bd01 prefixlen 64 scopeid 0x0 ether b8:27:eb:ae:d2:18 txqueuelen 1000 (Ethernet) RX packets 37169 bytes 41596863 (39.6 MiB) RX errors 0 dropped 1615 overruns 0 frame 0 TX packets 12785 bytes 1686619 (1.6 MiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 ---- # /sbin/ifconfig | /bin/egrep 'Link|flags|inet|ether' | /bin/egrep -v -i 'lo:|loopback|inet6|\:\:1|127\.0\.0\.1' wlan0: flags=4163 mtu 1500 inet 192.168.178.79 netmask 255.255.255.0 broadcast 192.168.178.255 ether b8:27:eb:ae:d2:18 txqueuelen 1000 (Ethernet) ---- # /sbin/route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface default fritz.box 0.0.0.0 UG 600 0 0 wlan0 192.168.178.0 0.0.0.0 255.255.255.0 U 600 0 0 wlan0 ---- # /bin/ls -l /var/log/dpkg.log /var/log/dpkg.log.1 2>/dev/null /bin/ls: cannot access '/var/log/dpkg.log.1': No such file or directory -rw-r--r-- 1 root root 60146 Dec 17 16:22 /var/log/dpkg.log ---- # /bin/grep 'status installed' /var/log/dpkg.log /var/log/dpkg.log.1 2>/dev/null | sort | tail -1 /var/log/dpkg.log:2023-12-17 16:22:34 status installed man-db:armhf 2.11.2-2 ---- # /bin/df -m Filesystem 1M-blocks Used Available Use% Mounted on udev 82 0 82 0% /dev tmpfs 43 1 42 3% /run /dev/mmcblk0p2 28799 1956 25638 8% / tmpfs 215 0 215 0% /dev/shm tmpfs 5 1 5 1% /run/lock /dev/mmcblk0p1 510 93 418 19% /boot/firmware tmpfs 43 0 43 0% /run/user/1000 ---- # /bin/df -m | /usr/bin/tail -n +2 | /bin/egrep -v 'tmpfs|boot' udev 82 0 82 0% /dev /dev/mmcblk0p2 28799 1956 25638 8% / ---- # ls -l /opt/vc/bin/vcgencmd /usr/bin/vcgencmd ls: cannot access '/opt/vc/bin/vcgencmd': No such file or directory -rwxr-xr-x 1 root root 5672 Nov 6 23:47 /usr/bin/vcgencmd ----

Additional information:

This is a fresh installation, about half an hour old at the time of writing this issue :)