Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Info Adapter rot nach Update

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Info Adapter rot nach Update

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

      @thomas-braun sagte in Info Adapter rot nach Update:

      iob nodejs-update 18

      das hats leider nicht gebracht:

      oBroker nodejs fixer 2023-10-13
      You requested to intall latest version from nodejs v18 tree.
      
      Your current setup is:
      /usr/bin/nodejs         v18.19.0
      /usr/bin/node           v18.19.0
      /home/iobroker/.nodejs-update.sh: line 130: npm: command not found
       
      /home/iobroker/.nodejs-update.sh: line 131: npx: command not found
       
      /home/iobroker/.nodejs-update.sh: line 147: npm: command not found
      /home/iobroker/.nodejs-update.sh: line 148: npx: command not found
      
      *** nodejs is NOT correctly installed ***
      We found these nodejs versions available for installation:
      
      nodejs:
        Installed: 18.19.0+dfsg-6~deb12u1
        Candidate: 18.19.0+dfsg-6~deb12u1
        Version table:
       *** 18.19.0+dfsg-6~deb12u1 500
              500 http://security.debian.org/debian-security bookworm-security/main amd64 Packages
              100 /var/lib/dpkg/status
           18.19.0-1nodesource1 500
              500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
           18.18.2-1nodesource1 500
              500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
           18.18.1-1nodesource1 500
              500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
           18.18.0-1nodesource1 500
              500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
           18.17.1-1nodesource1 500
              500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
           18.17.0-1nodesource1 500
              500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
           18.16.1-1nodesource1 500
              500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
           18.16.0-1nodesource1 500
              500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
           18.15.0-1nodesource1 500
              500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
           18.14.2-1nodesource1 500
              500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
           18.14.1-1nodesource1 500
              500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
           18.14.0-1nodesource1 500
              500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
           18.13.0+dfsg1-1 500
              500 http://deb.debian.org/debian bookworm/main amd64 Packages
           18.13.0-1nodesource1 500
              500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
           18.12.0-1nodesource1 500
              500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
           18.11.0-1nodesource1 500
              500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
           18.10.0-1nodesource1 500
              500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
           18.9.1-1nodesource1 500
              500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
           18.9.0-1nodesource1 500
              500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
           18.8.0-1nodesource1 500
              500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
           18.7.0-1nodesource1 500
              500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
           18.6.0-1nodesource1 500
              500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
           18.5.0-1nodesource1 500
              500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
           18.4.0-1nodesource1 500
              500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
           18.3.0-1nodesource1 500
              500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
           18.2.0-1nodesource1 500
              500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
           18.1.0-1nodesource1 500
              500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
           18.0.0-1nodesource1 500
              500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
      
      
      
      Your nodejs-Installation seems to be faulty. Shall we try to fix it?
      Press <y> to continue or any other key to quit
      
      Fixing your nodejs setup
      *** Deleting  ***
      rm: cannot remove '': No such file or directory
      *** Deleting  ***
      rm: cannot remove '': No such file or directory
      
      Wrong paths have been fixed. Run 'iob diag' or 'iob node-fix' again to check if your installation is fine now
      
      You are running nodejs v18.19.0. Do you want to install latest version from nodejs v.18 tree? 
      
      Press <y> to continue or any other key to quit
      Trying to update your installation now. Please be patient.
      
      Virtualization: lxc
      Waiting for ioBroker to shut down - Give me a minute...
      ############################################################
      
      *** These repos are active on your system:
      Hit:1 http://deb.debian.org/debian bookworm InRelease
      Hit:2 http://deb.debian.org/debian bookworm-updates InRelease    
      Get:3 http://security.debian.org/debian-security bookworm-security InRelease [48.0 kB]
      Get:4 http://security.debian.org/debian-security bookworm-security/main Sources [68.7 kB]
      Get:5 http://security.debian.org/debian-security bookworm-security/main amd64 Packages [132 kB]
      Get:6 http://security.debian.org/debian-security bookworm-security/main Translation-en [78.2 kB]
      Fetched 327 kB in 5s (60.8 kB/s)                                
      Reading package lists... Done
      
      *** Installing ca-certificates, curl and gnupg, just in case they are missing.
      
      *** Creating new /etc/apt/sources.list.d/nodesource.list and pinning source
      
      deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x nodistro main
      Package: nodejs
      Pin: origin deb.nodesource.com
      Pin-Priority: 1001
      
      *** These repos are active after the adjustments:
      Hit:1 http://deb.debian.org/debian bookworm InRelease                                                                  
      Hit:2 http://security.debian.org/debian-security bookworm-security InRelease                                           
      Hit:3 http://deb.debian.org/debian bookworm-updates InRelease                                                          
      Get:4 https://deb.nodesource.com/node_18.x nodistro InRelease [12.1 kB] 
      Get:5 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages [6634 B]
      Fetched 18.8 kB in 6s (3156 B/s)    
      Reading package lists... Done
      
      Installing the recommended nodejs version now!
      
      Installing the recommended nodejs version!
      E: Broken packages
      
      *** You need to manually restart your container/virtual machine now! *** 
      
      We tried our best to fix your nodejs. Please run 'iob diag' again to verify.
      

      ich habe danach den Container neu gestartet, info ist weiterhin rot und dieselben Fhlermeldungen im logfile

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

        @amg_666

        Das Repo ist nun aber richtig.

        sudo apt update
        apt policy nodejs
        
        amg_666 1 Reply Last reply Reply Quote 0
        • amg_666
          amg_666 @Thomas Braun last edited by

          @thomas-braun sagte in Info Adapter rot nach Update:

          apt policy nodejs

          andreas@iobroker:~$ sudo apt update
          [sudo] Passwort fr andreas: 
          OK:1 http://security.debian.org/debian-security bookworm-security InRelease                                               
          OK:2 http://deb.debian.org/debian bookworm InRelease                                                                      
          OK:3 https://deb.nodesource.com/node_18.x nodistro InRelease                                                  
          OK:4 http://deb.debian.org/debian bookworm-updates InRelease
          Paketlisten werden gelesen... Fertig
          Abhngigkeitsbaum wird aufgebaut... Fertig
          Statusinformationen werden eingelesen... Fertig
          Alle Pakete sind aktuell.
          andreas@iobroker:~$ apt policy nodejs
          nodejs:
            Installiert:           18.19.0+dfsg-6~deb12u1
            Installationskandidat: 18.19.0-1nodesource1
            Versionstabelle:
           *** 18.19.0+dfsg-6~deb12u1 500
                  500 http://security.debian.org/debian-security bookworm-security/main amd64 Packages
                  100 /var/lib/dpkg/status
               18.19.0-1nodesource1 1001
                  500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
               18.18.2-1nodesource1 1001
                  500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
               18.18.1-1nodesource1 1001
                  500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
               18.18.0-1nodesource1 1001
                  500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
               18.17.1-1nodesource1 1001
                  500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
               18.17.0-1nodesource1 1001
                  500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
               18.16.1-1nodesource1 1001
                  500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
               18.16.0-1nodesource1 1001
                  500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
               18.15.0-1nodesource1 1001
                  500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
               18.14.2-1nodesource1 1001
                  500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
               18.14.1-1nodesource1 1001
                  500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
               18.14.0-1nodesource1 1001
                  500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
               18.13.0+dfsg1-1 500
                  500 http://deb.debian.org/debian bookworm/main amd64 Packages
               18.13.0-1nodesource1 1001
                  500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
               18.12.0-1nodesource1 1001
                  500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
               18.11.0-1nodesource1 1001
                  500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
               18.10.0-1nodesource1 1001
                  500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
               18.9.1-1nodesource1 1001
                  500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
               18.9.0-1nodesource1 1001
                  500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
               18.8.0-1nodesource1 1001
                  500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
               18.7.0-1nodesource1 1001
                  500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
               18.6.0-1nodesource1 1001
                  500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
               18.5.0-1nodesource1 1001
                  500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
               18.4.0-1nodesource1 1001
                  500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
               18.3.0-1nodesource1 1001
                  500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
               18.2.0-1nodesource1 1001
                  500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
               18.1.0-1nodesource1 1001
                  500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
               18.0.0-1nodesource1 1001
                  500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
          andreas@iobroker:~$ 
          

          und jetzt ?

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

            @amg_666 sagte in Info Adapter rot nach Update:

            18.19.0-1nodesource1

            installieren:

            sudo apt install nodejs=18.19.0-1nodesource1
            
            1 Reply Last reply Reply Quote 0
            • amg_666
              amg_666 @Thomas Braun last edited by

              @thomas-braun sagte in Info Adapter rot nach Update:

              Damit wärst du der erste... Das geht nämlich nicht.

              Danke für die Hilfe, läuft jetzt wieder rund...
              Trotzdem ein (dumme?) Frage: Du hast im ersten Post geschrieben ich wäre da der erste. Ich hab iob wie gesagt als proxmox Container und gehe über proxmox regelmäßig auf die iob Konsole um auf updates zu prüfen. Gefühlt "schon ewig" mit diesen beiden Befehlen:

              sudo apt update
              sudo apt-get dist-upgrade
              

              Was ist daran falsch und wie mache ich es zukünftig richtig?

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

                @amg_666 sagte in Info Adapter rot nach Update:

                Was ist daran falsch und wie mache ich es zukünftig richtig?

                Das ist nicht falsch, updated aber nicht den iobroker sondern nur das Betriebssystem/Container.

                Ich würde allerdings da

                sudo apt 
                sudo apt full-upgrade
                

                empfehlen.

                Den ioBroker könnte man dann aber per

                iob update
                iob upgrade all
                

                aktuell halten.

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

                  @thomas-braun Alles klar, dann habe ich mich missverständlich ausgedrückt. Über die Konsole halte ich natürlich nur den iob Container up-to-date. iobroker updates mache ich eigentlcih immer über die admin oberfläche.
                  Nochmals danke für den support.

                  1 Reply Last reply Reply Quote 0
                  • Agrippinenser
                    Agrippinenser last edited by

                    @amg_666 sagte in Info Adapter rot nach Update:

                    Du hast im ersten Post geschrieben ich wäre da der erste

                    sorry das ich hier so reinplatze. Ich habe heute morgen nach Update der VM mit

                    sudo apt update
                    sudo apt-get dist-upgrade
                    

                    gleiches Verhalten gehabt und bin dankbar hier die Lösung gefunden habe. !

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

                      @agrippinenser @amg_666
                      Stellt die Priority für das nodesource-Repo höher.
                      Geht so:

                      echo "Package: nodejs" | sudo tee /etc/apt/preferences.d/nodejs.pref
                      echo "Pin: origin deb.nodesource.com" | sudo tee -a /etc/apt/preferences.d/nodejs.pref
                      echo "Pin-Priority: 1001" | sudo tee -a /etc/apt/preferences.d/nodejs.pref
                      sudo apt update
                      
                      Agrippinenser 1 Reply Last reply Reply Quote 0
                      • Agrippinenser
                        Agrippinenser @Thomas Braun last edited by

                        @thomas-braun sagte in Info Adapter rot nach Update:

                        /etc/apt/preferences.d/nodejs.pref

                        habe da vorher mal reingeguckt - das steht darin:

                        Package: nodejs
                        Pin: origin deb.nodesource.com
                        Pin-Priority: 1001
                        

                        Pin-Priority ist demnach schon 1001. Soll ich die 4 Zeilen dennoch ausführen?

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

                          @agrippinenser

                          Dann dürftest du dir aber nicht die dfsg-Version eingehandelt haben.

                          sudo apt update
                          apt policy nodejs
                          

                          sagt auf deinem System?

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

                            @agrippinenser

                            Ich sehe gerade, du hantierst da mit apt-get...
                            Das würde ich nicht machen, das tickt anders und berücksichtigt die gesetzten priorities nicht, soweit ich weiß.

                            Besser:

                            sudo apt update
                            sudo apt full-upgrade
                            
                            Agrippinenser 1 Reply Last reply Reply Quote 0
                            • Agrippinenser
                              Agrippinenser @Thomas Braun last edited by

                              @thomas-braun sagte in Info Adapter rot nach Update:

                              Besser:
                              sudo apt update sudo apt full-upgrade

                              unter uns 🙂 - ich habe eine PIN-Wand vor mir. Daran klebt ein Zettel mit Inhalt:

                              sudo apt update
                              sudo full-upgrade
                              sudo reboot
                              

                              heute Morgen habe ich folgendes im Werkzeugkasten gelesen und daraufhin "blind" sudo apt dist-upgrade ausgeführt.

                              Systemupdate
                              Seinen Debian-basierten Server (dazu gehört z. B. auch das Raspberry OS vom Raspberry Pi, Ubuntu, Armbian) aktuell und 'auf Stand' zu halten braucht es nur wenig Handwerkszeug. Die installierte Software (im Idealfall auch zusätzliche Pakete von Drittanbietern wie deconz, nodeJS von nodesource) wird sehr komfortabel und zentral über den Paketmanager gehandhabt.
                              
                              Mit diesem 'Dreisatz' wird automatisch ein System inkl. aller über den Paketmanager installierten Software auf den aktuellen Stand gebracht:
                              
                              sudo apt update
                              sudo apt dist-upgrade
                              sudo reboot
                              Das sollte man regelmäßig so ein oder zweimal im Monat machen. So bleiben die Upgrades übersichtlich und Sicherheitslücken werden einigermaßen zeitnah gestopft. Generell gilt: Je häufiger ich das mache desto weniger Trouble gibt es. 'Never change a running system' ist grundfalsch.
                              

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

                                @agrippinenser sagte in Info Adapter rot nach Update:

                                @amg_666 sagte in Info Adapter rot nach Update:

                                Du hast im ersten Post geschrieben ich wäre da der erste

                                sorry das ich hier so reinplatze. Ich habe heute morgen nach Update der VM mit

                                sudo apt update
                                sudo apt-get dist-upgrade
                                

                                gleiches Verhalten gehabt und bin dankbar hier die Lösung gefunden habe. !

                                Da schreibst du was von apt-get.

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

                                  @thomas-braun sagte in Info Adapter rot nach Update:

                                  .. schreibst du was von apt-get.

                                  sorry, nach Rechercheversuchen sitze ich gerade ratlos in meinem Sessel. In der Regel nutze ich bei Updates "Copy/Paste" kann aber nicht mehr richtig nachvollziehen, wie "apt-get" in den Tastaturspeicher kam.

                                  Ich bin glücklich das alles wieder läuft wie es soll und möchte nur Fehler beim zukünftigen Upgrades nicht wiederholen.

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

                                    @agrippinenser

                                    Das ist ja auch kein Fehler, weil apt bzw apt-get genau das richtige gemäß deren Konfiguration getan haben: Die aktuellste Version nach Priorität eingespielt.

                                    1 Reply Last reply Reply Quote 0
                                    • amg_666
                                      amg_666 @Agrippinenser last edited by

                                      @agrippinenser ich glaube du musst deinen Pinwand-Zettel korrigieren 🙂
                                      sudo full-upgrade führt bei mir zur Fehlermeldung Befehl nicht gefunden.
                                      Ich bleibe bei

                                      sudo apt full-upgrade
                                      

                                      🙂

                                      Agrippinenser 1 Reply Last reply Reply Quote 0
                                      • Agrippinenser
                                        Agrippinenser @amg_666 last edited by

                                        @amg_666 sagte in Info Adapter rot nach Update:

                                        sudo full-upgrade

                                        hast recht - hier klebt laut und deutlich apt full-upgrade an der Pinwand 🙂

                                        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

                                        884
                                        Online

                                        31.6k
                                        Users

                                        79.5k
                                        Topics

                                        1.3m
                                        Posts

                                        npm info
                                        3
                                        20
                                        1675
                                        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