NEWS
Info Adapter rot nach Update
-
@thomas-braun sagte in Info Adapter rot nach Update:
iob nodejs-update 18
das hats leider nicht gebracht:
oBroker nodejs fixer 2023-10-13 You requested to intall latest version from nodejs v18 tree. Your current setup is: /usr/bin/nodejs v18.19.0 /usr/bin/node v18.19.0 /home/iobroker/.nodejs-update.sh: line 130: npm: command not found /home/iobroker/.nodejs-update.sh: line 131: npx: command not found /home/iobroker/.nodejs-update.sh: line 147: npm: command not found /home/iobroker/.nodejs-update.sh: line 148: npx: command not found *** nodejs is NOT correctly installed *** We found these nodejs versions available for installation: nodejs: Installed: 18.19.0+dfsg-6~deb12u1 Candidate: 18.19.0+dfsg-6~deb12u1 Version table: *** 18.19.0+dfsg-6~deb12u1 500 500 http://security.debian.org/debian-security bookworm-security/main amd64 Packages 100 /var/lib/dpkg/status 18.19.0-1nodesource1 500 500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages 18.18.2-1nodesource1 500 500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages 18.18.1-1nodesource1 500 500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages 18.18.0-1nodesource1 500 500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages 18.17.1-1nodesource1 500 500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages 18.17.0-1nodesource1 500 500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages 18.16.1-1nodesource1 500 500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages 18.16.0-1nodesource1 500 500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages 18.15.0-1nodesource1 500 500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages 18.14.2-1nodesource1 500 500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages 18.14.1-1nodesource1 500 500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages 18.14.0-1nodesource1 500 500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages 18.13.0+dfsg1-1 500 500 http://deb.debian.org/debian bookworm/main amd64 Packages 18.13.0-1nodesource1 500 500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages 18.12.0-1nodesource1 500 500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages 18.11.0-1nodesource1 500 500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages 18.10.0-1nodesource1 500 500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages 18.9.1-1nodesource1 500 500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages 18.9.0-1nodesource1 500 500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages 18.8.0-1nodesource1 500 500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages 18.7.0-1nodesource1 500 500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages 18.6.0-1nodesource1 500 500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages 18.5.0-1nodesource1 500 500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages 18.4.0-1nodesource1 500 500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages 18.3.0-1nodesource1 500 500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages 18.2.0-1nodesource1 500 500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages 18.1.0-1nodesource1 500 500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages 18.0.0-1nodesource1 500 500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages Your nodejs-Installation seems to be faulty. Shall we try to fix it? Press <y> to continue or any other key to quit Fixing your nodejs setup *** Deleting *** rm: cannot remove '': No such file or directory *** Deleting *** rm: cannot remove '': No such file or directory Wrong paths have been fixed. Run 'iob diag' or 'iob node-fix' again to check if your installation is fine now You are running nodejs v18.19.0. Do you want to install latest version from nodejs v.18 tree? Press <y> to continue or any other key to quit Trying to update your installation now. Please be patient. Virtualization: lxc Waiting for ioBroker to shut down - Give me a minute... ############################################################ *** These repos are active on your system: Hit:1 http://deb.debian.org/debian bookworm InRelease Hit:2 http://deb.debian.org/debian bookworm-updates InRelease Get:3 http://security.debian.org/debian-security bookworm-security InRelease [48.0 kB] Get:4 http://security.debian.org/debian-security bookworm-security/main Sources [68.7 kB] Get:5 http://security.debian.org/debian-security bookworm-security/main amd64 Packages [132 kB] Get:6 http://security.debian.org/debian-security bookworm-security/main Translation-en [78.2 kB] Fetched 327 kB in 5s (60.8 kB/s) Reading package lists... Done *** Installing ca-certificates, curl and gnupg, just in case they are missing. *** Creating new /etc/apt/sources.list.d/nodesource.list and pinning source deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x nodistro main Package: nodejs Pin: origin deb.nodesource.com Pin-Priority: 1001 *** These repos are active after the adjustments: Hit:1 http://deb.debian.org/debian bookworm InRelease Hit:2 http://security.debian.org/debian-security bookworm-security InRelease Hit:3 http://deb.debian.org/debian bookworm-updates InRelease Get:4 https://deb.nodesource.com/node_18.x nodistro InRelease [12.1 kB] Get:5 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages [6634 B] Fetched 18.8 kB in 6s (3156 B/s) Reading package lists... Done Installing the recommended nodejs version now! Installing the recommended nodejs version! E: Broken packages *** You need to manually restart your container/virtual machine now! *** We tried our best to fix your nodejs. Please run 'iob diag' again to verify.
ich habe danach den Container neu gestartet, info ist weiterhin rot und dieselben Fhlermeldungen im logfile
-
-
@thomas-braun sagte in Info Adapter rot nach Update:
apt policy nodejs
andreas@iobroker:~$ sudo apt update [sudo] Passwort fr andreas: OK:1 http://security.debian.org/debian-security bookworm-security InRelease OK:2 http://deb.debian.org/debian bookworm InRelease OK:3 https://deb.nodesource.com/node_18.x nodistro InRelease OK:4 http://deb.debian.org/debian bookworm-updates InRelease Paketlisten werden gelesen... Fertig Abhngigkeitsbaum wird aufgebaut... Fertig Statusinformationen werden eingelesen... Fertig Alle Pakete sind aktuell. andreas@iobroker:~$ apt policy nodejs nodejs: Installiert: 18.19.0+dfsg-6~deb12u1 Installationskandidat: 18.19.0-1nodesource1 Versionstabelle: *** 18.19.0+dfsg-6~deb12u1 500 500 http://security.debian.org/debian-security bookworm-security/main amd64 Packages 100 /var/lib/dpkg/status 18.19.0-1nodesource1 1001 500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages 18.18.2-1nodesource1 1001 500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages 18.18.1-1nodesource1 1001 500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages 18.18.0-1nodesource1 1001 500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages 18.17.1-1nodesource1 1001 500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages 18.17.0-1nodesource1 1001 500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages 18.16.1-1nodesource1 1001 500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages 18.16.0-1nodesource1 1001 500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages 18.15.0-1nodesource1 1001 500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages 18.14.2-1nodesource1 1001 500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages 18.14.1-1nodesource1 1001 500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages 18.14.0-1nodesource1 1001 500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages 18.13.0+dfsg1-1 500 500 http://deb.debian.org/debian bookworm/main amd64 Packages 18.13.0-1nodesource1 1001 500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages 18.12.0-1nodesource1 1001 500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages 18.11.0-1nodesource1 1001 500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages 18.10.0-1nodesource1 1001 500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages 18.9.1-1nodesource1 1001 500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages 18.9.0-1nodesource1 1001 500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages 18.8.0-1nodesource1 1001 500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages 18.7.0-1nodesource1 1001 500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages 18.6.0-1nodesource1 1001 500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages 18.5.0-1nodesource1 1001 500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages 18.4.0-1nodesource1 1001 500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages 18.3.0-1nodesource1 1001 500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages 18.2.0-1nodesource1 1001 500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages 18.1.0-1nodesource1 1001 500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages 18.0.0-1nodesource1 1001 500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages andreas@iobroker:~$
und jetzt ?
-
@amg_666 sagte in Info Adapter rot nach Update:
18.19.0-1nodesource1
installieren:
sudo apt install nodejs=18.19.0-1nodesource1
-
@thomas-braun sagte in Info Adapter rot nach Update:
Damit wärst du der erste... Das geht nämlich nicht.
Danke für die Hilfe, läuft jetzt wieder rund...
Trotzdem ein (dumme?) Frage: Du hast im ersten Post geschrieben ich wäre da der erste. Ich hab iob wie gesagt als proxmox Container und gehe über proxmox regelmäßig auf die iob Konsole um auf updates zu prüfen. Gefühlt "schon ewig" mit diesen beiden Befehlen:sudo apt update sudo apt-get dist-upgrade
Was ist daran falsch und wie mache ich es zukünftig richtig?
-
@amg_666 sagte in Info Adapter rot nach Update:
Was ist daran falsch und wie mache ich es zukünftig richtig?
Das ist nicht falsch, updated aber nicht den iobroker sondern nur das Betriebssystem/Container.
Ich würde allerdings da
sudo apt sudo apt full-upgrade
empfehlen.
Den ioBroker könnte man dann aber per
iob update iob upgrade all
aktuell halten.
-
@thomas-braun Alles klar, dann habe ich mich missverständlich ausgedrückt. Über die Konsole halte ich natürlich nur den iob Container up-to-date. iobroker updates mache ich eigentlcih immer über die admin oberfläche.
Nochmals danke für den support. -
@amg_666 sagte in Info Adapter rot nach Update:
Du hast im ersten Post geschrieben ich wäre da der erste
sorry das ich hier so reinplatze. Ich habe heute morgen nach Update der VM mit
sudo apt update sudo apt-get dist-upgrade
gleiches Verhalten gehabt und bin dankbar hier die Lösung gefunden habe. !
-
@agrippinenser @amg_666
Stellt die Priority für das nodesource-Repo höher.
Geht so:echo "Package: nodejs" | sudo tee /etc/apt/preferences.d/nodejs.pref echo "Pin: origin deb.nodesource.com" | sudo tee -a /etc/apt/preferences.d/nodejs.pref echo "Pin-Priority: 1001" | sudo tee -a /etc/apt/preferences.d/nodejs.pref sudo apt update
-
@thomas-braun sagte in Info Adapter rot nach Update:
/etc/apt/preferences.d/nodejs.pref
habe da vorher mal reingeguckt - das steht darin:
Package: nodejs Pin: origin deb.nodesource.com Pin-Priority: 1001
Pin-Priority ist demnach schon 1001. Soll ich die 4 Zeilen dennoch ausführen?
-
Dann dürftest du dir aber nicht die dfsg-Version eingehandelt haben.
sudo apt update apt policy nodejs
sagt auf deinem System?
-
Ich sehe gerade, du hantierst da mit apt-get...
Das würde ich nicht machen, das tickt anders und berücksichtigt die gesetzten priorities nicht, soweit ich weiß.Besser:
sudo apt update sudo apt full-upgrade
-
@thomas-braun sagte in Info Adapter rot nach Update:
Besser:
sudo apt update sudo apt full-upgradeunter uns
- ich habe eine PIN-Wand vor mir. Daran klebt ein Zettel mit Inhalt:
sudo apt update sudo full-upgrade sudo reboot
heute Morgen habe ich folgendes im Werkzeugkasten gelesen und daraufhin "blind"
sudo apt dist-upgrade
ausgeführt. -
@agrippinenser sagte in Info Adapter rot nach Update:
@amg_666 sagte in Info Adapter rot nach Update:
Du hast im ersten Post geschrieben ich wäre da der erste
sorry das ich hier so reinplatze. Ich habe heute morgen nach Update der VM mit
sudo apt update sudo apt-get dist-upgrade
gleiches Verhalten gehabt und bin dankbar hier die Lösung gefunden habe. !
Da schreibst du was von
apt-get
. -
@thomas-braun sagte in Info Adapter rot nach Update:
.. schreibst du was von apt-get.
sorry, nach Rechercheversuchen sitze ich gerade ratlos in meinem Sessel. In der Regel nutze ich bei Updates "Copy/Paste" kann aber nicht mehr richtig nachvollziehen, wie "apt-get" in den Tastaturspeicher kam.
Ich bin glücklich das alles wieder läuft wie es soll und möchte nur Fehler beim zukünftigen Upgrades nicht wiederholen.
-
Das ist ja auch kein Fehler, weil apt bzw apt-get genau das richtige gemäß deren Konfiguration getan haben: Die aktuellste Version nach Priorität eingespielt.
-
@agrippinenser ich glaube du musst deinen Pinwand-Zettel korrigieren
sudo full-upgrade führt bei mir zur Fehlermeldung Befehl nicht gefunden.
Ich bleibe beisudo apt full-upgrade
-
@amg_666 sagte in Info Adapter rot nach Update:
sudo full-upgrade
hast recht - hier klebt laut und deutlich apt full-upgrade an der Pinwand