Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. [How-to] Node.js für ioBroker richtig updaten

    NEWS

    • ioBroker goes Matter ... Matter Adapter in Stable

    • 15. 05. Wartungsarbeiten am ioBroker Forum

    • Monatsrückblick - April 2025

    [How-to] Node.js für ioBroker richtig updaten

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

      ich habe es mit

      curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
      

      probiert:

      hier das Ergebnis:

      pi@ioBroker:/opt/iobroker $ curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
      
      ## Installing the NodeSource Node.js 12.x repo...
      
      
      ## Populating apt-get cache...
      
      + apt-get update
      OK:1 http://archive.raspberrypi.org/debian buster InRelease
      Holen:2 http://raspbian.raspberrypi.org/raspbian buster InRelease [15,0 kB]
      OK:3 https://deb.nodesource.com/node_10.x buster InRelease
      Paketlisten werden gelesen... Fertig
      E: Für das Depot »http://raspbian.raspberrypi.org/raspbian buster InRelease« wurde der »Suite«-Wert von »testing« in »stable« 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
      pi@ioBroker:/opt/iobroker $
      
      

      Bei

      nodejs -v && which nodejs && node -v && which node && npm -v && which npm && apt policy nodejs
      

      gibt es diese Infos:

      pi@ioBroker:/opt/iobroker $ nodejs -v && which nodejs && node -v && which node && npm -v && which npm && apt policy nodejs
      v10.21.0
      /usr/bin/nodejs
      v10.21.0
      /usr/bin/node
      6.14.4
      /usr/bin/npm
      nodejs:
        Installiert:           10.21.0-1nodesource1
        Installationskandidat: 10.21.0-1nodesource1
        Versionstabelle:
       *** 10.21.0-1nodesource1 500
              500 https://deb.nodesource.com/node_10.x buster/main armhf Packages
              100 /var/lib/dpkg/status
           10.15.2~dfsg-2+rpi1 500
              500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
      pi@ioBroker:/opt/iobroker $
      
      

      Und

      sudo whoami
      

      zeigt root

      Gruß Markus

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

        @Unbekannt

        sudo apt-get update --allow-releaseinfo-change
        sudo apt update
        sudo apt dist-upgrade
        curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
        sudo apt update 
        sudo apt upgrade
        
        1 Reply Last reply Reply Quote 0
        • U
          Unbekannt last edited by

          @Thomas-Braun

          vielen Dank. Ich habe die Befehle abgearbeitet und nun die aktuelle Version drauf. Danke.

          Ich habe leider keine Ahnung was ich da grade gemacht habe, könntest du das bitte erläutern? Damit ich den Hintergrund ein wenig verstehe und mir beim nächsten Mal selbst helfen kann?

          Gruß Markus

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

            @Unbekannt
            Kein Problem.
            Mit

            sudo apt-get update --allow-releaseinfo-change
            

            hast du den (mittlerweile eigentlich von 'apt' abgelösten) Paketmanager 'apt-get' angewiesen, dass es okay ist, dass deine Installationsquellen für Buster von 'testing' auf 'stable' umdeklariert wurden. Das verhindert dann künftig die Meldung, die hier z. B. vom Installationsskript ausgelöst wurde.

            In den nächsten beiden Zeilen werden alle auf dem System vorhandenen Pakete/Programme aktualisiert.
            Mit

            curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
            

            wird dann die Paketquelle / das Repository von node12 sauber angelegt.
            Mit den letzten beiden Zeilen wird dann nochmal das komplette System (inkl. node12) auf den letzten Stand gebracht.

            Zeig mal die Ausgabe von

            nodejs -v && which nodejs && node -v && which node && npm -v && which npm && apt policy nodejs
            

            Dann kann man sagen ob jetzt alles gerade ist.

            1 Reply Last reply Reply Quote 1
            • U
              Unbekannt last edited by

              @Thomas-Braun sagte in [How-to] Node.js für ioBroker richtig updaten:

              nodejs -v && which nodejs && node -v && which node && npm -v && which npm && apt policy nodejs

              
              v12.18.0
              /usr/bin/nodejs
              v12.18.0
              /usr/bin/node
              6.14.4
              /usr/bin/npm
              nodejs:
                Installiert:           12.18.0-1nodesource1
                Installationskandidat: 12.18.0-1nodesource1
                Versionstabelle:
               *** 12.18.0-1nodesource1 500
                      500 https://deb.nodesource.com/node_12.x buster/main armhf Packages
                      100 /var/lib/dpkg/status
                   10.19.0~dfsg1-1+rpi1 500
                      500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
              
              

              Sieht soweit gut aus denke ich. Danke auch für deine Erklärungen 🙂

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

                @Unbekannt
                Ja, schaut gut aus.

                1 Reply Last reply Reply Quote 0
                • T
                  toki1973 last edited by

                  Hallo, ich bekomme einen Zertifikats Fehler beim Update-Versuch aus einer Proxmox VM heraus.

                  + apt-get update
                  OK:1 http://deb.debian.org/debian buster InRelease
                  OK:2 http://security.debian.org/debian-security buster/updates InRelease
                  Holen:3 http://deb.debian.org/debian buster-updates InRelease [51,9 kB]
                  Holen:4 http://download.proxmox.com/debian/pve stretch InRelease [3.052 B]
                  OK:5 https://deb.nodesource.com/node_10.x buster InRelease
                  Fehl:4 http://download.proxmox.com/debian/pve stretch InRelease
                    Die folgenden Signaturen konnten nicht überprüft werden, weil ihr öffentlicher Schlüssel nicht verfügbar ist: NO_PUBKEY 0D9A1950E2EF0603
                  Paketlisten werden gelesen... Fertig
                  W: GPG-Fehler: http://download.proxmox.com/debian/pve stretch InRelease: Die folgenden Signaturen konnten nicht überprüft werden, weil ihr öffentlicher Schlüssel nicht verfügbar ist: NO_PUBKEY 0D9A1950E2EF0603
                  E: Das Depot »http://download.proxmox.com/debian/pve stretch InRelease« ist nicht signiert.
                  N: Eine Aktualisierung von solch einem Depot kann nicht auf eine sichere Art durchgeführt werden, daher ist es standardmäßig deaktiviert.
                  N: Weitere Details zur Erzeugung von Paketdepots sowie zu deren Benutzerkonfiguration finden Sie in der Handbuchseite apt-secure(8).
                  Error executing command, exiting
                  root@iobrokernuc:/opt/iobroker# curl -sL https://deb.nodesource.com/setup_12.x | sudo -
                  sudo: -: Befehl nicht gefunden
                  root@iobrokernuc:/opt/iobroker# curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
                  
                  ## Installing the NodeSource Node.js 12.x repo...
                  
                  
                  ## Populating apt-get cache...
                  
                  
                  
                  
                  harrym Thomas Braun 2 Replies Last reply Reply Quote 0
                  • harrym
                    harrym @toki1973 last edited by

                    @toki1973 sagte in [How-to] Node.js für ioBroker richtig updaten:

                    NO_PUBKEY 0D9A1950E2EF0603

                    na dann füg doch den key von proxmox hinzu. steht ja alles im howto vom install für proxmox ....

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

                      @toki1973
                      Ich vemute mal ganz stark, dass 'stretch' ohnehin die falsche Quelle ist.
                      Ohne proxmox genauer zu kennen. Aber da sollte imho 'buster' oder 'stable' in der entsprechenden sources.list stehen.
                      Key musst du dann noch hinzufügen, steht bestimmt in der Nähe der richtigen Quelle.

                      harrym T 2 Replies Last reply Reply Quote 0
                      • harrym
                        harrym @Thomas Braun last edited by

                        @Thomas-Braun 🙂

                        1 Reply Last reply Reply Quote 0
                        • T
                          toki1973 @Thomas Braun last edited by

                          @Thomas-Braun
                          SMP Debian 4.19.98-1 (2020-01-26) x86_64

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

                            @toki1973

                            lsb_release -a
                            

                            Aber würde mich wundern, wenn da nicht 'buster' bei herum käme.
                            Das ganze ist aber ziemlich OT in diesem Thread. Mit nodejs hat das nix zu tun.

                            1 Reply Last reply Reply Quote 1
                            • T
                              toki1973 last edited by

                              @Thomas-Braun said in [How-to] Node.js für ioBroker richtig updaten:

                              lsb_release -a
                              Ja genau Buster. Und wie kann ich das nun Updaten? Ich bin der Anleitung von #1 gefolgt

                              No LSB modules are available.
                              Distributor ID: Debian
                              Description:    Debian GNU/Linux 10 (buster)
                              Release:        10
                              Codename:       buster
                              
                              
                              harrym 1 Reply Last reply Reply Quote 0
                              • harrym
                                harrym @toki1973 last edited by harrym

                                @toki1973 https://pve.proxmox.com/wiki/Install_Proxmox_VE_on_Debian_Buster 😉

                                und ich empfehle auch immer die iso von proxmox zu nehmen .... ^_^ ... ist für anfänger streßfrei.

                                T 1 Reply Last reply Reply Quote 0
                                • T
                                  toki1973 @harrym last edited by

                                  @harrym
                                  Das würde bedeuten alles neu zu installieren anstatt nur node.js upzudaten?
                                  Habe ich eigentlich nicht vor...

                                  harrym Thomas Braun 2 Replies Last reply Reply Quote 0
                                  • harrym
                                    harrym @toki1973 last edited by harrym

                                    @toki1973 bring deine apt source auf den richtigen stand .... mach den pubkey deinem system bekannt .... und lies im proxmox wiki. HAT alles genau NIX mit node.js zu tun.

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

                                      @toki1973
                                      Nee du musst nur den Eintrag 'stretch' auf 'buster' in der
                                      /etc/apt/sources.list.d/pve-install-repo.list
                                      ändern.
                                      Dann

                                      wget http://download.proxmox.com/debian/proxmox-ve-release-6.x.gpg -O /etc/apt/trusted.gpg.d/proxmox-ve-release-6.x.gpg
                                      

                                      Und dann

                                      sudo apt update
                                      sudo apt dist-upgrade
                                      
                                      T 1 Reply Last reply Reply Quote 0
                                      • T
                                        toki1973 @Thomas Braun last edited by

                                        @Thomas-Braun
                                        Hört sich schon besser an. Und dabei kann ich nichts abschießen?

                                        1. in der Datei stretch auf buster ändern

                                        Bekomme ich beim 2. Punkt eine neu Proxmox Release in der node-js in Version 12 enthalten ist?

                                        werden im 3. Punkt die sourcen installiert?

                                        harrym Thomas Braun 2 Replies Last reply Reply Quote 0
                                        • harrym
                                          harrym @toki1973 last edited by

                                          @toki1973 was hat proxmox mit node.js zu tun?

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

                                            @toki1973 sagte in [How-to] Node.js für ioBroker richtig updaten:

                                            @Thomas-Braun
                                            Hört sich schon besser an. Und dabei kann ich nichts abschießen?

                                            1. in der Datei stretch auf buster ändern

                                            Bekomme ich beim 2. Punkt eine neu Proxmox Release in der node-js in Version 12 enthalten ist?

                                            werden im 3. Punkt die sourcen installiert?

                                            Irgendwie recht wirr...
                                            Nee, du korrigierst nur deine verfummelten sources.lists und dann ziehst du das ganze System hoch. Mit proxmox hat das zunächst mal nix zu tun.

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate
                                            FAQ Cloud / IOT
                                            HowTo: Node.js-Update
                                            HowTo: Backup/Restore
                                            Downloads
                                            BLOG

                                            728
                                            Online

                                            31.6k
                                            Users

                                            79.5k
                                            Topics

                                            1.3m
                                            Posts

                                            installation linux node node.js nodejs windows
                                            106
                                            1105
                                            625038
                                            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