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.
    • 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
                        • Thomas Braun
                          Thomas Braun Most Active @Kusselin last edited by

                          @kusselin

                          Der User muss in die Gruppen sudo und iobroker gesetzt werden. Dann den User einmal aus- und wieder einloggen. Und danach nie mehr als root einloggen.

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

                            @thomas-braun o.k. danke...

                            könntest mir jetzt bitte noch den Code für putty nennen den ich eintragen muss udn ausführen muss..

                            Ja o.k. danke für die Info....das mit dem Standarduser gilt für alle weiteren linux anwendungen richtig...nie mit root reingehen....immer mit standard user udn wenn mal root rechte dann mit sudo su richtig?

                            so dann?
                            usermod -G root,iobroker user-name

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

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

                              So aus der Erinnerung:

                              usermod -a -G sudo user-name
                              usermod -a-G iobroker user-name
                              

                              Als Einzeiler

                              usermod -a -G sudo,iobroker user-name
                              

                              geht es aber auch.

                              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:

                                nie mit root reingehen....immer mit standard user udn wenn mal root rechte dann mit sudo su richtig?

                                Nein, nicht
                                sudo su
                                Vergiss den Scheiß.

                                Wenn root-Rechte für einen Befehl erforderlich sein sollten einfach nur ein sudo davor setzen. Fertig.

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

                                  @thomas-braun o.k. danke..jetzt hat alles funktioniert...habe einen standarduser mit dem ich auch das node.js update habe durchführen können ....jetzt alles upto date

                                  Danke dir

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

                                    @kusselin

                                    Zeig nun mal die Ausgabe von

                                    iob diag
                                    

                                    Da stehen keine geheimen Dinge drin.
                                    Allenfalls im LogFile, ist der letzte Block.

                                    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

                                      PN

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

                                        @kusselin

                                        Hau es hier rein, kann man besser lesen.

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

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

                                          ich möchte nicht mein ganzen System hier preisgeben......

                                          Diese Einstellung der Community gegenüber ist nicht gut und wird Dir in Zukunft nicht helfen.
                                          Wie @Thomas-Braun geschrieben hat sind (vielleicht) die letzten 25 Zeilen "sensibel" - kann man dann weglassen.

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

                                            @djmarc75 habe Thomas ne PN geschrieben ist alles O.K.

                                            Achso weil ich das jetzt nicht poste bekomme ich keine Hilfe mehr...o.k. gut zu wissen!!

                                            Glasfaser Homoran 3 Replies 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

                                            801
                                            Online

                                            31.7k
                                            Users

                                            79.9k
                                            Topics

                                            1.3m
                                            Posts

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