Problème sudo apt-get update
Problème sudo apt-get update
Ma configuration sur RPI III: Rasbian GNU/Linux 10 (buster), Release 10. Node v8.17.0 est installé.
La commande sudo apt-get update a toujours fonctionné jusqu'à hier. Mon dernier update datait de quelques mois. Actuellement l'update pose un problème que je ne comprends pas. La commande me donne les indications suivantes:
pi@raspberrypiWIFI:~ $ sudo apt-get update
Réception de:1 http://raspbian.raspberrypi.org/raspbian buster InRelease [15.0 kB]
Atteint:2 http://archive.raspberrypi.org/debian buster InRelease
Ign:3 https://deb.nodesource.com/node_8.x buster InRelease
Err:4 https://deb.nodesource.com/node_8.x buster Release
Le serveur http a envoyé une réponse dont l'en-tête est invalide
Lecture des listes de paquets... Fait
E: The repository 'https://deb.nodesource.com/node_8.x buster Release' does no longer have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
J'ai fait des recherches sur internet, mais je ne comprends pas ou est le problème. Il est souvent question du fichier /etc/apt/sources.list. Voici son contenu:
deb http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi
j'ai également un répertoire /etc/apt/sources.list.d avec 2 fichiers: raspi.list et nodesource.list. Voici leur contenu:
raspi.list:
deb http://archive.raspberrypi.org/debian/ buster main ui
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://archive.raspberrypi.org/debian/ buster main ui
nodesource.list
deb https://deb.nodesource.com/node_8.x buster main
deb-src https://deb.nodesource.com/node_8.x buster main
Est-ce que l'update a fonctionné en partie ? Est-ce que ce n'est que la mise à jour de node qui foire ? J'ai aucune idée de ce qui se passe.
D'avance un grand merci à qui pourrait m'aider à résoudre le problème.
ernst
La commande sudo apt-get update a toujours fonctionné jusqu'à hier. Mon dernier update datait de quelques mois. Actuellement l'update pose un problème que je ne comprends pas. La commande me donne les indications suivantes:
pi@raspberrypiWIFI:~ $ sudo apt-get update
Réception de:1 http://raspbian.raspberrypi.org/raspbian buster InRelease [15.0 kB]
Atteint:2 http://archive.raspberrypi.org/debian buster InRelease
Ign:3 https://deb.nodesource.com/node_8.x buster InRelease
Err:4 https://deb.nodesource.com/node_8.x buster Release
Le serveur http a envoyé une réponse dont l'en-tête est invalide
Lecture des listes de paquets... Fait
E: The repository 'https://deb.nodesource.com/node_8.x buster Release' does no longer have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
J'ai fait des recherches sur internet, mais je ne comprends pas ou est le problème. Il est souvent question du fichier /etc/apt/sources.list. Voici son contenu:
deb http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi
j'ai également un répertoire /etc/apt/sources.list.d avec 2 fichiers: raspi.list et nodesource.list. Voici leur contenu:
raspi.list:
deb http://archive.raspberrypi.org/debian/ buster main ui
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://archive.raspberrypi.org/debian/ buster main ui
nodesource.list
deb https://deb.nodesource.com/node_8.x buster main
deb-src https://deb.nodesource.com/node_8.x buster main
Est-ce que l'update a fonctionné en partie ? Est-ce que ce n'est que la mise à jour de node qui foire ? J'ai aucune idée de ce qui se passe.
D'avance un grand merci à qui pourrait m'aider à résoudre le problème.
ernst
Re: Problème sudo apt-get update
Bonjour
C'est ton dépôt nodesource qui pose problème.
On est rendu à la version 17 et tu es en version 8.
Pour corriger ça :
https://github.com/nodesource/distributions#debmanual
C'est ton dépôt nodesource qui pose problème.
On est rendu à la version 17 et tu es en version 8.
Pour corriger ça :
https://github.com/nodesource/distributions#debmanual
Re: Problème sudo apt-get update
Merci Neutrino pour ton aide. Puis-je encore demander un petit coup de pouce sur la procédure que j'envisage.
Donc je dois installer la dernière version de Nodejs.
Avant l'installation, je suppose que je dois supprimer ma version installée (quelle variante dois-je utiliser ?):
sudo apt remove nodejs
(When you execute that command, the Node.js package will be removed, but your configuration files will remain on your system. These configuration files may be of use to you later on if you decide to install Node.js again.)
ou
(If you don't want to keep the configuration files, you can remove them with this command):
sudo apt purge nodejs
Installation de la dernière version (selon https://github.com/nodesource/distributions#debmanual)
# Using Debian, as root
curl -fsSL https://deb.nodesource.com/setup_current.x | bash -
apt-get install -y nodejs
Je termine avec un reboot, update, upgrade et reboot.
Y a-t'il d'autres manipulations à faire ?
- qu'en est-il de npm ?
- faut-il modifier des fichier dans etc/apt/souces.list; sources.list.d ?
J'ai des programmes qui tournent sur nodejs. Je tiens à préserver au maximum ce qui marche bien!
Je galère vraiment pour tout ce qui touche à la gestion du système. Donc merci d'avance à qui voudra bien m'aider.
Donc je dois installer la dernière version de Nodejs.
Avant l'installation, je suppose que je dois supprimer ma version installée (quelle variante dois-je utiliser ?):
sudo apt remove nodejs
(When you execute that command, the Node.js package will be removed, but your configuration files will remain on your system. These configuration files may be of use to you later on if you decide to install Node.js again.)
ou
(If you don't want to keep the configuration files, you can remove them with this command):
sudo apt purge nodejs
Installation de la dernière version (selon https://github.com/nodesource/distributions#debmanual)
# Using Debian, as root
curl -fsSL https://deb.nodesource.com/setup_current.x | bash -
apt-get install -y nodejs
Je termine avec un reboot, update, upgrade et reboot.
Y a-t'il d'autres manipulations à faire ?
- qu'en est-il de npm ?
- faut-il modifier des fichier dans etc/apt/souces.list; sources.list.d ?
J'ai des programmes qui tournent sur nodejs. Je tiens à préserver au maximum ce qui marche bien!
Je galère vraiment pour tout ce qui touche à la gestion du système. Donc merci d'avance à qui voudra bien m'aider.
Re: Problème sudo apt-get update
Si tu veux couvrir tes arrières, fais une image de ta carte. Comme ça si tout se casse, tu peux repartir comme si de rien était.
Maintenant, il suffit simplement de suivre la procédure https://github.com/nodesource/distributions#debmanual
Paragraphe Manual Installation
ça enlève les anciens dépôts, ajoute les nouveaux et fait la MAJ.
Maintenant, il suffit simplement de suivre la procédure https://github.com/nodesource/distributions#debmanual
Paragraphe Manual Installation
ça enlève les anciens dépôts, ajoute les nouveaux et fait la MAJ.
Re: Problème sudo apt-get update
Merci Neutrino.
Pas évident à comprendre.. Je tape en command-line (bash) les lignes soulignées ci-dessous, une par une ? Décidément, on doit me prendre pour complétement nul!
KEYRING=/usr/share/keyrings/nodesource.gpg
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource.gpg.key | gpg --dearmor | sudo tee "$KEYRING" >/dev/null
# wget can also be used:
# wget --quiet -O - https://deb.nodesource.com/gpgkey/nodesource.gpg.key | gpg --dearmor | sudo tee "$KEYRING" >/dev/null
gpg --no-default-keyring --keyring "$KEYRING" --list-keys
The Key-id is: 9FD3B784BC1C6FC31A8A0A1C1655A0AB68576280
# Replace with the branch of Node.js or io.js you want to install: node_6.x, node_8.x, etc...
VERSION=node_8.x je remplace par: VERSION=node_17.x
# Replace with the keyring above, if different (qu'est-ce que ça veut dire: je remplace dans la ligne ci-dessous "/keyrings/" par la key-id 9FD3.. ci-dessus?)
KEYRING=/usr/share/keyrings/nodesource.gpg
# The below command will set this correctly, but if lsb_release isn't available, you can set it manually:
Que faut-il ajouter manualy ?
# - For Debian distributions: jessie, sid, etc...
# - For Ubuntu distributions: xenial, bionic, etc...
# - For Debian or Ubuntu derived distributions your best option is to use the codename corresponding to the upstream release your distribution is based off. This is an advanced scenario and unsupported if your distribution is not listed as supported per earlier in this README.
DISTRO="$(lsb_release -s -c)"
echo "deb [signed-by=$KEYRING] https://deb.nodesource.com/$VERSION $DISTRO main" | sudo tee /etc/apt/sources.list.d/nodesource.list
echo "deb-src [signed-by=$KEYRING] https://deb.nodesource.com/$VERSION $DISTRO main" | sudo tee -a /etc/apt/sources.list.d/nodesource.list
Pas évident à comprendre.. Je tape en command-line (bash) les lignes soulignées ci-dessous, une par une ? Décidément, on doit me prendre pour complétement nul!
KEYRING=/usr/share/keyrings/nodesource.gpg
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource.gpg.key | gpg --dearmor | sudo tee "$KEYRING" >/dev/null
# wget can also be used:
# wget --quiet -O - https://deb.nodesource.com/gpgkey/nodesource.gpg.key | gpg --dearmor | sudo tee "$KEYRING" >/dev/null
gpg --no-default-keyring --keyring "$KEYRING" --list-keys
The Key-id is: 9FD3B784BC1C6FC31A8A0A1C1655A0AB68576280
# Replace with the branch of Node.js or io.js you want to install: node_6.x, node_8.x, etc...
VERSION=node_8.x je remplace par: VERSION=node_17.x
# Replace with the keyring above, if different (qu'est-ce que ça veut dire: je remplace dans la ligne ci-dessous "/keyrings/" par la key-id 9FD3.. ci-dessus?)
KEYRING=/usr/share/keyrings/nodesource.gpg
# The below command will set this correctly, but if lsb_release isn't available, you can set it manually:
Que faut-il ajouter manualy ?
# - For Debian distributions: jessie, sid, etc...
# - For Ubuntu distributions: xenial, bionic, etc...
# - For Debian or Ubuntu derived distributions your best option is to use the codename corresponding to the upstream release your distribution is based off. This is an advanced scenario and unsupported if your distribution is not listed as supported per earlier in this README.
DISTRO="$(lsb_release -s -c)"
echo "deb [signed-by=$KEYRING] https://deb.nodesource.com/$VERSION $DISTRO main" | sudo tee /etc/apt/sources.list.d/nodesource.list
echo "deb-src [signed-by=$KEYRING] https://deb.nodesource.com/$VERSION $DISTRO main" | sudo tee -a /etc/apt/sources.list.d/nodesource.list
Re: Problème sudo apt-get update
On va tout reprendre.
En bash, une par une :
En bash, une par une :
Code : Tout sélectionner
sudo rm /etc/apt/sources.list.d/nodesource.list
sudo su
curl -fsSL https://deb.nodesource.com/setup_17.x | bash -
apt-get install -y nodejs
apt full-upgradeRe: Problème sudo apt-get update
Bonjour Neutrino,
J'ai fait en bash les manipulations recommandées en terminant avec un "full-upgrade". Mon problème: je n'arrive pas à lancer domoticz. J'ai les messages d'erreurs ci-dessous, notamment "Error: WebServer(HTTP) startup failed on address 0.0.0.0 with port: 8080: bind: Address already in use". Le sujet a déjà été traité précédemment par Vil1driver (25 mars 2020), mais ça n'a pas résolu mon problème. Ou est le problème ? Merci
pi@raspberrypiWIFI:~/domoticz $ sudo ./domoticz -www 8080 -sslwww 0
2021-11-11 12:41:46.577 Status: Domoticz V2020.2 (build 12393) (c)2012-2020 GizMoCuz
2021-11-11 12:41:46.577 Status: Build Hash: 46660897d-modified, Date: 2020-09-21 13:52:00
2021-11-11 12:41:46.577 Status: System: Raspberry Pi
2021-11-11 12:41:46.587 Status: Startup Path: /home/pi/domoticz/
2021-11-11 12:41:46.604 Sunrise: 07:29:00 SunSet: 17:00:00
2021-11-11 12:41:46.604 Day length: 09:30:00 Sun at south: 12:15:00
2021-11-11 12:41:46.604 Civil twilight start: 06:57:00 Civil twilight end: 17:33:00
2021-11-11 12:41:46.604 Nautical twilight start: 06:20:00 Nautical twilight end: 18:10:00
2021-11-11 12:41:46.604 Astronomical twilight start: 05:44:00 Astronomical twilight end: 18:46:00
2021-11-11 12:41:46.735 Status: PluginSystem: Started, Python version '3.7.3'.
2021-11-11 12:41:46.740 Active notification Subsystems: email, prowl (2/13)
2021-11-11 12:41:46.742 Error: WebServer(HTTP) startup failed on address 0.0.0.0 with port: 8080: bind: Address already in use
2021-11-11 12:41:46.742 Error: WebServer(HTTP) check if no other application is using port: 8080
2021-11-11 12:41:46.742 Error: No servers are configured. Hence mydomoticz will not be started either (if configured)
terminate called without an active exception
2021-11-11 12:41:46.743 Error: Domoticz(pid:5614, tid:5614('domoticz')) received fatal signal 6 (Aborted)
2021-11-11 12:41:46.743 Error: siginfo address=0x15ee, address=0xffffffff
2021-11-11 12:41:50.559 Error: Thread 1 (Thread 0x76f4b040 (LWP 5614)):
2021-11-11 12:41:50.560 Error: #0 __waitpid (options=0, stat_loc=0x7e98f970, pid=5622) at ../sysdeps/unix/sysv/linux/waitpid.c:30
2021-11-11 12:41:50.560 Error: #1 __waitpid (pid=5622, stat_loc=0x7e98f970, options=0) at ../sysdeps/unix/sysv/linux/waitpid.c:25
2021-11-11 12:41:50.560 Error: #2 0x002dbcdc in dumpstack_gdb(bool) ()
2021-11-11 12:41:50.560 Error: #3 0x002dc2a8 in signal_handler(int, siginfo_t*, void*) ()
2021-11-11 12:41:50.560 Error: #4 <signal handler called>
2021-11-11 12:41:50.560 Error: #5 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
2021-11-11 12:41:50.560 Error: #6 0x76972230 in __GI_abort () at abort.c:79
2021-11-11 12:41:50.560 Error: #7 0x009a1aa8 in __gnu_cxx::__verbose_terminate_handler() ()
2021-11-11 12:41:50.560 Error: #8 0x00904f44 in __cxxabiv1::__terminate(void (*)()) ()
2021-11-11 12:41:50.560 Error: #9 0x00904fb8 in std::terminate() ()
2021-11-11 12:41:50.560 Error: #10 0x001eaf44 in main ()
Abandon
J'ai fait en bash les manipulations recommandées en terminant avec un "full-upgrade". Mon problème: je n'arrive pas à lancer domoticz. J'ai les messages d'erreurs ci-dessous, notamment "Error: WebServer(HTTP) startup failed on address 0.0.0.0 with port: 8080: bind: Address already in use". Le sujet a déjà été traité précédemment par Vil1driver (25 mars 2020), mais ça n'a pas résolu mon problème. Ou est le problème ? Merci
pi@raspberrypiWIFI:~/domoticz $ sudo ./domoticz -www 8080 -sslwww 0
2021-11-11 12:41:46.577 Status: Domoticz V2020.2 (build 12393) (c)2012-2020 GizMoCuz
2021-11-11 12:41:46.577 Status: Build Hash: 46660897d-modified, Date: 2020-09-21 13:52:00
2021-11-11 12:41:46.577 Status: System: Raspberry Pi
2021-11-11 12:41:46.587 Status: Startup Path: /home/pi/domoticz/
2021-11-11 12:41:46.604 Sunrise: 07:29:00 SunSet: 17:00:00
2021-11-11 12:41:46.604 Day length: 09:30:00 Sun at south: 12:15:00
2021-11-11 12:41:46.604 Civil twilight start: 06:57:00 Civil twilight end: 17:33:00
2021-11-11 12:41:46.604 Nautical twilight start: 06:20:00 Nautical twilight end: 18:10:00
2021-11-11 12:41:46.604 Astronomical twilight start: 05:44:00 Astronomical twilight end: 18:46:00
2021-11-11 12:41:46.735 Status: PluginSystem: Started, Python version '3.7.3'.
2021-11-11 12:41:46.740 Active notification Subsystems: email, prowl (2/13)
2021-11-11 12:41:46.742 Error: WebServer(HTTP) startup failed on address 0.0.0.0 with port: 8080: bind: Address already in use
2021-11-11 12:41:46.742 Error: WebServer(HTTP) check if no other application is using port: 8080
2021-11-11 12:41:46.742 Error: No servers are configured. Hence mydomoticz will not be started either (if configured)
terminate called without an active exception
2021-11-11 12:41:46.743 Error: Domoticz(pid:5614, tid:5614('domoticz')) received fatal signal 6 (Aborted)
2021-11-11 12:41:46.743 Error: siginfo address=0x15ee, address=0xffffffff
2021-11-11 12:41:50.559 Error: Thread 1 (Thread 0x76f4b040 (LWP 5614)):
2021-11-11 12:41:50.560 Error: #0 __waitpid (options=0, stat_loc=0x7e98f970, pid=5622) at ../sysdeps/unix/sysv/linux/waitpid.c:30
2021-11-11 12:41:50.560 Error: #1 __waitpid (pid=5622, stat_loc=0x7e98f970, options=0) at ../sysdeps/unix/sysv/linux/waitpid.c:25
2021-11-11 12:41:50.560 Error: #2 0x002dbcdc in dumpstack_gdb(bool) ()
2021-11-11 12:41:50.560 Error: #3 0x002dc2a8 in signal_handler(int, siginfo_t*, void*) ()
2021-11-11 12:41:50.560 Error: #4 <signal handler called>
2021-11-11 12:41:50.560 Error: #5 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
2021-11-11 12:41:50.560 Error: #6 0x76972230 in __GI_abort () at abort.c:79
2021-11-11 12:41:50.560 Error: #7 0x009a1aa8 in __gnu_cxx::__verbose_terminate_handler() ()
2021-11-11 12:41:50.560 Error: #8 0x00904f44 in __cxxabiv1::__terminate(void (*)()) ()
2021-11-11 12:41:50.560 Error: #9 0x00904fb8 in std::terminate() ()
2021-11-11 12:41:50.560 Error: #10 0x001eaf44 in main ()
Abandon
Re: Problème sudo apt-get update
Ton port 8080 est déjà utilisé par autre chose.
Tu trouveras le coupable en tapant
Tu trouveras le coupable en tapant
Code : Tout sélectionner
sudo netstat -lntup |grep 8080Re: Problème sudo apt-get update
Merci Neutrino. Voilà ce que j'obtiens. Curieux occupé par domoticz ?
pi@raspberrypiWIFI:~/domoticz $ sudo netstat -lntup |grep 8080
tcp6 0 0 :::8080 :::* LISTEN 5540/domoticz
pi@raspberrypiWIFI:~/domoticz $ sudo netstat -lntup |grep 8080
tcp6 0 0 :::8080 :::* LISTEN 5540/domoticz
Re: Problème sudo apt-get update
Cela signifie que domoticz est déjà lancé, sans doute en tant que service.
Pour arrêter le service
Remplace stop par start pour relancer.
D'ailleurs, pourquoi tu le lances manuellement ?
Pour arrêter le service
Code : Tout sélectionner
sudo service domoticz stopD'ailleurs, pourquoi tu le lances manuellement ?