NEWS
[gelöst] fehlende Pakete bei Installation
-
Hallo,
beim Update auf 3.3.17 wurde folgendes beim Update angezeigt:pi@raspberrypi:~ $ iob upgrade self Update js-controller from @3.3.15 to @3.3.17 NPM version: 6.14.15 npm install iobroker.js-controller@3.3.17 --loglevel error --prefix "/opt/iobroker" (System call) node-aead-crypto not needed on this system, since all ciphers are natively supported node-pre-gyp ERR! install response status 404 Not Found on https://github.com/Automattic/node-canvas/releases/download/v2.8.0/canvas-v2.8.0-node-v72-linux-glibc-arm.tar.gz Package pixman-1 was not found in the pkg-config search path. Perhaps you should add the directory containing `pixman-1.pc' to the PKG_CONFIG_PATH environment variable No package 'pixman-1' found gyp: Call to 'pkg-config pixman-1 --libs' returned exit status 1 while in binding.gyp. while trying to load binding.gyp gyp ERR! configure error gyp ERR! stack Error: `gyp` failed with exit code: 1 gyp ERR! stack at ChildProcess.onCpExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:351:16) gyp ERR! stack at ChildProcess.emit (events.js:314:20) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12) gyp ERR! System Linux 5.10.43-v7l+ gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/opt/iobroker/node_modules/canvas/build/Release/canvas.node" "--module_name=canvas" "--module_path=/opt/iobroker/node_modules/canvas/build/Release" "--napi_version=8" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v72" gyp ERR! cwd /opt/iobroker/node_modules/canvas gyp ERR! node -v v12.22.6 gyp ERR! node-gyp -v v5.1.0 gyp ERR! not ok node-pre-gyp ERR! build error node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/opt/iobroker/node_modules/canvas/build/Release/canvas.node --module_name=canvas --module_path=/opt/iobroker/node_modules/canvas/build/Release --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v72' (1) node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/opt/iobroker/node_modules/canvas/node_modules/@mapbox/node-pre-gyp/lib/util/compile.js:89:23) node-pre-gyp ERR! stack at ChildProcess.emit (events.js:314:20) node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1022:16) node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5) node-pre-gyp ERR! System Linux 5.10.43-v7l+ node-pre-gyp ERR! command "/usr/bin/node" "/opt/iobroker/node_modules/canvas/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" node-pre-gyp ERR! cwd /opt/iobroker/node_modules/canvas node-pre-gyp ERR! node -v v12.22.6 node-pre-gyp ERR! node-pre-gyp -v v1.0.5 node-pre-gyp ERR! not ok
Iob läuft nach dem Start ohne Probleme.
Wie bekommt man die Meldeungen bei zukünftigen Updates weg?
-
iobroker stop iobroker fix iobroker start
Das spült soweit ich weiß die benötigten Pakete für pixman-1 und canvas auf dein System.
-
@thomas-braun Danke für den Tipp. Mal schauen wie es beim nächsten Update aussieht.
-
@thomas-braun Leider immer noch folgende Meldungen beim Update:
pi@raspberrypi:~ $ iob upgrade self Update js-controller from @3.3.17 to @3.3.18 NPM version: 6.14.15 npm install iobroker.js-controller@3.3.18 --loglevel error --unsafe-perm --prefix "/opt/iobroker" (System call) node-aead-crypto not needed on this system, since all ciphers are natively supported node-pre-gyp ERR! install response status 404 Not Found on https://github.com/Automattic/node-canvas/releases/download/v2.8.0/canvas-v2.8.0-node-v72-linux-glibc-arm.tar.gz Package pixman-1 was not found in the pkg-config search path. Perhaps you should add the directory containing `pixman-1.pc' to the PKG_CONFIG_PATH environment variable No package 'pixman-1' found gyp: Call to 'pkg-config pixman-1 --libs' returned exit status 1 while in binding.gyp. while trying to load binding.gyp gyp ERR! configure error gyp ERR! stack Error: `gyp` failed with exit code: 1 gyp ERR! stack at ChildProcess.onCpExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:351:16) gyp ERR! stack at ChildProcess.emit (events.js:314:20) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12) gyp ERR! System Linux 5.10.43-v7l+ gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/opt/iobroker/node_modules/canvas/build/Release/canvas.node" "--module_name=canvas" "--module_path=/opt/iobroker/node_modules/canvas/build/Release" "--napi_version=8" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v72" gyp ERR! cwd /opt/iobroker/node_modules/canvas gyp ERR! node -v v12.22.6 gyp ERR! node-gyp -v v5.1.0 gyp ERR! not ok node-pre-gyp ERR! build error node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/opt/iobroker/node_modules/canvas/build/Release/canvas.node --module_name=canvas --module_path=/opt/iobroker/node_modules/canvas/build/Release --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v72' (1) node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/opt/iobroker/node_modules/canvas/node_modules/@mapbox/node-pre-gyp/lib/util/compile.js:89:23) node-pre-gyp ERR! stack at ChildProcess.emit (events.js:314:20) node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1022:16) node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5) node-pre-gyp ERR! System Linux 5.10.43-v7l+ node-pre-gyp ERR! command "/usr/bin/node" "/opt/iobroker/node_modules/canvas/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" node-pre-gyp ERR! cwd /opt/iobroker/node_modules/canvas node-pre-gyp ERR! node -v v12.22.6 node-pre-gyp ERR! node-pre-gyp -v v1.0.5 node-pre-gyp ERR! not ok
Woran könnte es liegen?
-
Debian?
apt policy libpixman-1-dev
bzw.
sudo apt update sudo apt install build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev
-
Hallo, Policy sieht so aus:
pi@raspberrypi:~ $ apt policy libpixman-1-dev libpixman-1-dev: Installiert: (keine) Installationskandidat: 0.36.0-1 Versionstabelle: 0.36.0-1 500 500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages 500 http://archive.raspbian.org/raspbian buster/main armhf Packages
Das Update... so:
pi@raspberrypi:~ $ sudo apt install build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev Paketlisten werden gelesen... Fertig Abhängigkeitsbaum wird aufgebaut. Statusinformationen werden eingelesen.... Fertig build-essential ist schon die neueste Version (12.6). libgif-dev ist schon die neueste Version (5.1.4-3). libjpeg-dev ist schon die neueste Version (1:1.5.2-2+deb10u1). Einige Pakete konnten nicht installiert werden. Das kann bedeuten, dass Sie eine unmögliche Situation angefordert haben oder, wenn Sie die Unstable-Distribution verwenden, dass einige erforderliche Pakete noch nicht erstellt wurden oder Incoming noch nicht verlassen haben. Die folgenden Informationen helfen Ihnen vielleicht, die Situation zu lösen: Die folgenden Pakete haben unerfüllte Abhängigkeiten: libcairo2-dev : Hängt ab von: libcairo2 (= 1.16.0-4+deb10u1) aber 1.16.0-4+rpt1 soll installiert werden Hängt ab von: libcairo-gobject2 (= 1.16.0-4+deb10u1) aber 1.16.0-4+rpt1 soll installiert werden Hängt ab von: libpixman-1-dev (>= 0.22.0) soll aber nicht installiert werden E: Probleme können nicht korrigiert werden, Sie haben zurückgehaltene defekte Pakete.
Dies zur Info. Was kann ich noch machen um mein System gerade zu biegen?
-
sudo apt install libpixman-1-dev sudo apt update sudo apt dist-upgrade
-
@thomas-braun Hier noch das Update Bild:
pi@raspberrypi:~ $ sudo apt update Holen:1 http://raspbian.raspberrypi.org/raspbian buster InRelease [15,0 kB] Holen:2 http://archive.raspbian.org/raspbian buster InRelease [15,0 kB] OK:3 https://packages.grafana.com/oss/deb stable InRelease OK:4 https://repos.influxdata.com/debian buster InRelease OK:5 https://deb.nodesource.com/node_12.x buster InRelease Es wurden 30,0 kB in 2 s geholt (12,0 kB/s). Paketlisten werden gelesen... Fertig Abhängigkeitsbaum wird aufgebaut. Statusinformationen werden eingelesen.... Fertig Alle Pakete sind aktuell.
-
@heinhan Mach besser einen eigenen Thread dazu auf, das hat ja mit dem Thema hier nix zu tun.
-
Hallo, @heinhan,
habe Dir mal ne Chatnachricht geschickt.
-
Mit den richtigen Repos? Sind die geheim?
-
@thomas-braunGibt es eine Möglichkeit mein Start Thread zu verschieben? Habe dazu nichts in der Hilfe gefunden. Also neu aufmachen?
-
@heinhan sagte: neu aufmachen?
Ja und Moderator bitten, dorthin zu verschieben.
-
apt policy libcairo2-dev libcairo2 libcairo-gobject2 libpixman-1-dev libpixman-1-0
-
@thomas-braun Vorab, Danke der das Paket verschoben hat.
Hier das Ergebnis von der Policy:libcairo2-dev: Installiert: (keine) Installationskandidat: 1.16.0-4+deb10u1 Versionstabelle: 1.16.0-4+deb10u1 500 500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages 500 http://archive.raspbian.org/raspbian buster/main armhf Packages libcairo2: Installiert: 1.16.0-4+rpt1 Installationskandidat: 1.16.0-4+rpt1 Versionstabelle: *** 1.16.0-4+rpt1 100 100 /var/lib/dpkg/status 1.16.0-4+deb10u1 500 500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages 500 http://archive.raspbian.org/raspbian buster/main armhf Packages libcairo-gobject2: Installiert: 1.16.0-4+rpt1 Installationskandidat: 1.16.0-4+rpt1 Versionstabelle: *** 1.16.0-4+rpt1 100 100 /var/lib/dpkg/status 1.16.0-4+deb10u1 500 500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages 500 http://archive.raspbian.org/raspbian buster/main armhf Packages libpixman-1-dev: Installiert: (keine) Installationskandidat: 0.36.0-1 Versionstabelle: 0.36.0-1 500 500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages 500 http://archive.raspbian.org/raspbian buster/main armhf Packages libpixman-1-0: Installiert: 0.36.0-1+rpt1 Installationskandidat: 0.36.0-1+rpt1 Versionstabelle: *** 0.36.0-1+rpt1 100 100 /var/lib/dpkg/status 0.36.0-1 500 500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages 500 http://archive.raspbian.org/raspbian buster/main armhf Packages
-
Versuch mal so:
sudo apt install libcairo2=1.16.0-4+deb10u1 libcairo-gobject2=1.16.0-4+deb10u1 libpixman-1-0=0.36.0-1
wenn das funktioniert nochmal
sudo apt install build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev
-
@thomas-braun Habe beide Sudo´s ausgeführt, ohne Probleme. Alle Programme sind jetzt installiert laut policy. Nach einem Reboot läuft alles.
pi@raspberrypi:~ $ apt policy libcairo2-dev libcairo2 libcairo-gobject2 libpixman-1-dev libpixman-1-0 libcairo2-dev: Installiert: 1.16.0-4+deb10u1 Installationskandidat: 1.16.0-4+deb10u1 Versionstabelle: *** 1.16.0-4+deb10u1 500 500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages 500 http://archive.raspbian.org/raspbian buster/main armhf Packages 100 /var/lib/dpkg/status libcairo2: Installiert: 1.16.0-4+deb10u1 Installationskandidat: 1.16.0-4+deb10u1 Versionstabelle: *** 1.16.0-4+deb10u1 500 500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages 500 http://archive.raspbian.org/raspbian buster/main armhf Packages 100 /var/lib/dpkg/status libcairo-gobject2: Installiert: 1.16.0-4+deb10u1 Installationskandidat: 1.16.0-4+deb10u1 Versionstabelle: *** 1.16.0-4+deb10u1 500 500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages 500 http://archive.raspbian.org/raspbian buster/main armhf Packages 100 /var/lib/dpkg/status libpixman-1-dev: Installiert: 0.36.0-1 Installationskandidat: 0.36.0-1 Versionstabelle: *** 0.36.0-1 500 500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages 500 http://archive.raspbian.org/raspbian buster/main armhf Packages 100 /var/lib/dpkg/status libpixman-1-0: Installiert: 0.36.0-1 Installationskandidat: 0.36.0-1 Versionstabelle: *** 0.36.0-1 500 500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages 500 http://archive.raspbian.org/raspbian buster/main armhf Packages 100 /var/lib/dpkg/status
Setze mal das Thread auf gelöst in der Hoffnung, dass nächste Update installiert sich ohne Fehlermeldungen. Danke für Deine Hilfe und noch einen schönen Abend.
-
@heinhan
Jetzt sollten zumindest die für pixman und canvas erforderlichen Pakete richtig auf dem System sein. -
nein, nichts Geheimes. Ich hatte empfohlen, mal alle Zusatzmodule testweise zu entfernen. Wollte nur nicht den Post hier noch mehr aufblähen. Ich hatte weiter oben ja auch diesen gyp-Fehler. Bei mir war es das Zusatzmodul simple-ssh. Sorry, war also nicht geheim.