Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Einsteigerfragen
    4. Installation
    5. Troubleshooting NodeJS update

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    Troubleshooting NodeJS update

    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      Baki074 last edited by

      Hallo,

      ich habe mit dem Befehl sudo apt install -y nodejs Probleme.
      Und zwar erhalte ich die Meldung "Fehlschlag beim Holen von...".

      sudo apt-get update habe ich schon versucht. Hat für die Installation nichts gebracht - derselbe Fehler wird angezeigt.
      Was genau muss ich machen, damit die Installation klappt?

      Danke schonmal!

      pi@phoscon-iob:~ $ sudo apt install -y nodejs
      Paketlisten werden gelesen... Fertig
      Abhängigkeitsbaum wird aufgebaut.       
      Statusinformationen werden eingelesen.... Fertig
      Die folgenden NEUEN Pakete werden installiert:
        nodejs
      0 aktualisiert, 1 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
      Es müssen 25,9 MB an Archiven heruntergeladen werden.
      Nach dieser Operation werden 177 MB Plattenplatz zusätzlich benutzt.
      Fehl:1 https://deb.nodesource.com/node_18.x buster/main armhf nodejs armhf 18.17.1-deb-1nodesource1
        404  Not Found [IP: 172.67.10.205 443]
      E: Fehlschlag beim Holen von https://deb.nodesource.com/node_18.x/pool/main/n/nodejs/nodejs_18.17.1-deb-1nodesource1_armhf.deb 404  Not Found [IP: 172.67.10.205 443]
      E: Einige Archive konnten nicht heruntergeladen werden; vielleicht »apt-get update« ausführen oder mit »--fix-missing« probieren?
      
      pi@phoscon-iob:~ $ sudo apt-get update
      OK:1 http://phoscon.de/apt/deconz buster InRelease
      OK:2 http://raspbian.raspberrypi.org/raspbian buster InRelease                                                                    
      OK:3 http://archive.raspberrypi.org/debian buster InRelease                                                                       
      OK:4 https://deb.nodesource.com/node_18.x buster InRelease                 
      Paketlisten werden gelesen... Fertig 
      
      Thomas Braun 1 Reply Last reply Reply Quote 0
      • Thomas Braun
        Thomas Braun Most Active @Baki074 last edited by

        @baki074
        Buster ist tot. Muss ersetzt werden.
        Und das Update von nodejs geht über

        iob nodejs-update
        

        (Ggfls. zuvor iob fix ausführen).

        B 1 Reply Last reply Reply Quote 0
        • B
          Baki074 @Thomas Braun last edited by

          @thomas-braun Super, hat funktioniert - danke!
          Blöde Frage: Kann ich Debian 10 easy durch 11 ersetzen bzw. gibt es vielleicht eine Schritt für Schritt Anleitung hierfür?

          Thomas Braun 1 Reply Last reply Reply Quote 0
          • Thomas Braun
            Thomas Braun Most Active @Baki074 last edited by Thomas Braun

            @baki074

            https://forum.iobroker.net/topic/47213/upgrade-von-debian-10-buster-auf-11-bullseye

            Aktuell ist allerdings Debian 12 'Bookworm'.

            https://forum.iobroker.net/topic/65655/upgrade-von-debian-11-bullseye-auf-12-bookworm

            M 1 Reply Last reply Reply Quote 1
            • M
              marian.t @Thomas Braun last edited by

              Habe nach einem Update auf node.js 18.18.2 iobroker bis auf lovelace-UI am laufen.
              Lovelace-UI bricht wiederkehrend ab (wird terminated).
              Das betrifft sowohl node.js update auf buster als auch eine komplette Neuinstallation von iobroker auf bookworm und einem anderem raspi. Logs und weitere Details unter
              https://github.com/ioBroker/ioBroker.lovelace/issues/476.
              Hier Logeintrag vom Host:
              „States 127.0.0.1:37204 Error from InMemDB: Error: The pattern "typeof window.socketLoadedHandler === 'function' && window.socketLoadedHandler()" is not a valid ID pattern at Object.pattern2RegEx (/opt/iobroker/node_modules/@iobroker/js-controller-common/src/lib/common/tools.ts:2497:15) at StatesInMemoryServer.handleSubscribe (/opt/iobroker/node_modules/@iobroker/db-base/src/lib/inMemFileDB.ts:324:59) at StatesInMemoryServer._subscribeForClient (/opt/iobroker/node_modules/@iobroker/db-states-file/src/lib/states/statesInMemFileDB.js:258:14) at RedisHandler. (/opt/iobroker/node_modules/@iobroker/db-states-jsonl/src/lib/states/statesInMemServerRedis.js:395:26) at RedisHandler.emit (node:events:517:28) at RedisHandler.emit (node:domain:489:12) at Immediate._onImmediate (/opt/iobroker/node_modules/@iobroker/db-base/src/lib/redisHandler.ts:209:37) at processImmediate (node:internal/timers:476:21)“

              Kann ich es korrigieren? Falls ja wo/wie? Oder hilft ein Downgrade von nod.js auf 16.x?

              marian-t-web-de created this issue in ioBroker/ioBroker.lovelace

              closed Iobroker lovelace-UI permamently crashes under Node.js 18.18.2 #476

              Thomas Braun 1 Reply Last reply Reply Quote 0
              • Thomas Braun
                Thomas Braun Most Active @marian.t last edited by Thomas Braun

                @marian-t sagte in Troubleshooting NodeJS update:

                Oder hilft ein Downgrade von nod.js auf 16.x?

                Da nodejs@16 jenseits des EndOfLife ist: Nein.

                Poste das mal beim js-controller, könnte auch von dort kommen.

                1 Reply Last reply Reply Quote 0
                • W
                  Wednesday13 last edited by

                  Hi zusammen!
                  ich komme mit meinem längst fälligen Update auch nicht weiter... folgende Fehlermeldung wird mir ausgeworfen:

                  pi@raspberrypi3iOb:~ $ curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash -

                  ================================================================================
                  ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓

                                         SCRIPT DEPRECATION WARNING
                  

                  This script, located at https://deb.nodesource.com/setup_X, used to
                  install Node.js is deprecated now and will eventually be made inactive.

                  Please visit the NodeSource distributions Github and follow the
                  instructions to migrate your repo.
                  https://github.com/nodesource/distributions

                  The NodeSource Node.js Linux distributions GitHub repository contains
                  information about which versions of Node.js and which Linux distributions
                  are supported and how to install it.
                  https://github.com/nodesource/distributions

                                        SCRIPT DEPRECATION WARNING
                  

                  ================================================================================
                  ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓

                  TO AVOID THIS WAIT MIGRATE THE SCRIPT
                  Continuing in 60 seconds (press Ctrl-C to abort) ...

                  Installing the NodeSource Node.js 18.x repo...

                  Populating apt-get cache...

                  • apt-get update
                    Holen:1 http://archive.raspberrypi.org/debian buster InRelease [32,6 kB]
                    OK:2 https://deb.nodesource.com/node_14.x buster InRelease
                    Holen:3 http://raspbian.raspberrypi.org/raspbian buster InRelease [15,0 kB]
                    Paketlisten werden gelesen... Fertig
                    E: Für das Depot »http://archive.raspberrypi.org/debian buster InRelease« wurde der »Suite«-Wert von »testing« in »o ldoldstable« geändert.
                    N: Sie müssen dies explizit bestätigen, bevor Aktualisierungen von diesem Depot angewendet werden können. Lesen Sie die apt-secure(8)-Handbuchseite, wenn Sie weitere Informationen benötigen.
                    E: Für das Depot »http://raspbian.raspberrypi.org/raspbian buster InRelease« wurde der »Suite«-Wert von »stable« in »oldoldstable« geändert.
                    N: Sie müssen dies explizit bestätigen, bevor Aktualisierungen von diesem Depot angewendet werden können. Lesen Sie die apt-secure(8)-Handbuchseite, wenn Sie weitere Informationen benötigen.
                    Error executing command, exiting

                  könnt ihr mir sagen wie ich jetzt weiterkomme?

                  Danke euch!

                  DJMarc75 Thomas Braun 2 Replies Last reply Reply Quote 0
                  • DJMarc75
                    DJMarc75 @Wednesday13 last edited by DJMarc75

                    @wednesday13 sagte in Troubleshooting NodeJS update:

                    könnt ihr mir sagen wie ich jetzt weiterkomme?

                    zu erst solltest Du den uns unbekannten Übersetzer ausschalten. Linux ist und bleibt englisch 😉
                    Zweitens bitte alles an Text hier in Codetags einbinden.
                    Das ist oben der </> Button.

                    W 1 Reply Last reply Reply Quote 0
                    • Thomas Braun
                      Thomas Braun Most Active @Wednesday13 last edited by Thomas Braun

                      @wednesday13 sagte in Troubleshooting NodeJS update:

                      könnt ihr mir sagen wie ich jetzt weiterkomme?

                      Mit dem Kommando

                      iob nodejs-update
                      

                      Dein buster ist aber tot. Installier da was lebendiges. Und mach regelmäßig Updates...
                      Kann ja nicht sein, dass dein Suite von 'stable' auf 'oldoldstable' springt. Dann hast du ja nie was gemacht...

                      W 1 Reply Last reply Reply Quote 0
                      • W
                        Wednesday13 @Thomas Braun last edited by

                        @thomas-braun Danke dir für die Antwort. Ich bin absolut froh, dass ich das Dingen so zum laufen bekommen habe vor einiger Zeit. 🙄 Bin da absolut kein Profi drin. Kannst du mir das genauer erklären was ich machen muss?

                        Thomas Braun 1 Reply Last reply Reply Quote 0
                        • W
                          Wednesday13 @DJMarc75 last edited by

                          @djmarc75 Ich hab da gar nichts an... das hat mir Putty so ausgeworfen. Du merkst es, noob und so... 😁

                          1 Reply Last reply Reply Quote 0
                          • Thomas Braun
                            Thomas Braun Most Active @Wednesday13 last edited by Thomas Braun

                            @wednesday13

                            Installier es neu...

                            Raspberry OS 12 'Bookworm' in der 64bit Version 'Lite' und lass die Sprache auf Englisch.

                            1 Reply Last reply Reply Quote 0
                            • O
                              obod0002 last edited by

                              irgendwie schaffe ich es nicht node-js auf meinem Linux Mint System zu aktualisieren, alles scheint zu klappen, zumindest keine Fehler, nur
                              iobroker upgrade-nodejs
                              liefert als einzige Ausgabe die vorhandenen Kommandos.

                              Ein
                              iob fix
                              endet mit
                              Your installation was fixed successfully

                              Und das Ganze beginnt von vorn ..

                              type -P nodejs node npm npx && nodejs -v && node -v && npm -v && npx -v
                              /usr/bin/nodejs
                              /usr/bin/node
                              /usr/bin/npm
                              /usr/bin/npx
                              v14.21.3
                              v14.21.3
                              6.14.18
                              6.14.18

                              Habt ihr bitte noch einen Tipp für mich? Danke

                              Thomas Braun 1 Reply Last reply Reply Quote 0
                              • Thomas Braun
                                Thomas Braun Most Active @obod0002 last edited by Thomas Braun

                                @obod0002

                                iob stop
                                iob fix
                                

                                Danach ist der Befehl

                                iob nodejs-update
                                

                                bekannt. Ansonsten braucht man näheres zu deinem System. Per

                                iob diag
                                
                                1 Reply Last reply Reply Quote 0
                                • O
                                  obod0002 last edited by

                                  klappt, super, danke:
                                  v18.19.0
                                  v18.19.0
                                  10.2.3
                                  10.2.3

                                  Jetzt muß ich nur noch meinen Zugang zum Alpha Ess Monitoring wieder gangbar bekommen 😊

                                  Thomas Braun 1 Reply Last reply Reply Quote 0
                                  • Thomas Braun
                                    Thomas Braun Most Active @obod0002 last edited by

                                    @obod0002

                                    Schau dir aber das gesamte System an. Vermutlich ist da noch viel mehr versumpft.

                                    D 1 Reply Last reply Reply Quote 0
                                    • D
                                      daniello @Thomas Braun last edited by

                                      @thomas-braun

                                      Hallo Thomas et al,
                                      ich kann weder nodejs noch npm updaten, weil meine glibc-Version nicht passt (zu alt).
                                      Gibt es hierzu eine Anleitung?

                                      Base ist Ubuntu 18.04.6 LTS (GNU/Linux 4.15.0-213-generic x86_64)

                                      Thomas Braun 1 Reply Last reply Reply Quote 0
                                      • Thomas Braun
                                        Thomas Braun Most Active @daniello last edited by Thomas Braun

                                        @daniello

                                        Ja, installier da ein aktuelles Betriebssystem, bevorzugt ein Debian 12 'Bookworm' ohne Desktop.

                                        Dein Ubuntu 18 ist abgekündigt.

                                        D 1 Reply Last reply Reply Quote 0
                                        • D
                                          daniello @Thomas Braun last edited by

                                          @thomas-braun Danke Thomas .. hab's mir gedacht 😞

                                          1 Reply Last reply Reply Quote 0
                                          • F
                                            FuXXz2 last edited by Negalein

                                            Vorerst wünsch ich euch allen ein frohes n eues Jahr.

                                            Ich versuche gerade mein iobroker auf dem Raspberry / Debian mit "iob upgrade-nodejs" von v16 auf v18 zu bekommen.
                                            Aber ich bekomme dann auch nur die command Liste.
                                            Was muss ich nun tun, damit ich weiter komme?

                                            /usr/bin/nodejs
                                            /usr/bin/node
                                            /usr/bin/npm
                                            /usr/bin/npx
                                            v16.20.2
                                            v16.20.2
                                            8.19.4
                                            8.19.4
                                            
                                            Homoran 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            692
                                            Online

                                            31.7k
                                            Users

                                            79.9k
                                            Topics

                                            1.3m
                                            Posts

                                            nodejs 18 nodejs update
                                            60
                                            504
                                            85650
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            The ioBroker Community 2014-2023
                                            logo