Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. update auf node.js 18.XX

    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

    update auf node.js 18.XX

    This topic has been deleted. Only users with topic management privileges can see it.
    • Thomas Braun
      Thomas Braun Most Active @Kusselin last edited by

      @kusselin

      sudo rm /etc/apt/sources.list.d/node*
      
      Kusselin 1 Reply Last reply Reply Quote 0
      • Kusselin
        Kusselin @Thomas Braun last edited by

        @thomas-braun sagte in update auf node.js 18.XX:

        @kusselin

        sudo rm /etc/apt/sources.list.d/node*
        

        das steht jetzt aktuell in dieser nodeliste drin

        deb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x bionic main
        deb-src [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x bionic main
        
        

        ..und wenn ich die gelöscht habe...was muss ich da dann eintragen...umd das ich dann mit dem Befehlen

        curl -sL https://deb.nodesource.com/setup_18.x | sudo -E bash -
        sudo apt install -y nodejs
        

        die aktuelle Node.js version bekomme?

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

          @kusselin sagte in update auf node.js 18.XX:

          @thomas-braun sagte in update auf node.js 18.XX:

          @kusselin

          ?? sorry verstehe nur bahnhof

          Aus deiner Anleitung:

          Der Ubuntu-Weg
          Ubuntu hat seine eigene automatische Art des Upgrades zwischen den Versionen entwickelt. So können Sie alles vorbereiten und dann vom Rechner weggehen. Den Rest erledigt Ubuntu.

          Mach das doch danach. Da steht auch drin, das Herumgeschreibe in den .list-Files nur für erfahrenere User empfohlen wird...

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

            @kusselin

            Lass die Finger von nodejs, solange da nicht Ubuntu 22.04 LTS drauf ist. Das schnallst du erst danach dann drauf..

            Ich würde das sogar temporär komplett rauswerfen.

            sudo apt remove nodejs
            

            Das verhindert, dass du dir die dfsg-Versiin von nodejs einhandelst.

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

              @thomas-braun sagte in update auf node.js 18.XX:

              @kusselin sagte in update auf node.js 18.XX:

              @thomas-braun sagte in update auf node.js 18.XX:

              @kusselin

              ?? sorry verstehe nur bahnhof

              Aus deiner Anleitung:

              Der Ubuntu-Weg
              Ubuntu hat seine eigene automatische Art des Upgrades zwischen den Versionen entwickelt. So können Sie alles vorbereiten und dann vom Rechner weggehen. Den Rest erledigt Ubuntu.

              Mach das doch danach. Da steht auch drin, das Herumgeschreibe in den .list-Files nur für erfahrenere User empfohlen wird...

              bin das jetzt durchgegangen..

               iobroker stop
              root@iobroker-live:~# sudo apt install update-manager-core
              Paketlisten werden gelesen... Fertig
              Abhängigkeitsbaum wird aufgebaut.
              Statusinformationen werden eingelesen.... Fertig
              update-manager-core ist schon die neueste Version (1:20.04.10.11).
              Die folgenden Pakete wurden automatisch installiert und werden nicht mehr benötigt:
                gyp libc-ares2 libcups2 libhttp-parser2.7.1 libjansson4 libjs-async
                libjs-inherits libjs-node-uuid libjs-underscore libldb1 libssl1.0-dev
                libtdb1 libtevent0 libuv1-dev node-abbrev node-ansi node-ansi-color-table
                node-archy node-async node-balanced-match node-block-stream
                node-brace-expansion node-builtin-modules node-combined-stream
                node-concat-map node-cookie-jar node-delayed-stream node-forever-agent
                node-form-data node-fs.realpath node-fstream node-fstream-ignore
                node-github-url-from-git node-glob node-graceful-fs node-gyp
                node-hosted-git-info node-inflight node-inherits node-ini
                node-is-builtin-module node-isexe node-json-stringify-safe node-lockfile
                node-lru-cache node-mime node-minimatch node-mkdirp node-mute-stream
                node-node-uuid node-nopt node-normalize-package-data node-npmlog node-once
                node-osenv node-path-is-absolute node-pseudomap node-qs node-read
                node-read-package-json node-request node-retry node-rimraf node-semver
                node-sha node-slide node-spdx-correct node-spdx-expression-parse
                node-spdx-license-ids node-tar node-tunnel-agent node-underscore
                node-validate-npm-package-license node-which node-wrappy node-yallist
                python-chardet python-cliapp python-crypto python-ldb python-markdown
                python-pkg-resources python-pygments python-samba python-talloc python-tdb
                python-ttystatus python-yaml samba-common samba-common-bin samba-libs
              Verwenden Sie »sudo apt autoremove«, um sie zu entfernen.
              0 aktualisiert, 0 neu installiert, 0 zu entfernen und 255 nicht aktualisiert.
              root@iobroker-live:~# sudo apt autoremove
              Paketlisten werden gelesen... Fertig
              Abhängigkeitsbaum wird aufgebaut.
              Statusinformationen werden eingelesen.... Fertig
              Die folgenden Pakete werden ENTFERNT:
                gyp libc-ares2 libcups2 libhttp-parser2.7.1 libjansson4 libjs-async
                libjs-inherits libjs-node-uuid libjs-underscore libldb1 libssl1.0-dev
                libtdb1 libtevent0 libuv1-dev node-abbrev node-ansi node-ansi-color-table
                node-archy node-async node-balanced-match node-block-stream
                node-brace-expansion node-builtin-modules node-combined-stream
                node-concat-map node-cookie-jar node-delayed-stream node-forever-agent
                node-form-data node-fs.realpath node-fstream node-fstream-ignore
                node-github-url-from-git node-glob node-graceful-fs node-gyp
                node-hosted-git-info node-inflight node-inherits node-ini
                node-is-builtin-module node-isexe node-json-stringify-safe node-lockfile
                node-lru-cache node-mime node-minimatch node-mkdirp node-mute-stream
                node-node-uuid node-nopt node-normalize-package-data node-npmlog node-once
                node-osenv node-path-is-absolute node-pseudomap node-qs node-read
                node-read-package-json node-request node-retry node-rimraf node-semver
                node-sha node-slide node-spdx-correct node-spdx-expression-parse
                node-spdx-license-ids node-tar node-tunnel-agent node-underscore
                node-validate-npm-package-license node-which node-wrappy node-yallist
                python-chardet python-cliapp python-crypto python-ldb python-markdown
                python-pkg-resources python-pygments python-samba python-talloc python-tdb
                python-ttystatus python-yaml samba-common samba-common-bin samba-libs
              0 aktualisiert, 0 neu installiert, 91 zu entfernen und 229 nicht aktualisiert.
              Nach dieser Operation werden 59,9 MB Plattenplatz freigegeben.
              Möchten Sie fortfahren? [J/n] J
              (Lese Datenbank ... 37958 Dateien und Verzeichnisse sind derzeit installiert.)
              Entfernen von node-gyp (3.6.2-1ubuntu1) ...
              Entfernen von gyp (0.1+20150913git1f374df9-1ubuntu1) ...
              Entfernen von libc-ares2:amd64 (1.15.0-1ubuntu0.4) ...
              Entfernen von samba-common-bin (2:4.7.6+dfsg~ubuntu-0ubuntu2.29) ...
              Entfernen von python-samba (2:4.7.6+dfsg~ubuntu-0ubuntu2.29) ...
              Entfernen von samba-libs:amd64 (2:4.7.6+dfsg~ubuntu-0ubuntu2.29) ...
              Entfernen von libcups2:amd64 (2.2.7-1ubuntu2.10) ...
              Entfernen von libhttp-parser2.7.1:amd64 (2.7.1-2ubuntu0.1) ...
              Entfernen von libjansson4:amd64 (2.12-1build1) ...
              Entfernen von node-request (2.26.1-1) ...
              Entfernen von node-form-data (0.1.0-1) ...
              Entfernen von node-async (0.8.0-3) ...
              Entfernen von libjs-async (0.8.0-3) ...
              Entfernen von node-tar (2.2.1-1) ...
              Entfernen von node-read-package-json (1.2.4-1) ...
              Entfernen von node-node-uuid (1.4.7-5) ...
              Entfernen von libjs-node-uuid (1.4.7-5) ...
              Entfernen von node-underscore (1.9.1~dfsg-1ubuntu0.20.04.1) ...
              Entfernen von libjs-underscore (1.9.1~dfsg-1ubuntu0.20.04.1) ...
              Entfernen von python-ldb:amd64 (2:1.2.3-1ubuntu0.2) ...
              Entfernen von libldb1:amd64 (2:1.2.3-1ubuntu0.2) ...
              Entfernen von libssl1.0-dev:amd64 (1.0.2n-1ubuntu5.13) ...
              Entfernen von python-tdb (1.3.15-2) ...
              Entfernen von libtdb1:amd64 (1.3.15-2) ...
              Entfernen von libtevent0:amd64 (0.9.34-1) ...
              Entfernen von libuv1-dev:amd64 (1.34.2-1ubuntu1.3) ...
              Entfernen von node-nopt (3.0.6-4) ...
              Entfernen von node-abbrev (1.1.1-2) ...
              Entfernen von node-ansi-color-table (1.0.0-1) ...
              Entfernen von node-npmlog (0.0.4-1) ...
              Entfernen von node-ansi (0.3.1-1) ...
              Entfernen von node-archy (1.0.0-3) ...
              Entfernen von node-fstream-ignore (0.0.6-2) ...
              Entfernen von node-block-stream (0.0.9-1ubuntu1) ...
              Entfernen von node-normalize-package-data (2.3.5-2) ...
              Entfernen von node-is-builtin-module (2.0.0-1) ...
              Entfernen von node-builtin-modules (3.1.0-1) ...
              Entfernen von node-combined-stream (1.0.8-1) ...
              Entfernen von node-cookie-jar (0.3.1-1) ...
              Entfernen von node-delayed-stream (1.0.0-4) ...
              Entfernen von node-forever-agent (0.6.1-2) ...
              Entfernen von node-fstream (1.0.12-2) ...
              Entfernen von node-github-url-from-git (1.5.0-1) ...
              Entfernen von node-sha (3.0.0-1) ...
              Entfernen von node-graceful-fs (4.2.3-2) ...
              Entfernen von node-hosted-git-info (2.8.5-1) ...
              Entfernen von node-ini (1.3.5-1) ...
              Entfernen von node-which (2.0.2-1) ...
              Entfernen von node-isexe (2.0.0-4) ...
              Entfernen von node-json-stringify-safe (5.0.1+repack-2) ...
              Entfernen von node-lockfile (0.4.1-1) ...
              Entfernen von node-lru-cache (5.1.1-5) ...
              Entfernen von node-mime (2.4.4+dfsg-1) ...
              Entfernen von node-mkdirp (0.5.1-2) ...
              Entfernen von node-read (1.0.7-2) ...
              Entfernen von node-mute-stream (0.0.8-2) ...
              Entfernen von node-osenv (0.1.5-1) ...
              Entfernen von node-pseudomap (1.0.2-1) ...
              Entfernen von node-qs (6.9.1+ds-1) ...
              Entfernen von node-retry (0.12.0-1) ...
              Entfernen von node-rimraf (2.6.3-1) ...
              Entfernen von node-semver (5.4.1-1) ...
              Entfernen von node-slide (1.1.6-2) ...
              Entfernen von node-validate-npm-package-license (3.0.4-1) ...
              Entfernen von node-spdx-correct (1.0.2-1) ...
              Entfernen von node-spdx-expression-parse (1.0.4-1) ...
              Entfernen von node-spdx-license-ids (3.0.5-1) ...
              Entfernen von node-tunnel-agent (0.3.1-1) ...
              Entfernen von node-yallist (4.0.0-1) ...
              Entfernen von python-chardet (3.0.4-1) ...
              Entfernen von python-cliapp (1.20170827-1) ...
              Entfernen von python-crypto (2.6.1-8ubuntu2) ...
              Entfernen von python-markdown (2.6.9-1) ...
              Entfernen von python-pkg-resources (39.0.1-2ubuntu0.1) ...
              Entfernen von python-pygments (2.2.0+dfsg-1ubuntu0.2) ...
              Entfernen von python-talloc (2.1.10-2ubuntu1) ...
              Entfernen von python-ttystatus (0.38-1) ...
              Entfernen von python-yaml (3.12-1build2) ...
              Entfernen von samba-common (2:4.7.6+dfsg~ubuntu-0ubuntu2.29) ...
              Entfernen von node-glob (7.1.6-1) ...
              Entfernen von node-inherits (2.0.4-1) ...
              Entfernen von libjs-inherits (2.0.4-1) ...
              Entfernen von node-minimatch (3.0.4-4ubuntu0.1) ...
              Entfernen von node-brace-expansion (1.1.11-1) ...
              Entfernen von node-balanced-match (1.0.0-1) ...
              Entfernen von node-concat-map (0.0.1-2) ...
              Entfernen von node-fs.realpath (1.0.0-1) ...
              Entfernen von node-inflight (1.0.6-1) ...
              Entfernen von node-once (1.4.0-3) ...
              Entfernen von node-path-is-absolute (2.0.0-1) ...
              Entfernen von node-wrappy (1.0.2-1) ...
              Trigger für man-db (2.8.3-2ubuntu0.1) werden verarbeitet ...
              Trigger für libc-bin (2.27-3ubuntu1.6) werden verarbeitet ...
              root@iobroker-live:~# sudo do-release-upgrade
              Checking for a new Ubuntu release
              Please install all available updates for your release before upgrading.
              root@iobroker-live:~# sudo do-release-upgrade -d
              Checking for a new Ubuntu release
              There is no development version of an LTS available.
              To upgrade to the latest non-LTS development release
              set Prompt=normal in /etc/update-manager/release-upgrades.
              

              und jetzt....?

              Thomas Braun 2 Replies Last reply Reply Quote 0
              • Thomas Braun
                Thomas Braun Most Active @Kusselin last edited by

                @kusselin sagte in update auf node.js 18.XX:

                root@iobroker-live

                Ist schon komplett falsch. Nie, nie, nie als root. Gerade nicht auf einem Ubuntu.

                Als Standarduser mit sudo-Recht anmelden, dann upgraden.

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

                  @kusselin

                  An den Paketen sehe ich auch schon, dass du da die falschen nodejs-Versionen drauf hattest/hast.

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

                    @kusselin

                    Mensch, LIES DIE ANLEITUNG GENAU!

                    sudo do-release-upgrade -d
                    

                    Ist für ein Upgrade auf die Entwickler-Versionen. Steht auch so dabei! Du willst aber auf die LTS-Versionen upgraden.

                    Gib mal die jetzige Ausgabe von

                    sudo apt update
                    

                    bekannt.

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

                      @thomas-braun sagte in update auf node.js 18.XX:

                      @kusselin

                      Mensch, LIES DIE ANLEITUNG GENAU!

                      Auch wenn Du immer hilfsbereit bist zu mir......
                      Ein bissl mehr Respekt bitte

                       lsb_release -a
                      No LSB modules are available.
                      Distributor ID: Ubuntu
                      Description:    Ubuntu 22.04.3 LTS
                      Release:        22.04
                      Codename:       jammy
                      
                      
                      sudo apt update
                      OK:1 https://dl.yarnpkg.com/debian stable InRelease
                      OK:2 http://archive.ubuntu.com/ubuntu jammy InRelease
                      OK:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
                      OK:4 http://archive.ubuntu.com/ubuntu jammy-security InRelease
                      Paketlisten werden gelesen… Fertig
                      Abhängigkeitsbaum wird aufgebaut… Fertig
                      Statusinformationen werden eingelesen… Fertig
                      Alle Pakete sind aktuell.
                      
                      
                      Thomas Braun 1 Reply Last reply Reply Quote 0
                      • Thomas Braun
                        Thomas Braun Most Active @Kusselin last edited by Thomas Braun

                        @kusselin

                        yarn.list (oder so ähnlich) löschen.
                        Liegt in /etc/apt/sources.list.d/ herum.

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

                          @thomas-braun sorry...ich kenne die Befehle nicht.....wenn ich das alles so wüsste wie Du/ihr würde ich hier nur stiller Mitleser sein!

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

                            @kusselin

                            ls -lAh /etc/apt/sources.list.d/
                            
                            Kusselin 1 Reply Last reply Reply Quote 0
                            • Kusselin
                              Kusselin @Thomas Braun last edited by Kusselin

                              @thomas-braun schau das ist der Inhalt...

                              ls -lAh /etc/apt/sources.list.d/
                              total 12K
                              -rw-r--r-- 1 root root 202 Sep 30 12:22 nodesource.list
                              -rw-r--r-- 1 root root  90 Sep 30 12:09 yarn.list
                              -rw-r--r-- 1 root root  90 Sep 30 12:09 yarn.list.distUpgrade
                              

                              denke das yarn.list udn das yarn.list.distupgrade löschen oder?

                              Thomas Braun 2 Replies Last reply Reply Quote 0
                              • Thomas Braun
                                Thomas Braun Most Active @Kusselin last edited by

                                @kusselin

                                sudo rm /etc/apt/sources.list.d/yar*
                                

                                Dann schau in meiner Signatur nach dem node-fix-Skript und führ das aus.

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

                                  @kusselin

                                  Und dann final die Langfassung von

                                  iob diag
                                  
                                  Kusselin 1 Reply Last reply Reply Quote 0
                                  • Kusselin
                                    Kusselin @Thomas Braun last edited by

                                    @thomas-braun sagte in update auf node.js 18.XX:

                                    iob diag

                                    o.k. danke dir mal wieder ......
                                    eines habe ich noch...jetzt das aktuelle 22.04 LTS udn node.js habe ich die 18.17.1

                                    es gibt aber die 18.18.0

                                    in der regel geht das doch mit dem Befehl den ich vorhin ausgeführt habe:

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

                                    oder muss ich da explizit 18.18 angeben?

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

                                      @kusselin

                                      Nein, mit dem Befehl geht das nicht mehr. Das ist umgestellt worden.

                                      Für das node-fix-Skript aus meiner Signatur aus.

                                      Und was sagt

                                      iob diag
                                      

                                      nun?

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

                                        @thomas-braun o.k. und das Script von dir das geht nur mit Standarduser....richtig?
                                        heisst ich muss mir erst einen neuen User anlgene ohne rootrechte...

                                        sei mir nicht böse...ich möchte nicht mein ganzen System hier preisgeben......

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

                                          @kusselin sagte in update auf node.js 18.XX:

                                          heisst ich muss mir erst einen neuen User anlgene ohne rootrechte...

                                          Das ist der Standard. Gerade für User die keine Ahnung von Linux haben verbietet sich eine root-Shell ohnehin.

                                          Ohne Ausgabe von

                                          iob diag 
                                          

                                          kann man dir auch nicht sagen was an dem System gegebenenfalls noch zu fixen ist.

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

                                            @thomas-braun

                                            so habe mir jetzt einen Standarduser angelegt....das habe ich verstanden...es wird ein /home verzeichnis für diesen User angelegt.....beim Update bringt er aber einen Fehlermeldung das der Standarduser hier die rechte für den Pfad "iobroker" nicht hat.... 😞
                                            Welchen Befehl muss man hier eingeben um das das Script korrekt ausgeführt wird?

                                            ioBroker nodejs fixer 2023-09-29
                                            
                                            Recommended nodejs-version is: 18.18.0
                                            Checking your installation now. Please be patient!
                                            
                                            Your current setup is:
                                            /usr/bin/nodejs         v18.17.1
                                            /usr/bin/node           v18.17.1
                                            /usr/bin/npm            9.6.7
                                            /usr/bin/npx            9.6.7
                                            /usr/bin/corepack       0.18.0
                                            
                                            We found these nodejs versions available for installation:
                                            
                                            nodejs:
                                              Installed: 18.17.1-deb-1nodesource1
                                              Candidate: 18.17.1-deb-1nodesource1
                                              Version table:
                                             *** 18.17.1-deb-1nodesource1 500
                                                    500 https://deb.nodesource.com/node_18.x jammy/main amd64 Packages
                                                    100 /var/lib/dpkg/status
                                                 12.22.9~dfsg-1ubuntu3 500
                                                    500 http://archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
                                            
                                            
                                            
                                            Nothing to do - Your installation is using the correct paths.
                                            
                                            You are running nodejs v18.17.1. Do you want to install recommended version 18.18.0?
                                            
                                            Press <y> to continue or any other key to quit
                                            Trying to fix your installation now. Please be patient.
                                            [sudo] password for heisemer:
                                            Sorry, user heisemer is not allowed to execute '/usr/bin/find / ( -path /proc -o -path /dev -o -path /sys -o -path /lost+found ) -prune -o -name nodesource.[gk]* -print' as root on iobroker-live.fritz.box.
                                            
                                            Thomas Braun 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

                                            778
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            8
                                            86
                                            6120
                                            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