NEWS
Pivccu E: Sub-process /usr/bin/dpkg
-
@herrfrodo sagte in Pivccu E: Sub-process /usr/bin/dpkg:
pivccu-modules-raspberrypi
Wegen des pivccu-modules-raspberrypi wendest du dich am besten an pivccu.
Vielleicht haben die da einen Fehler im Paket? -
@thomas-braun said in Pivccu E: Sub-process /usr/bin/dpkg:
Wegen des pivccu-modules-raspberrypi wendest du dich am besten an pivccu.
Vielleicht haben die da einen Fehler im Paket?Ist über Github der richtige Weg?
-
Ich weiß nicht wie das da am besten läuft.
-
@deimos Hast Du eventuell eine Idee zu meinem Error?
-
@thomas-braun Jetzt hab ich richtig Mist
Ich hatte versucht InfluxDB zu installieren, doch das funktionierte nicht.
Nun kommt folgendes:pi@raspberrypi:~ $ sudo apt update E: Conflicting values set for option Signed-By regarding source https://repos.influxdata.com/debian/ stable: /usr/share/keyrings/influxdata-archive_compat.gpg != /usr/share/keyrings/influxdb-archive-keyring.gpg E: The list of sources could not be read.
-
sudo rm /etc/apt/sources.list.d/infl* wget -q https://repos.influxdata.com/influxdata-archive_compat.key echo '393e8779c89ac8d958f81f942f9ad7fb82a25e133faddaf92e15b16e6ac9ce4c influxdata-archive_compat.key' | sha256sum -c && cat influxdata-archive_compat.key | gpg --dearmor | sudo tee /usr/share/keyrings/influxdata-archive_compat.gpg > /dev/null echo 'deb [signed-by=/usr/share/keyrings/influxdata-archive_compat.gpg] https://repos.influxdata.com/debian stable main' | sudo tee /etc/apt/sources.list.d/influxdata.list rm influxdata-archive_compat.key sudo apt update
-
pi@raspberrypi:~ $ sudo rm /etc/apt/sources.list.d/infl* pi@raspberrypi:~ $ wget -q https://repos.influxdata.com/influxdata-archive_compat.key pi@raspberrypi:~ $ echo '393e8779c89ac8d958f81f942f9ad7fb82a25e133faddaf92e15b16e6ac9ce4c influxdata-archive_compat.key' | sha256sum -c && cat influxdata-archive_compat.key | gpg --dearmor | sudo tee /usr/share/keyrings/influxdata-archive_compat.gpg > /dev/null influxdata-archive_compat.key: OK pi@raspberrypi:~ $ echo 'deb [signed-by=/usr/share/keyrings/influxdata-archive_compat.gpg] https://repos.influxdata.com/debian stable main' | sudo tee /etc/apt/sources.list.d/influxdata.list deb [signed-by=/usr/share/keyrings/influxdata-archive_compat.gpg] https://repos.influxdata.com/debian stable main pi@raspberrypi:~ $ rm influxdata-archive_compat.key pi@raspberrypi:~ $ sudo apt update Hit:1 http://deb.debian.org/debian bullseye InRelease Hit:2 http://deb.debian.org/debian bullseye-updates InRelease Get:3 http://security.debian.org/debian-security bullseye-security InRelease [48.4 kB] Hit:4 http://archive.raspberrypi.org/debian bullseye InRelease Hit:5 https://repos.influxdata.com/debian stable InRelease Hit:6 https://apt.pivccu.de/piVCCU stable InRelease Hit:7 https://deb.nodesource.com/node_18.x nodistro InRelease Fetched 48.4 kB in 2s (21.9 kB/s) Reading package lists... Done Building dependency tree... Done Reading state information... Done All packages are up to date. pi@raspberrypi:~ $ Sudo apt upgrade -bash: Sudo: command not found pi@raspberrypi:~ $ sudo apt upgrade Reading package lists... Done Building dependency tree... Done Reading state information... Done Calculating upgrade... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] y Setting up pivccu-modules-raspberrypi (2.0-19) ... sed: can't read /var/lib/piVCCU/dtb/config.txt: No such file or directory dpkg: error processing package pivccu-modules-raspberrypi (--configure): installed pivccu-modules-raspberrypi package post-installation script subprocess returned error exit status 2 Errors were encountered while processing: pivccu-modules-raspberrypi E: Sub-process /usr/bin/dpkg returned an error code (1) pi@raspberrypi:~ $
Super! Vielen Dank!
Wie kann ich am sichersten influxdb und grafana installieren? -
@herrfrodo sagte in Pivccu E: Sub-process /usr/bin/dpkg:
Wie kann ich am sichersten influxdb und grafana installieren?
sudo apt update sudo apt install grafana influxdb2
-
pi@raspberrypi:~ $ sudo apt install influxdb2 Reading package lists... Done Building dependency tree... Done Reading state information... Done The following additional packages will be installed: influxdb2-cli The following NEW packages will be installed: influxdb2 influxdb2-cli 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. 1 not fully installed or removed. Need to get 56.1 MB of archives. After this operation, 128 MB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 https://repos.influxdata.com/debian stable/main arm64 influxdb2 arm64 2.7.5-1 [45.4 MB] Get:2 https://repos.influxdata.com/debian stable/main arm64 influxdb2-cli arm64 2.7.3-1 [10.7 MB] Fetched 56.1 MB in 10s (5551 kB/s) Selecting previously unselected package influxdb2. (Reading database ... 91522 files and directories currently installed.) Preparing to unpack .../influxdb2_2.7.5-1_arm64.deb ... Unpacking influxdb2 (2.7.5-1) ... Selecting previously unselected package influxdb2-cli. Preparing to unpack .../influxdb2-cli_2.7.3-1_arm64.deb ... Unpacking influxdb2-cli (2.7.3-1) ... Setting up influxdb2 (2.7.5-1) ... !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ! Important 1.x to 2.x Upgrade Notice ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Thank you for installing InfluxDB v2. Due to significant changes between the v1 and v2 versions, upgrading to v2 requires additional steps. If upgrading to v2 was not intended, simply re-install the v1 package now. An upgrade helper script is available that should be reviewed and executed prior to starting the influxdb systemd service. In order to start the v2 upgrade, execute the following: sudo /usr/share/influxdb/influxdb2-upgrade.sh Visit our website for complete details on the v1 to v2 upgrade process: https://docs.influxdata.com/influxdb/latest/upgrade/v1-to-v2/ For new or upgrade installations, please review the getting started guide: https://docs.influxdata.com/influxdb/latest/get-started/ Setting up pivccu-modules-raspberrypi (2.0-19) ... sed: can't read /var/lib/piVCCU/dtb/config.txt: No such file or directory dpkg: error processing package pivccu-modules-raspberrypi (--configure): installed pivccu-modules-raspberrypi package post-installation script subprocess returned error exit status 2 Setting up influxdb2-cli (2.7.3-1) ... Errors were encountered while processing: pivccu-modules-raspberrypi E: Sub-process /usr/bin/dpkg returned an error code (1) pi@raspberrypi:~ $ sudo apt install grafana Reading package lists... Done Building dependency tree... Done Reading state information... Done E: Unable to locate package grafana pi@raspberrypi:~ $
-
Das Grafana-Repo muss zuvor angelegt werden:
wget -qO- http://phoscon.de/apt/deconz.pub.key | sudo gpg --dearmor -o /usr/share/keyrings/deconz.gpg > /dev/null sudo sh -c "echo 'deb [signed-by=/usr/share/keyrings/deconz.gpg] http://phoscon.de/apt/deconz $(lsb_release -cs) main' > /etc/apt/sources.list.d/deconz.list" sudo apt update sudo apt install grafana
-
pi@raspberrypi:~ $ wget -qO- http://phoscon.de/apt/deconz.pub.key | sudo gpg --dearmor -o /usr/share/keyrings/deconz.gpg > /dev/null pi@raspberrypi:~ $ sudo sh -c "echo 'deb [signed-by=/usr/share/keyrings/deconz.gpg] http://phoscon.de/apt/deconz $(lsb_release -cs) main' > /etc/apt/sources.list.d/deconz.list" pi@raspberrypi:~ $ sudo apt update Hit:1 http://deb.debian.org/debian bullseye InRelease Get:2 http://deb.debian.org/debian bullseye-updates InRelease [44.1 kB] Hit:3 http://archive.raspberrypi.org/debian bullseye InRelease Hit:4 https://apt.pivccu.de/piVCCU stable InRelease Hit:5 http://security.debian.org/debian-security bullseye-security InRelease Get:6 http://phoscon.de/apt/deconz bullseye InRelease [4327 B] Hit:7 https://repos.influxdata.com/debian stable InRelease Hit:8 https://deb.nodesource.com/node_18.x nodistro InRelease Get:9 http://phoscon.de/apt/deconz bullseye/main arm64 Packages [549 B] Get:10 http://phoscon.de/apt/deconz bullseye/main armhf Packages [545 B] Fetched 49.5 kB in 2s (22.2 kB/s) Reading package lists... Done Building dependency tree... Done Reading state information... Done All packages are up to date. pi@raspberrypi:~ $ sudo apt install grafana Reading package lists... Done Building dependency tree... Done Reading state information... Done E: Unable to locate package grafana pi@raspberrypi:~ $
-
OOOOOH, SORRY!
Hab in die falsche Schublade gegriffen!sudo rm /etc/apt/sources.list.d/deconz.list sudo rm /usr/share/keyrings/deconz.gpg sudo apt-get install -y apt-transport-https sudo apt-get install -y software-properties-common wget sudo wget -q -O /usr/share/keyrings/grafana.key https://apt.grafana.com/gpg.key echo "deb [signed-by=/usr/share/keyrings/grafana.key] https://apt.grafana.com stable main" | sudo tee /etc/apt/sources.list.d/grafana.list sudo apt update sudo apt install grafana
-
pi@raspberrypi:~ $ sudo rm /etc/apt/sources.list.d/deconz.list pi@raspberrypi:~ $ sudo rm /usr/share/keyrings/deconz.gpg pi@raspberrypi:~ $ sudo apt-get install -y apt-transport-https Reading package lists... Done Building dependency tree... Done Reading state information... Done The following NEW packages will be installed: apt-transport-https 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 1 not fully installed or removed. Need to get 160 kB of archives. After this operation, 166 kB of additional disk space will be used. Get:1 http://deb.debian.org/debian bullseye/main arm64 apt-transport-https all 2.2.4 [160 kB] Fetched 160 kB in 0s (1646 kB/s) Selecting previously unselected package apt-transport-https. (Reading database ... 91537 files and directories currently installed.) Preparing to unpack .../apt-transport-https_2.2.4_all.deb ... Unpacking apt-transport-https (2.2.4) ... Setting up apt-transport-https (2.2.4) ... Setting up pivccu-modules-raspberrypi (2.0-19) ... sed: can't read /var/lib/piVCCU/dtb/config.txt: No such file or directory dpkg: error processing package pivccu-modules-raspberrypi (--configure): installed pivccu-modules-raspberrypi package post-installation script subprocess returned error exit status 2 Errors were encountered while processing: pivccu-modules-raspberrypi E: Sub-process /usr/bin/dpkg returned an error code (1) pi@raspberrypi:~ $ sudo apt-get install -y software-properties-common wget Reading package lists... Done Building dependency tree... Done Reading state information... Done wget is already the newest version (1.21-1+deb11u1). wget set to manually installed. The following additional packages will be installed: gir1.2-packagekitglib-1.0 libappstream4 libpackagekit-glib2-18 libstemmer0d packagekit packagekit-tools python3-dbus python3-distro-info python3-gi python3-pycurl python3-software-properties unattended-upgrades Suggested packages: appstream python-dbus-doc python3-dbus-dbg libcurl4-gnutls-dev python-pycurl-doc python3-pycurl-dbg bsd-mailx default-mta | mail-transport-agent needrestart powermgmt-base The following NEW packages will be installed: gir1.2-packagekitglib-1.0 libappstream4 libpackagekit-glib2-18 libstemmer0d packagekit packagekit-tools python3-dbus python3-distro-info python3-gi python3-pycurl python3-software-properties software-properties-common unattended-upgrades 0 upgraded, 13 newly installed, 0 to remove and 0 not upgraded. 1 not fully installed or removed. Need to get 1667 kB of archives. After this operation, 7404 kB of additional disk space will be used. Get:1 http://deb.debian.org/debian bullseye/main arm64 libpackagekit-glib2-18 arm64 1.2.2-2 [113 kB] Get:2 http://deb.debian.org/debian bullseye/main arm64 gir1.2-packagekitglib-1.0 arm64 1.2.2-2 [36.8 kB] Get:3 http://deb.debian.org/debian bullseye/main arm64 libstemmer0d arm64 2.1.0-1 [113 kB] Get:4 http://deb.debian.org/debian bullseye/main arm64 libappstream4 arm64 0.14.4-1 [160 kB] Get:5 http://deb.debian.org/debian bullseye/main arm64 packagekit arm64 1.2.2-2 [575 kB] Get:6 http://deb.debian.org/debian bullseye/main arm64 packagekit-tools arm64 1.2.2-2 [39.9 kB] Get:7 http://deb.debian.org/debian bullseye/main arm64 python3-dbus arm64 1.2.16-5 [105 kB] Get:8 http://deb.debian.org/debian bullseye/main arm64 python3-distro-info all 1.0+deb11u1 [8860 B] Get:9 http://deb.debian.org/debian bullseye/main arm64 python3-gi arm64 3.38.0-2 [226 kB] Get:10 http://deb.debian.org/debian bullseye/main arm64 python3-pycurl arm64 7.43.0.6-5 [67.9 kB] Get:11 http://deb.debian.org/debian bullseye/main arm64 python3-software-properties all 0.96.20.2-2.1 [49.7 kB] Get:12 http://deb.debian.org/debian bullseye/main arm64 software-properties-common all 0.96.20.2-2.1 [83.4 kB] Get:13 http://deb.debian.org/debian bullseye/main arm64 unattended-upgrades all 2.8 [88.6 kB] Fetched 1667 kB in 0s (5420 kB/s) Preconfiguring packages ... Selecting previously unselected package libpackagekit-glib2-18:arm64. (Reading database ... 91541 files and directories currently installed.) Preparing to unpack .../00-libpackagekit-glib2-18_1.2.2-2_arm64.deb ... Unpacking libpackagekit-glib2-18:arm64 (1.2.2-2) ... Selecting previously unselected package gir1.2-packagekitglib-1.0. Preparing to unpack .../01-gir1.2-packagekitglib-1.0_1.2.2-2_arm64.deb ... Unpacking gir1.2-packagekitglib-1.0 (1.2.2-2) ... Selecting previously unselected package libstemmer0d:arm64. Preparing to unpack .../02-libstemmer0d_2.1.0-1_arm64.deb ... Unpacking libstemmer0d:arm64 (2.1.0-1) ... Selecting previously unselected package libappstream4:arm64. Preparing to unpack .../03-libappstream4_0.14.4-1_arm64.deb ... Unpacking libappstream4:arm64 (0.14.4-1) ... Selecting previously unselected package packagekit. Preparing to unpack .../04-packagekit_1.2.2-2_arm64.deb ... Unpacking packagekit (1.2.2-2) ... Selecting previously unselected package packagekit-tools. Preparing to unpack .../05-packagekit-tools_1.2.2-2_arm64.deb ... Unpacking packagekit-tools (1.2.2-2) ... Selecting previously unselected package python3-dbus. Preparing to unpack .../06-python3-dbus_1.2.16-5_arm64.deb ... Unpacking python3-dbus (1.2.16-5) ... Selecting previously unselected package python3-distro-info. Preparing to unpack .../07-python3-distro-info_1.0+deb11u1_all.deb ... Unpacking python3-distro-info (1.0+deb11u1) ... Selecting previously unselected package python3-gi. Preparing to unpack .../08-python3-gi_3.38.0-2_arm64.deb ... Unpacking python3-gi (3.38.0-2) ... Selecting previously unselected package python3-pycurl. Preparing to unpack .../09-python3-pycurl_7.43.0.6-5_arm64.deb ... Unpacking python3-pycurl (7.43.0.6-5) ... Selecting previously unselected package python3-software-properties. Preparing to unpack .../10-python3-software-properties_0.96.20.2-2.1_all.deb ... Unpacking python3-software-properties (0.96.20.2-2.1) ... Selecting previously unselected package software-properties-common. Preparing to unpack .../11-software-properties-common_0.96.20.2-2.1_all.deb ... Unpacking software-properties-common (0.96.20.2-2.1) ... Selecting previously unselected package unattended-upgrades. Preparing to unpack .../12-unattended-upgrades_2.8_all.deb ... Unpacking unattended-upgrades (2.8) ... Setting up python3-dbus (1.2.16-5) ... Setting up libpackagekit-glib2-18:arm64 (1.2.2-2) ... Setting up gir1.2-packagekitglib-1.0 (1.2.2-2) ... Setting up python3-pycurl (7.43.0.6-5) ... Setting up pivccu-modules-raspberrypi (2.0-19) ... sed: can't read /var/lib/piVCCU/dtb/config.txt: No such file or directory dpkg: error processing package pivccu-modules-raspberrypi (--configure): installed pivccu-modules-raspberrypi package post-installation script subprocess returned error exit status 2 Setting up python3-software-properties (0.96.20.2-2.1) ... Setting up python3-gi (3.38.0-2) ... Setting up libstemmer0d:arm64 (2.1.0-1) ... Setting up python3-distro-info (1.0+deb11u1) ... Setting up libappstream4:arm64 (0.14.4-1) ... Setting up software-properties-common (0.96.20.2-2.1) ... Setting up unattended-upgrades (2.8) ... Creating config file /etc/apt/apt.conf.d/20auto-upgrades with new version Creating config file /etc/apt/apt.conf.d/50unattended-upgrades with new version Created symlink /etc/systemd/system/multi-user.target.wants/unattended-upgrades.service → /lib/systemd/system/unattended-upgrades.service. Synchronizing state of unattended-upgrades.service with SysV service script with /lib/systemd/systemd-sysv-install. Executing: /lib/systemd/systemd-sysv-install enable unattended-upgrades Setting up packagekit (1.2.2-2) ... Created symlink /etc/systemd/user/sockets.target.wants/pk-debconf-helper.socket → /usr/lib/systemd/user/pk-debconf-helper.socket. Setting up packagekit-tools (1.2.2-2) ... Processing triggers for man-db (2.9.4-2) ... Processing triggers for dbus (1.12.28-0+deb11u1) ... Processing triggers for libc-bin (2.31-13+rpt2+rpi1+deb11u7) ... Errors were encountered while processing: pivccu-modules-raspberrypi E: Sub-process /usr/bin/dpkg returned an error code (1) pi@raspberrypi:~ $ sudo wget -q -O /usr/share/keyrings/grafana.key https://apt.grafana.com/gpg.key pi@raspberrypi:~ $ echo "deb [signed-by=/usr/share/keyrings/grafana.key] https://apt.grafana.com stable main" | sudo tee /etc/apt/sources.list.d/grafana.list deb [signed-by=/usr/share/keyrings/grafana.key] https://apt.grafana.com stable main pi@raspberrypi:~ $ sudo apt update Hit:1 http://deb.debian.org/debian bullseye InRelease Hit:2 http://deb.debian.org/debian bullseye-updates InRelease Hit:3 http://security.debian.org/debian-security bullseye-security InRelease Hit:4 http://archive.raspberrypi.org/debian bullseye InRelease Get:5 https://apt.grafana.com stable InRelease [5984 B] Hit:6 https://repos.influxdata.com/debian stable InRelease Hit:7 https://apt.pivccu.de/piVCCU stable InRelease Hit:8 https://deb.nodesource.com/node_18.x nodistro InRelease Get:9 https://apt.grafana.com stable/main arm64 Packages [163 kB] Get:10 https://apt.grafana.com stable/main armhf Packages [129 kB] Fetched 298 kB in 3s (118 kB/s) Reading package lists... Done Building dependency tree... Done Reading state information... Done All packages are up to date. pi@raspberrypi:~ $ sudo apt install grafana Reading package lists... Done Building dependency tree... Done Reading state information... Done The following additional packages will be installed: musl The following NEW packages will be installed: grafana musl 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. 1 not fully installed or removed. Need to get 103 MB of archives. After this operation, 391 MB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 http://deb.debian.org/debian bullseye/main arm64 musl arm64 1.2.2-1 [399 kB] Get:2 https://apt.grafana.com stable/main arm64 grafana arm64 10.3.3 [103 MB] Fetched 103 MB in 15s (7053 kB/s) Selecting previously unselected package musl:arm64. (Reading database ... 91931 files and directories currently installed.) Preparing to unpack .../musl_1.2.2-1_arm64.deb ... Unpacking musl:arm64 (1.2.2-1) ... Selecting previously unselected package grafana. Preparing to unpack .../grafana_10.3.3_arm64.deb ... Unpacking grafana (10.3.3) ... Setting up pivccu-modules-raspberrypi (2.0-19) ... sed: can't read /var/lib/piVCCU/dtb/config.txt: No such file or directory dpkg: error processing package pivccu-modules-raspberrypi (--configure): installed pivccu-modules-raspberrypi package post-installation script subprocess returned error exit status 2 Setting up musl:arm64 (1.2.2-1) ... Setting up grafana (10.3.3) ... Adding system user `grafana' (UID 111) ... Adding new user `grafana' (UID 111) with group `grafana' ... Not creating home directory `/usr/share/grafana'. ### NOT starting on installation, please execute the following statements to configure grafana to start automatically using systemd sudo /bin/systemctl daemon-reload sudo /bin/systemctl enable grafana-server ### You can start grafana-server by executing sudo /bin/systemctl start grafana-server Processing triggers for man-db (2.9.4-2) ... Errors were encountered while processing: pivccu-modules-raspberrypi E: Sub-process /usr/bin/dpkg returned an error code (1) pi@raspberrypi:~ $
Kein Problem! Trotzdem vielen Dank!
Bis auf Pivccu scheint ja alles zu funktionieren.
WIe muss ich influxdb und grafana jetzt einrichten? -
@herrfrodo sagte in Pivccu E: Sub-process /usr/bin/dpkg:
WIe muss ich influxdb und grafana jetzt einrichten?
Anleitungen lesen?
-
@thomas-braun
YouTube Videos schauen?
Nach der Influxdb2 Installation, gelangt man im Browser über Port 8086 auf die landing page.
Im ioBroker muss man den Influx-Adapter installieren und die zuvor festgelegten influxdb2-Konfigurationsdaten dort eingeben.
Wenn dann alles funzt, dann kann man in den Objekten am rechten Rand die Datenbank aktivieren. -
@herrfrodo sagte in Pivccu E: Sub-process /usr/bin/dpkg:
YouTube Videos schauen?
Dann aber die richtigen. Die wenigsten sind gut.