ESPEasy impossible d'installer les dépendances (NOK)

Tags: #<Tag:0x00007f7539d70860>

Bonjour à tous,
Je suis sous Raspberry Pi 4 Model B rev 1.2
OS : Raspbian buster
Jeedom v4.0.61

J’essaye d’installer ESPEasy mais voilà que les dépendances ne veulent pas s’installer… Logs ci-dessous. Quelqu’un saurait identifier la source de mon problème ? :-/

Merci d’avance !
Dinoz

> Début de l'installation
> --2021-10-13 22:58:11--  https://raw.githubusercontent.com/lunarok/jeedom_nodejs/master/nodejs.sh
> Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.111.133, 185.199.110.133, 185.199.108.133, ...
> Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.111.133|:443... connected.
> HTTP request sent, awaiting response... 200 OK
> Length: 1552 (1.5K) [text/plain]
> Saving to: 'dependencies.sh'
> 
>      0K .                                                     100% 7.33M=0s
> 
> 2021-10-13 22:58:11 (7.33 MB/s) - 'dependencies.sh' saved [1552/1552]
> 
> dependencies.sh: 3: [: espeasy: unexpected operator
> Version actuelle : 10
> Hit:1 http://archive.raspberrypi.org/debian buster InRelease
> Get:2 http://raspbian.raspberrypi.org/raspbian buster InRelease [15.0 kB]
> Reading package lists...
> E: Repository 'http://raspbian.raspberrypi.org/raspbian buster InRelease' changed its 'Suite' value from 'stable' to 'oldstable'
> Reading package lists...
> Building dependency tree...
> Reading state information...
> lsb-release is already the newest version (10.2019051400+rpi1).
> 0 upgraded, 0 newly installed, 0 to remove and 191 not upgraded.
> dependencies.sh: 29: dependencies.sh: [[: not found
> KO, version obsolète à upgrader
> Suppression du Nodejs existant et installation du paquet recommandé
> Reading package lists...
> Building dependency tree...
> Reading state information...
> Package 'npm' is not installed, so not removed
> The following packages will be REMOVED:
>   libc-ares2* libnode64* libuv1* nodejs* nodejs-doc*
> 0 upgraded, 0 newly installed, 5 to remove and 191 not upgraded.
> After this operation, 27.7 MB disk space will be freed.
> (Reading database ... 
> (Reading database ... 5%
> (Reading database ... 10%
> (Reading database ... 15%
> (Reading database ... 20%
> (Reading database ... 25%
> (Reading database ... 30%
> (Reading database ... 35%
> (Reading database ... 40%
> (Reading database ... 45%
> (Reading database ... 50%
> (Reading database ... 55%
> (Reading database ... 60%
> (Reading database ... 65%
> (Reading database ... 70%
> (Reading database ... 75%
> (Reading database ... 80%
> (Reading database ... 85%
> (Reading database ... 90%
> (Reading database ... 95%
> (Reading database ... 100%
> (Reading database ... 66105 files and directories currently installed.)
> Removing nodejs (10.24.0~dfsg-1~deb10u1) ...
> Removing libnode64:armhf (10.24.0~dfsg-1~deb10u1) ...
> Removing libc-ares2:armhf (1.14.0-1+deb10u1) ...
> Removing libuv1:armhf (1.24.1-1+deb10u1) ...
> Removing nodejs-doc (10.24.0~dfsg-1~deb10u1) ...
> Processing triggers for man-db (2.8.5-2) ...
> Processing triggers for libc-bin (2.28-10+rpi1) ...
> dependencies.sh: 38: [: armv7l: unexpected operator
> Utilisation du dépot officiel
> 
> ## Installing the NodeSource Node.js 14.x repo...
> 
> 
> ## Populating apt-get cache...
> 
> + apt-get update
> Hit:1 http://archive.raspberrypi.org/debian buster InRelease
> Get:2 http://raspbian.raspberrypi.org/raspbian buster InRelease [15.0 kB]
> Reading package lists...
> E: Repository 'http://raspbian.raspberrypi.org/raspbian buster InRelease' changed its 'Suite' value from 'stable' to 'oldstable'
> Error executing command, exiting
> Reading package lists...
> Building dependency tree...
> Reading state information...
> The following additional packages will be installed:
>   libc-ares2 libnode64 libuv1 nodejs-doc
> Suggested packages:
>   npm
> The following NEW packages will be installed:
>   libc-ares2 libnode64 libuv1 nodejs nodejs-doc
> debconf: unable to initialize frontend: Dialog
> debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
> debconf: falling back to frontend: Readline
> debconf: unable to initialize frontend: Readline
> debconf: (This frontend requires a controlling tty.)
> debconf: falling back to frontend: Teletype
> dpkg-preconfigure: unable to re-open stdin: 
> 0 upgraded, 5 newly installed, 0 to remove and 191 not upgraded.
> Need to get 0 B/6099 kB of archives.
> After this operation, 27.7 MB of additional disk space will be used.
> Selecting previously unselected package libc-ares2:armhf.
> (Reading database ... 
> (Reading database ... 5%
> (Reading database ... 10%
> (Reading database ... 15%
> (Reading database ... 20%
> (Reading database ... 25%
> (Reading database ... 30%
> (Reading database ... 35%
> (Reading database ... 40%
> (Reading database ... 45%
> (Reading database ... 50%
> (Reading database ... 55%
> (Reading database ... 60%
> (Reading database ... 65%
> (Reading database ... 70%
> (Reading database ... 75%
> (Reading database ... 80%
> (Reading database ... 85%
> (Reading database ... 90%
> (Reading database ... 95%
> (Reading database ... 100%
> (Reading database ... 65960 files and directories currently installed.)
> Preparing to unpack .../libc-ares2_1.14.0-1+deb10u1_armhf.deb ...
> Unpacking libc-ares2:armhf (1.14.0-1+deb10u1) ...
> Selecting previously unselected package libuv1:armhf.
> Preparing to unpack .../libuv1_1.24.1-1+deb10u1_armhf.deb ...
> Unpacking libuv1:armhf (1.24.1-1+deb10u1) ...
> Selecting previously unselected package libnode64:armhf.
> Preparing to unpack .../libnode64_10.24.0~dfsg-1~deb10u1_armhf.deb ...
> Unpacking libnode64:armhf (10.24.0~dfsg-1~deb10u1) ...
> Selecting previously unselected package nodejs.
> Preparing to unpack .../nodejs_10.24.0~dfsg-1~deb10u1_armhf.deb ...
> Unpacking nodejs (10.24.0~dfsg-1~deb10u1) ...
> Selecting previously unselected package nodejs-doc.
> Preparing to unpack .../nodejs-doc_10.24.0~dfsg-1~deb10u1_all.deb ...
> Unpacking nodejs-doc (10.24.0~dfsg-1~deb10u1) ...
> Setting up libc-ares2:armhf (1.14.0-1+deb10u1) ...
> Setting up libuv1:armhf (1.24.1-1+deb10u1) ...
> Setting up libnode64:armhf (10.24.0~dfsg-1~deb10u1) ...
> Setting up nodejs-doc (10.24.0~dfsg-1~deb10u1) ...
> Setting up nodejs (10.24.0~dfsg-1~deb10u1) ...
> update-alternatives: using /usr/bin/nodejs to provide /usr/bin/js (js) in auto mode
> Processing triggers for libc-bin (2.28-10+rpi1) ...
> Processing triggers for man-db (2.8.5-2) ...
> ln: failed to create symbolic link '/usr/bin/nodejs': File exists
> Version actuelle : v10.24.0
> dependencies.sh: 61: dependencies.sh: npm: not found
> chown: cannot access 'node_modules': No such file or directory
> Fin de l'installation

Bonjour,

Sur ton compte utilisateur jeedom en ssh
essai cette commande

sudo ln -s `which node` `which node`js

puis relance les dépendances

3 J'aimes

Bonsoir iPapy, je ne comprends pas ce qu’il s’est passé, mais les dépendances sont désormais installées… Merci pour ton support ! :slight_smile:

Bonjour,

Tu as fait quoi pour que cela fonctionne au cas ou un autre utilisateur rencontrerait le même souci

Bonjour,
J’ai retenté une installation. Voici les logs :

Début de l'installation
--2021-10-15 02:05:02--  https://raw.githubusercontent.com/lunarok/jeedom_nodejs/master/nodejs.sh
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.110.133, 185.199.111.133, 185.199.108.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.110.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1552 (1.5K) [text/plain]
Saving to: ‘dependencies.sh’
0K .                                                     100% 2.21M=0.001s
2021-10-15 02:05:02 (2.21 MB/s) - ‘dependencies.sh’ saved [1552/1552]
dependencies.sh: 3: [: espeasy: unexpected operator
Version actuelle : 10
Hit:1 http://archive.raspberrypi.org/debian buster InRelease
Err:2 http://raspbian.raspberrypi.org/raspbian buster InRelease
Cannot initiate the connection to raspbian.raspberrypi.org:80 (2a00:1098:0:80:1000:75:0:3). - connect (101: Network is unreachable) Could not connect to raspbian.raspberrypi.org:80 (93.93.128.193), connection timed out
Reading package lists...
W: Failed to fetch http://raspbian.raspberrypi.org/raspbian/dists/buster/InRelease  Cannot initiate the connection to raspbian.raspberrypi.org:80 (2a00:1098:0:80:1000:75:0:3). - connect (101: Network is unreachable) Could not connect to raspbian.raspberrypi.org:80 (93.93.128.193), connection timed out
W: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists...
Building dependency tree...
Reading state information...
lsb-release is already the newest version (10.2019051400+rpi1).
0 upgraded, 0 newly installed, 0 to remove and 191 not upgraded.
dependencies.sh: 29: dependencies.sh: [[: not found
KO, version obsolète à upgrader
Suppression du Nodejs existant et installation du paquet recommandé
Reading package lists...
Building dependency tree...
Reading state information...
Package 'npm' is not installed, so not removed
The following packages will be REMOVED:
libc-ares2* libnode64* libuv1* nodejs* nodejs-doc*
0 upgraded, 0 newly installed, 5 to remove and 191 not upgraded.
After this operation, 27.7 MB disk space will be freed.
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 66105 files and directories currently installed.)
Removing nodejs (10.24.0~dfsg-1~deb10u1) ...
Removing libnode64:armhf (10.24.0~dfsg-1~deb10u1) ...
Removing libc-ares2:armhf (1.14.0-1+deb10u1) ...
Removing libuv1:armhf (1.24.1-1+deb10u1) ...
Removing nodejs-doc (10.24.0~dfsg-1~deb10u1) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for libc-bin (2.28-10+rpi1) ...
dependencies.sh: 38: [: armv7l: unexpected operator
Utilisation du dépot officiel
## Installing the NodeSource Node.js 14.x repo...
## Populating apt-get cache...
+ apt-get update
Hit:1 http://archive.raspberrypi.org/debian buster InRelease
Err:2 http://raspbian.raspberrypi.org/raspbian buster InRelease
Cannot initiate the connection to raspbian.raspberrypi.org:80 (2a00:1098:0:80:1000:75:0:3). - connect (101: Network is unreachable) Could not connect to raspbian.raspberrypi.org:80 (93.93.128.193), connection timed out [IP: 93.93.128.193 80]
Reading package lists...
W: Failed to fetch http://raspbian.raspberrypi.org/raspbian/dists/buster/InRelease  Cannot initiate the connection to raspbian.raspberrypi.org:80 (2a00:1098:0:80:1000:75:0:3). - connect (101: Network is unreachable) Could not connect to raspbian.raspberrypi.org:80 (93.93.128.193), connection timed out [IP: 93.93.128.193 80]
W: Some index files failed to download. They have been ignored, or old ones used instead.
## 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
Get:2 https://deb.nodesource.com/node_14.x buster InRelease [4,584 B]
Get:3 https://deb.nodesource.com/node_14.x buster/main armhf Packages [781 B]
Err:4 http://raspbian.raspberrypi.org/raspbian buster InRelease
Cannot initiate the connection to raspbian.raspberrypi.org:80 (2a00:1098:0:80:1000:75:0:3). - connect (101: Network is unreachable) Could not connect to raspbian.raspberrypi.org:80 (93.93.128.193), connection timed out
Fetched 5,365 B in 30s (177 B/s)
Reading package lists...
W: Failed to fetch http://raspbian.raspberrypi.org/raspbian/dists/buster/InRelease  Cannot initiate the connection to raspbian.raspberrypi.org:80 (2a00:1098:0:80:1000:75:0:3). - connect (101: Network is unreachable) Could not connect to raspbian.raspberrypi.org:80 (93.93.128.193), connection timed out
W: Some index files failed to download. They have been ignored, or old ones used instead.
## 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
Reading package lists...
Building dependency tree...
Reading state information...
The following NEW packages will be installed:
nodejs
0 upgraded, 1 newly installed, 0 to remove and 191 not upgraded.
Need to get 22.9 MB of archives.
After this operation, 116 MB of additional disk space will be used.
Get:1 https://deb.nodesource.com/node_14.x buster/main armhf nodejs armhf 14.18.1-deb-1nodesource1 [22.9 MB]
debconf: unable to initialize frontend: Dialog
debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
dpkg-preconfigure: unable to re-open stdin:
Fetched 22.9 MB in 2s (10.1 MB/s)
Selecting previously unselected package nodejs.
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 65960 files and directories currently installed.)
Preparing to unpack .../nodejs_14.18.1-deb-1nodesource1_armhf.deb ...
Unpacking nodejs (14.18.1-deb-1nodesource1) ...
Setting up nodejs (14.18.1-deb-1nodesource1) ...
Processing triggers for man-db (2.8.5-2) ...
Version actuelle : v14.18.1
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm notice created a lockfile as package-lock.json. You should commit this file.
added 48 packages from 58 contributors and audited 48 packages in 4.93s
2 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
Fin de l'installation

Merci pour ton aide en tout cas !

Je précise que les précédentes relances d’installation c’étaient toutes soldées par des échecs …

Ce sujet a été automatiquement fermé après 24 heures suivant le dernier commentaire. Aucune réponse n’est permise dorénavant.