Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Update Node.js auf 14 klappt nicht

    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 Node.js auf 14 klappt nicht

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

      @baumert

      Schau nach:

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

        @thomas-braun

        Ich kämpfe noch mit den Quellen

        ls -lAh /etc/apt/sources.list.d/
        

        gibt zurück:

        insgesamt 16K
        -rw-r--r-- 1 root root  53 Dez 20  2021 influxdb.list
        -rw-r--r-- 1 root root  53 Dez 20  2021 influxdb.list.save
        -rw-r--r-- 1 root root 108 Dez 20  2021 nodesource.list
        -rw-r--r-- 1 root root 108 Dez 20  2021 nodesource.list.save
        
        Thomas Braun 1 Reply Last reply Reply Quote 0
        • Thomas Braun
          Thomas Braun Most Active @Baumert last edited by Thomas Braun

          @baumert sagte in Update Node.js auf 14 klappt nicht:

          .save

          Die kannste schon rauskicken:

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

          Das dürften Überreste vom Herumhantieren mit einem graphischen Editor sein.

          Der Eintrag zum Raspberry steht wohl woanders drin.

          cat /etc/apt/sources.list
          

          sagt?

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

            @thomas-braun

            cat /etc/apt/sources.list
            

            sagt:

            # deb cdrom:[Ubuntu 20.04.1 LTS _Focal Fossa_ - Release amd64 (20200731)]/ focal main restricted
            
            # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
            # newer versions of the distribution.
            deb http://de.archive.ubuntu.com/ubuntu/ focal main restricted
            # deb-src http://de.archive.ubuntu.com/ubuntu/ focal main restricted
            
            ## Major bug fix updates produced after the final release of the
            ## distribution.
            deb http://de.archive.ubuntu.com/ubuntu/ focal-updates main restricted
            # deb-src http://de.archive.ubuntu.com/ubuntu/ focal-updates main restricted
            
            ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
            ## team. Also, please note that software in universe WILL NOT receive any
            ## review or updates from the Ubuntu security team.
            deb http://de.archive.ubuntu.com/ubuntu/ focal universe
            # deb-src http://de.archive.ubuntu.com/ubuntu/ focal universe
            deb http://de.archive.ubuntu.com/ubuntu/ focal-updates universe
            # deb-src http://de.archive.ubuntu.com/ubuntu/ focal-updates universe
            
            ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
            ## team, and may not be under a free licence. Please satisfy yourself as to
            ## your rights to use the software. Also, please note that software in
            ## multiverse WILL NOT receive any review or updates from the Ubuntu
            ## security team.
            deb http://de.archive.ubuntu.com/ubuntu/ focal multiverse
            # deb-src http://de.archive.ubuntu.com/ubuntu/ focal multiverse
            deb http://de.archive.ubuntu.com/ubuntu/ focal-updates multiverse
            # deb-src http://de.archive.ubuntu.com/ubuntu/ focal-updates multiverse
            
            ## N.B. software from this repository may not have been tested as
            ## extensively as that contained in the main release, although it includes
            ## newer versions of some applications which may provide useful features.
            ## Also, please note that software in backports WILL NOT receive any review
            ## or updates from the Ubuntu security team.
            deb http://de.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
            # deb-src http://de.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
            
            ## Uncomment the following two lines to add software from Canonical's
            ## 'partner' repository.
            ## This software is not part of Ubuntu, but is offered by Canonical and the
            ## respective vendors as a service to Ubuntu users.
            # deb http://archive.canonical.com/ubuntu focal partner
            # deb-src http://archive.canonical.com/ubuntu focal partner
            
            deb http://security.ubuntu.com/ubuntu focal-security main restricted
            # deb-src http://security.ubuntu.com/ubuntu focal-security main restricted
            deb http://security.ubuntu.com/ubuntu focal-security universe
            # deb-src http://security.ubuntu.com/ubuntu focal-security universe
            deb http://security.ubuntu.com/ubuntu focal-security multiverse
            # deb-src http://security.ubuntu.com/ubuntu focal-security multiverse
            
            # This system was installed using small removable media
            # (e.g. netinst, live or single CD). The matching "deb cdrom"
            # entries were disabled at the end of the installation process.
            # For information about how to configure apt package sources,
            # see the sources.list(5) manual.
            
            deb https://archive.raspbian.org/raspbian buster main contrib non-free
            deb-src https://archive.raspbian.org/raspbian buster main contrib non-free
            deb https://packages.grafana.com/oss/deb stable main
            # deb-src https://packages.grafana.com/oss/deb stable main
            
            
            Thomas Braun 2 Replies Last reply Reply Quote 0
            • Thomas Braun
              Thomas Braun Most Active @Baumert last edited by

              @baumert

              Die Zeilen 59 - 62 sind Quatsch an der Stelle und müssen gelöscht werden.

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

                @baumert

                Biste jetzt soweit?

                rm /etc/apt/sources.list.d/influxdb.list
                sudo apt-get install -y apt-transport-https
                sudo apt-get install -y software-properties-common wget
                wget -q -O /usr/share/keyrings/grafana.key https://apt.grafana.com/gpg.key
                echo "deb [signed-by=/usr/share/keyrings/grafana.key] https://apt.grafana.com stable main" | sudo tee /etc/apt/sources.list.d/grafana.list
                wget -q https://repos.influxdata.com/influxdata-archive_compat.key
                echo '393e8779c89ac8d958f81f942f9ad7fb82a25e133faddaf92e15b16e6ac9ce4c influxdata-archive_compat.key' | sha256sum -c && cat influxdata-archive_compat.key | gpg --dearmor | sudo tee /usr/share/keyrings/influxdata-archive_compat.gpg > /dev/null
                echo 'deb [signed-by=/usr/share/keyrings/influxdata-archive_compat.gpg] https://repos.influxdata.com/debian stable main' | sudo tee /etc/apt/sources.list.d/influxdata.list
                

                Wenn das alles drin ist:

                sudo apt update
                

                anschauen und prüfen ob es noch gemecker gibt.

                Wenn sauber, die Datei /etc/apt/sources.list.d/nodesourcelist
                um einen Eintrag zu nodejs18 ergänzen.

                iob stop
                sudo apt update
                sudo apt full-upgrade
                sudo reboot
                

                Fertig.

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

                  @thomas-braun

                  sieht bis jetzt gut aus:

                  sudo apt update
                  OK:1 http://de.archive.ubuntu.com/ubuntu focal InRelease
                  Holen:2 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
                  OK:3 https://dl.yarnpkg.com/debian stable InRelease
                  OK:4 http://de.archive.ubuntu.com/ubuntu focal-updates InRelease
                  OK:5 https://deb.nodesource.com/node_14.x focal InRelease
                  Holen:6 http://de.archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]
                  Es wurden 222 kB in 1 s geholt (281 kB/s).
                  Paketlisten werden gelesen... Fertig
                  Abhängigkeitsbaum wird aufgebaut.
                  Statusinformationen werden eingelesen.... Fertig
                  Alle Pakete sind aktuell.
                  

                  Wie ergänze ich die Datei /etc/apt/sources.list.d/nodesource.list um den Eintrag nodejs18?

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

                    @baumert sagte in Update Node.js auf 14 klappt nicht:

                    Wie ergänze ich die Datei /etc/apt/sources.list.d/nodesource.list um den Eintrag nodejs18?

                    Mit einem Editor.
                    nano ist z. B. einer.

                    sudo nano /etc/apt/sources.list.d/nodesource.list
                    
                    1 Reply Last reply Reply Quote 0
                    • Thomas Braun
                      Thomas Braun Most Active @Baumert last edited by Thomas Braun

                      @baumert sagte in Update Node.js auf 14 klappt nicht:
                      Die Quellen würde ich auch noch ausschalten:

                      https://dl.yarnpkg.com/debian stable InRelease
                      http://de.archive.ubuntu.com/ubuntu focal-backports InRelease
                      

                      Backports in der sources.list (Zeile 36) und yarnpkg musste mal suchen wo das herkommt:

                      grep -R "yarnpkg" /etc/apt/
                      

                      Und es fehlen dir nun die Quellen für grafana und influx. Wolltest du die nicht mehr?

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

                        @thomas-braun

                        sorry, nano war klar - ich meinte was trage ich ein...

                        Es sieht jetzt so aus:

                         sudo apt update
                        OK:1 http://de.archive.ubuntu.com/ubuntu focal InRelease
                        OK:2 http://security.ubuntu.com/ubuntu focal-security InRelease
                        OK:3 http://de.archive.ubuntu.com/ubuntu focal-updates InRelease
                        Holen:4 http://de.archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]
                        OK:5 https://deb.nodesource.com/node_14.x focal InRelease
                        Es wurden 108 kB in 5 s geholt (20,6 kB/s).
                        Paketlisten werden gelesen... Fertig
                        Abhängigkeitsbaum wird aufgebaut.
                        Statusinformationen werden eingelesen.... Fertig
                        Alle Pakete sind aktuell.
                        

                        Wie bekommen ich noch diesen Eintrag weg bzw. ausgeschaltet:

                        http://de.archive.ubuntu.com/ubuntu focal-backports InRelease
                        

                        Die Quellen für grafana und influx möchte ich gerne wieder.
                        Diese müssen verschwunden sein, wo ich die beiden manuelle aktualisiert habe...

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

                          @baumert

                           grep -R "focal-backports" /etc/apt/
                          

                          sagt

                          /etc/apt/sources.list:deb http://de.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
                          /etc/apt/sources.list:# deb-src http://de.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
                          /etc/apt/sources.list.save:deb http://de.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
                          /etc/apt/sources.list.save:# deb-src http://de.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
                          
                          1 Reply Last reply Reply Quote 0
                          • Thomas Braun
                            Thomas Braun Most Active @Baumert last edited by

                            @baumert sagte in Update Node.js auf 14 klappt nicht:

                            ich meinte was trage ich ein...

                            Statt 14 wie im Moment eine 18.
                            Schaut dann halt so oder so ähnlich aus:

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

                            Die Backports schaltet man aus, indem man in Zeile 36 ein Kommentarzeichen setzt.

                            ## Also, please note that software in backports WILL NOT receive any review
                            ## or updates from the Ubuntu security team.
                            # deb http://de.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
                            # deb-src http://de.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
                            

                            Und lösch die .save-Dateien.

                            sudo rm /etc/apt/sources.list.save
                            

                            Die Quellen für grafana und influx möchte ich gerne wieder.

                            Hatte ich oben haarklein schon aufgeführt, wie die richtig angelegt werden.

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

                              @thomas-braun

                              soweit sieht es jetzt gut aus - bin jetzt auf Node.js v18.16.0

                              System Neu.png

                              Save-Dateien wurden gelöscht und focal-backports wurde deaktiviert.

                              Quellen für grafana und influxdb wurde wieder eingebunden, aber jetzt habe ich folgende Meldung (Zeile 16 und 17):

                              sudo apt update
                              OK:1 http://security.ubuntu.com/ubuntu focal-security InRelease
                              OK:2 http://de.archive.ubuntu.com/ubuntu focal InRelease
                              Holen:3 http://de.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
                              OK:4 https://apt.grafana.com stable InRelease
                              OK:5 https://repos.influxdata.com/debian stable InRelease
                              OK:6 https://deb.nodesource.com/node_18.x focal InRelease
                              Holen:7 http://de.archive.ubuntu.com/ubuntu focal-updates/main amd64 DEP-11 Metadata [275 kB]
                              Holen:8 http://de.archive.ubuntu.com/ubuntu focal-updates/universe amd64 DEP-11 Metadata [410 kB]
                              Holen:9 http://de.archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 DEP-11 Metadata [944 B]
                              Es wurden 799 kB in 1 s geholt (734 kB/s).
                              Paketlisten werden gelesen... Fertig
                              Abhängigkeitsbaum wird aufgebaut.
                              Statusinformationen werden eingelesen.... Fertig
                              Alle Pakete sind aktuell.
                              N: Datei »influxdata-archive_compat.key« in Verzeichnis »/etc/apt/sources.list.d/« wird ignoriert, da sie eine ungültige Dateinamen-Erweiterung hat.
                              N: Das Laden der konfigurierten Datei »main/binary-i386/Packages« wird übersprungen, da das Depot »https://apt.grafana.com stable InRelease« die Architektur »i386« nicht unterstützt.
                              
                              Thomas Braun 1 Reply Last reply Reply Quote 0
                              • Thomas Braun
                                Thomas Braun Most Active @Baumert last edited by

                                @baumert

                                Da hast du im falschen Verzeichnis gestanden...

                                sudo rm /etc/apt/sources.list.d/influxdata-archive_compat.key
                                
                                Baumert 1 Reply Last reply Reply Quote 0
                                • Baumert
                                  Baumert @Thomas Braun last edited by

                                  @thomas-braun

                                  OK, jetzt sieht es gut aus - vielen Dank...

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

                                    @baumert

                                    Zeig nochmal ein

                                    uptime -p
                                    sudo apt update
                                    
                                    Baumert 1 Reply Last reply Reply Quote 0
                                    • Baumert
                                      Baumert @Thomas Braun last edited by

                                      @thomas-braun

                                      uptime -p
                                      up 35 minutes
                                      
                                      sudo apt update
                                      OK:1 http://security.ubuntu.com/ubuntu focal-security InRelease
                                      OK:2 http://de.archive.ubuntu.com/ubuntu focal InRelease
                                      OK:3 https://repos.influxdata.com/debian stable InRelease
                                      OK:4 https://apt.grafana.com stable InRelease
                                      OK:5 http://de.archive.ubuntu.com/ubuntu focal-updates InRelease
                                      OK:6 https://deb.nodesource.com/node_18.x focal InRelease
                                      Paketlisten werden gelesen... Fertig
                                      Abhängigkeitsbaum wird aufgebaut.
                                      Statusinformationen werden eingelesen.... Fertig
                                      Alle Pakete sind aktuell.
                                      N: Das Laden der konfigurierten Datei »main/binary-i386/Packages« wird übersprungen, da das Depot »https://apt.grafana.com stable InRelease« die Architektur »i386« nicht unterstützt.
                                      
                                      Thomas Braun 1 Reply Last reply Reply Quote 0
                                      • Thomas Braun
                                        Thomas Braun Most Active last edited by Thomas Braun

                                        @baumert sagte in Update Node.js auf 14 klappt nicht:

                                        Das Laden der konfigurierten Datei »main/binary-i386/Packages« wird übersprungen, da das Depot...

                                        Da ist noch was krumm.

                                        dpkg -l | grep i386
                                        

                                        Jenachdem was da um's Eck kommt das Paket in der Fassung löschen.

                                        sudo apt remove *:i386
                                        sudo dpkg --remove-architecture i386
                                        
                                        Baumert 1 Reply Last reply Reply Quote 0
                                        • Thomas Braun
                                          Thomas Braun Most Active @Baumert last edited by Thomas Braun

                                          @baumert
                                          Wenn das mit der Löschung der Architektur nicht funktioniert editiere die
                                          /etc/apt/sources.list.d/grafana.list so:

                                          
                                          deb [signed-by=/usr/share/keyrings/grafana.key arch=amd64] https://apt.grafana.com stable main
                                          
                                          1 Reply Last reply Reply Quote 0
                                          • Baumert
                                            Baumert @Thomas Braun last edited by

                                            @thomas-braun

                                            super, jetzt sieht es sehr gut aus:

                                            sudo apt update
                                            OK:1 http://de.archive.ubuntu.com/ubuntu focal InRelease
                                            OK:2 https://apt.grafana.com stable InRelease
                                            OK:3 http://de.archive.ubuntu.com/ubuntu focal-updates InRelease
                                            OK:4 https://repos.influxdata.com/debian stable InRelease
                                            OK:5 https://deb.nodesource.com/node_18.x focal InRelease
                                            OK:6 http://security.ubuntu.com/ubuntu focal-security InRelease
                                            Paketlisten werden gelesen... Fertig
                                            Abhängigkeitsbaum wird aufgebaut.
                                            Statusinformationen werden eingelesen.... Fertig
                                            Alle Pakete sind aktuell.
                                            
                                            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

                                            573
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            2
                                            31
                                            1381
                                            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