Nach Update "node" - Adapter können nicht mehr gelöscht bzw. hinzugefügt werden!

  • Hallo,
    wollte "mal eben" als nicht Linux Spezialist "node" updaten (von Vers 10.24.1)


    ... danach


    Plattformlinux
    Betriebssystemlinux
    Architekturarm
    CPUs4Geschwindigkeit1500 MHz
    ModellARMv7 Processor rev 3 (v7l)
    RAM3.81 GBSystem-
    Betriebszeit
    2 T. 22:03:04
    Node.jsv16.14.0 (Empfohlene Version v14.19.0)
    time1646985480710
    timeOffset-60
    Anzahl der Adapter400
    NPM8.5.3
    Datenträgergröße58.25GB
    freier Festplattenspeicher22.7 GB


    PUTTY:

    nodejs - 12.22.10
    node - 16.14.0
    npm - 8.5.3


    alles läuft aber....
    der Versuch zusätzliche Adapter über Iobroker zu installieren endet immer mit code #25 (nicht möglich).

    Dann habe ich das Tool entdeckt (vielen Dank) und es laufen lassen:
    Reparatur/Upgrade #1 #2 #3 #4
    .... leider schlug auch das Zurückgraden auf node14 fehl (bleibt auf Vers. 16)

    Im Anhang des Debugfile.....
    Ich kann mit den Errormeldungen nicht viel anfangen.......


    Was ist falsch (ja ich weiss - ich habe Linux Defizite und das Upgrade auf node Vers. 16 war auch nich dolle)

    Was muss ich machen um wieder Adapter installieren zu können?

  • Teste mal

    Code
    1. iobroker stop
    2. sudo apt update -y && sudo apt upgrade -y
    3. sudo apt-get --purge remove nodejs -y
    4. sudo apt-get autoremove -y
    5. sudo curl -sL https://deb.nodesource.com/setup_14.x | sudo bash -
    6. sudo apt-get install -y nodejs
    7. iobroker start
  • Danke....

    Durchgeführt......
    leider keine Änderung.
    Vers 16. bleibt, Adapter hinzufügen nicht möglich (siehe LOG).

    LOG:

    Using username "pi".

    Linux raspberrypi 4.19.58-v7l+ #1245 SMP Fri Jul 12 17:31:45 BST 2019 armv7l


    The programs included with the Debian GNU/Linux system are free software;

    the exact distribution terms for each program are described in the

    individual files in /usr/share/doc/*/copyright.


    Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent

    permitted by applicable law.

    Last login: Fri Mar 11 08:43:23 2022 from 192.168.178.51

    pi@raspberrypi:~ $ iobroker stop

    pi@raspberrypi:~ $ sudo apt update -y && sudo apt upgrade -y

    Get:1 http://raspbian.raspberrypi.org/raspbian buster InRelease [15.0 kB]

    Get:2 http://archive.raspberrypi.org/debian buster InRelease [32.6 kB]

    Hit:3 https://deb.nodesource.com/node_12.x buster InRelease

    Hit:4 https://www.pivccu.de/piVCCU stable InRelease

    Get:5 http://archive.raspberrypi.org/debian buster/main armhf Packages [393 kB]

    Fetched 441 kB in 1s (399 kB/s)

    Reading package lists... Done

    Building dependency tree

    Reading state information... Done

    All packages are up to date.

    Reading package lists... Done

    Building dependency tree

    Reading state information... Done

    Calculating upgrade... Done

    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

    pi@raspberrypi:~ $ sudo apt-get --purge remove nodejs -y

    Reading package lists... Done

    Building dependency tree

    Reading state information... Done

    The following packages will be REMOVED:

    nodejs*

    0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.

    After this operation, 85.8 MB disk space will be freed.

    (Reading database ... 129703 files and directories currently installed.)

    Removing nodejs (12.22.10-deb-1nodesource1) ...

    dpkg: warning: while removing nodejs, directory '/usr/lib/node_modules' not empty so not removed

    Processing triggers for man-db (2.8.5-2) ...

    pi@raspberrypi:~ $ sudo apt-get autoremove -y

    Reading package lists... Done

    Building dependency tree

    Reading state information... Done

    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

    pi@raspberrypi:~ $ sudo curl -sL https://deb.nodesource.com/setup_14.x | sudo bash -


    ## Installing the NodeSource Node.js 14.x repo...



    ## Populating apt-get cache...


    + apt-get update

    Hit:1 http://archive.raspberrypi.org/debian buster InRelease

    Hit:2 http://raspbian.raspberrypi.org/raspbian buster InRelease

    Hit:3 https://deb.nodesource.com/node_12.x buster InRelease

    Hit:4 https://www.pivccu.de/piVCCU stable InRelease

    Reading package lists... Done


    ## Confirming "buster" is supported...


    + curl -sLf -o /dev/null 'https://deb.nodesource.com/node_14.x/dists/buster/Release'


    ## Adding the NodeSource signing key to your keyring...


    + curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | gpg --dearmor | tee /usr/share/keyrings/nodesource.gpg >/dev/null


    ## Creating apt sources list file for the NodeSource Node.js 14.x repo...


    + echo 'deb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_14.x buster main' > /etc/apt/sources.list.d/nodesource.list

    + echo 'deb-src [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_14.x buster main' >> /etc/apt/sources.list.d/nodesource.list


    ## Running `apt-get update` for you...


    + apt-get update

    Hit:1 http://archive.raspberrypi.org/debian buster InRelease

    Hit:2 http://raspbian.raspberrypi.org/raspbian buster InRelease

    Get:3 https://deb.nodesource.com/node_14.x buster InRelease [4,584 B]

    Hit:4 https://www.pivccu.de/piVCCU stable InRelease

    Get:5 https://deb.nodesource.com/node_14.x buster/main armhf Packages [782 B]

    Fetched 5,366 B in 1s (5,310 B/s)

    Reading package lists... Done


    ## Run `sudo apt-get install -y nodejs` to install Node.js 14.x and npm

    ## You may also need development tools to build native addons:

    sudo apt-get install gcc g++ make

    ## To install the Yarn package manager, run:

    curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | sudo tee /usr/share/keyrings/yarnkey.gpg >/dev/null

    echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" | sudo tee /etc/apt/sources.list.d/yarn.list

    sudo apt-get update && sudo apt-get install yarn



    pi@raspberrypi:~ $ sudo apt-get install -y nodejs

    Reading package lists... Done

    Building dependency tree

    Reading state information... Done

    The following NEW packages will be installed:

    nodejs

    0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.

    Need to get 23.3 MB of archives.

    After this operation, 117 MB of additional disk space will be used.

    Get:1 https://deb.nodesource.com/node_14.x buster/main armhf nodejs armhf 14.19.0-deb-1nodesource1 [23.3 MB]

    Fetched 23.3 MB in 2s (11.3 MB/s)

    Selecting previously unselected package nodejs.

    (Reading database ... 124839 files and directories currently installed.)

    Preparing to unpack .../nodejs_14.19.0-deb-1nodesource1_armhf.deb ...

    Unpacking nodejs (14.19.0-deb-1nodesource1) ...

    Setting up nodejs (14.19.0-deb-1nodesource1) ...

    Processing triggers for man-db (2.8.5-2) ...

    pi@raspberrypi:~ $ iobroker start

    pi@raspberrypi:~ $ node -v

    v16.14.0

    pi@raspberrypi:~ $ nodejs -v

    v14.19.0

  • Code
    1. sudo rm -rf /usr/local/bin/npm /usr/local/share/man/man1/node* /usr/local/lib/dtrace/node.d ~/.npm ~/.node-gyp /opt/local/bin/node /opt/local/include/node /opt/local/lib/node_modules
    2. sudo rm -rf /usr/local/lib/node*
    3. sudo rm -rf /usr/local/include/node*
    4. sudo rm -rf /usr/local/bin/node*

    am besten raspi neustarten. dann 3 und die 1 im tool

  • glaub, besser wäre, wie du das installiert hast... einfach die Befehle noch mal ausführen.. nur statt install, umschreiben in uninstall .. oder remove. eins von beiden funzt immer


    beispiel... sudo apt install node

    probieren...

    sudo apt uninstall node

    sudo apt remove node

  • Bin ein bisserl überfordert... =)
    .... hoffe ich verstehe Dich richtig - ich weiß wirklich nicht so richtig was ich da mache!

    Deshalb frage ich zur Sicherheit noch mal nach -- sorry

    also:

    1. iobroker stop
    2. sudo apt update -y && sudo apt upgrade -y
    3. sudo apt-get --purge remove nodejs -y
    4. sudo apt-get autoremove -y
    5. sudo curl -sL https://deb.nodesource.com/setup_14.x | sudo bash -
    6. sudo apt-get uninstall -y nodejs oder sudo apt-get remove -y nodejs
    7. NIX STARTEN (nodejs ist jetzt deinstalliert)

    dann mit dem Tool "3" Auswahl reparieren und die "1" installieren ???????

  • jetzt gucken ob bei node -v und nodejs -v nichts mehr angezeigt wird.


    danach


    Code
    1. iobroker stop
    2. sudo apt update -y && sudo apt upgrade -y
    3. sudo apt-get --purge remove nodejs -y
    4. sudo apt-get autoremove -y
    5. sudo curl -sL https://deb.nodesource.com/setup_14.x | sudo bash -
    6. sudo apt-get install -y nodejs
    7. iobroker start