Bonjour,
J’essaye d’installer le plugin MailListener sur une Jeedom Smart 3.3.50 Debian GNU/Linux 9.4 (stretch)
J’ai bien compris qu’il y a un problème avec l’installation du nodejs
J’ai donc suivi le modop de @Antoinekl1 et par @Sli3H3llFiR3 sur l’ancien forum :
https://forum.jeedom.com/viewtopic.php?f=140&t=11354&sid=241d95d71c5a57a4c048f6a9700d063c&start=500
1- commenter la ligne « rm dependencies.sh » dans le nodejs.sh avec plugin JeeXplorer
2 - lancer l’installation des dépendances, ca permet de récupérer le dependencies.sh
3- commenter la ligne commençant par "wget https:.… dependencies.sh " dans le nodesj.sh avec plugin JeeXplorer
4 - dans le dependencies.sh vous remplacez le -y par --force-yes pour la partie nodejs avec plugin JeeXplorer
5 - lancer l’installation des dépendances
mais ça n’a pas fonctionné
Voici les log en debug:
Début de l'installation
dependencies.sh: 3: [: maillistener: unexpected operator
Nodejs non installé
Hit:1 http://www.deb-multimedia.org stretch InRelease
Get:2 http://security.debian.org stretch/updates InRelease [94.3 kB]
Ign:4 http://ftp.debian.org/debian stretch InRelease
Get:5 http://ftp.debian.org/debian stretch-updates InRelease [91.0 kB]
Get:6 http://ftp.debian.org/debian stretch-backports InRelease [91.8 kB]
Get:7 http://ftp.debian.org/debian stretch-proposed-updates InRelease [106 kB]
Hit:8 http://ftp.debian.org/debian stretch Release
Hit:9 https://deb.nodesource.com/node_12.x stretch InRelease
Get:3 https://repo.jeedom.com/odroid stable InRelease [1640 B]
Hit:10 https://oph.mdrjr.net/meveric all InRelease
Hit:11 https://oph.mdrjr.net/meveric stretch InRelease
Get:12 http://security.debian.org stretch/updates/main Sources [213 kB]
Get:13 http://security.debian.org stretch/updates/main arm64 Packages [509 kB]
Err:3 https://repo.jeedom.com/odroid stable InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F9EB92D05446446C
Fetched 1106 kB in 3s (343 kB/s)
Reading package lists...
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://repo.jeedom.com/odroid stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F9EB92D05446446C
W: Failed to fetch http://repo.jeedom.com/odroid/dists/stable/InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F9EB92D05446446C
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 (9.20161125).
0 upgraded, 0 newly installed, 0 to remove and 201 not upgraded.
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
Package 'nodejs' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 201 not upgraded.
dependencies.sh: 37: [: aarch64: unexpected operator
Utilisation du dépot officiel
## Installing the NodeSource Node.js 12.x repo...
## Populating apt-get cache...
+ apt-get update
Hit:1 http://security.debian.org stretch/updates InRelease
Hit:2 http://www.deb-multimedia.org stretch InRelease
Ign:4 http://ftp.debian.org/debian stretch InRelease
Hit:5 http://ftp.debian.org/debian stretch-updates InRelease
Hit:6 http://ftp.debian.org/debian stretch-backports InRelease
Hit:7 http://ftp.debian.org/debian stretch-proposed-updates InRelease
Hit:8 http://ftp.debian.org/debian stretch Release
Hit:9 https://deb.nodesource.com/node_12.x stretch InRelease
Get:3 https://repo.jeedom.com/odroid stable InRelease [1640 B]
Hit:10 https://oph.mdrjr.net/meveric all InRelease
Hit:11 https://oph.mdrjr.net/meveric stretch InRelease
Err:3 https://repo.jeedom.com/odroid stable InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F9EB92D05446446C
Fetched 1640 B in 3s (523 B/s)
Reading package lists...
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://repo.jeedom.com/odroid stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F9EB92D05446446C
W: Failed to fetch http://repo.jeedom.com/odroid/dists/stable/InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F9EB92D05446446C
W: Some index files failed to download. They have been ignored, or old ones used instead.
## Confirming "stretch" is supported...
+ curl -sLf -o /dev/null 'https://deb.nodesource.com/node_12.x/dists/stretch/Release'
## Adding the NodeSource signing key to your keyring...
+ curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add -
Warning: apt-key output should not be parsed (stdout is not a terminal)
OK
## Creating apt sources list file for the NodeSource Node.js 12.x repo...
+ echo 'deb https://deb.nodesource.com/node_12.x stretch main' > /etc/apt/sources.list.d/nodesource.list
+ echo 'deb-src https://deb.nodesource.com/node_12.x stretch main' >> /etc/apt/sources.list.d/nodesource.list
## Running `apt-get update` for you...
+ apt-get update
Hit:1 http://security.debian.org stretch/updates InRelease
Hit:2 http://www.deb-multimedia.org stretch InRelease
Ign:4 http://ftp.debian.org/debian stretch InRelease
Hit:5 http://ftp.debian.org/debian stretch-updates InRelease
Hit:6 http://ftp.debian.org/debian stretch-backports InRelease
Hit:7 http://ftp.debian.org/debian stretch-proposed-updates InRelease
Hit:8 http://ftp.debian.org/debian stretch Release
Hit:9 https://deb.nodesource.com/node_12.x stretch InRelease
Get:3 https://repo.jeedom.com/odroid stable InRelease [1640 B]
Hit:10 https://oph.mdrjr.net/meveric all InRelease
Hit:11 https://oph.mdrjr.net/meveric stretch InRelease
Err:3 https://repo.jeedom.com/odroid stable InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F9EB92D05446446C
Fetched 1640 B in 3s (522 B/s)
Reading package lists...
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://repo.jeedom.com/odroid stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F9EB92D05446446C
W: Failed to fetch http://repo.jeedom.com/odroid/dists/stable/InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F9EB92D05446446C
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 12.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 | sudo apt-key add -
echo "deb 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 201 not upgraded.
Need to get 12.0 MB of archives.
After this operation, 60.4 MB of additional disk space will be used.
Err:1 https://repo.jeedom.com/odroid stable/main arm64 nodejs arm64 8.9.4-1nodesource1
404 Not Found
E: Failed to fetch https://repo.jeedom.com/odroid/pool/main/n/nodejs/nodejs_8.9.4-1nodesource1_arm64.deb 404 Not Found
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
dependencies.sh: 1: dependencies.sh: nodejs: not found
Version actuelle :
dependencies.sh: 59: dependencies.sh: npm: not found
chown: cannot access 'node_modules': No such file or directory
Installation spécifique plugin
sed: can't read node_modules/mail-listener3/node_modules/mailparser/lib/mailparser.js: No such file or directory
Fin de l'installation
J’ai donc effectué la suite du modop (l’erreur me semble être la même)
Err:1 https://repo.jeedom.com/odroid stable/main arm64 nodejs arm64 8.9.4-1nodesource1
404 Not Found
E: Failed to fetch https://repo.jeedom.com/odroid/pool/main/n/nodejs/nodejs_8.9.4-1nodesource1_arm64.deb 404 Not Found
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Je suis donc passé en ssh en root pour faire un
cd /lib/apt/lists
Mais le dossier n’existe pas, je ne peux donc pas faire la suite
grep -r nodejs_8.9.4-1nodesource1_arm64.deb
la sortie sera du style
./lib/apt/lists/repo.jeedom.com_odroid_dists_stable_main_binary-arm64_._Packages:Filename: pool/main/n/nodejs/nodejs_5-1_arm64.deb
rm ./lib/apt/lists/repo.jeedom.com_odroid_dists_stable_main_binary-arm64_._Packages
Je ne sais pas trop comment faire pour corriger la situation.
Merci d’avance pour votre aide ,