Unsolved Moving MM GAv3 from rpi 3b 1GB to rpi4 4GB
-
@bugsounet said in Moving MM GAv3 from rpi 3b 1GB to rpi4 4GB:
sudo apt-get update && sudo apt-get install nodejs -y
Why everything is not working in my rpi???
jan@raspberrypi:~ $ sudo apt-get update && sudo apt-get install -y ca-certificates curl gnupg Stary:1 http://raspbian.raspberrypi.org/raspbian bullseye InRelease Stary:2 http://archive.raspberrypi.org/debian bullseye InRelease Stary:3 https://deb.nodesource.com/node_20.x nodistro InRelease Czytanie list pakietów... Gotowe Czytanie list pakietów... Gotowe Budowanie drzewa zależności... Gotowe Odczyt informacji o stanie... Gotowe ca-certificates is already the newest version (20210119). curl is already the newest version (7.74.0-1.3+deb11u11). gnupg is already the newest version (2.2.27-2+deb11u2). 0 aktualizowanych, 0 nowo instalowanych, 0 usuwanych i 1 nieaktualizowanych. jan@raspberrypi:~ $ curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg gpg: nie można utworzyć ,,/etc/apt/keyrings/nodesource.gpg'': Nie ma takiego pliku ani katalogu gpg: nie odnaleziono poprawnych danych w formacie OpenPGP. gpg: zdjęcie opakowania ASCII nie powiodło się: Nie ma takiego pliku ani katalogu (23) Failed writing body jan@raspberrypi:~ $ echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x nodistro main jan@raspberrypi:~ $ sudo apt-get update && sudo apt-get install nodejs -y Stary:1 http://raspbian.raspberrypi.org/raspbian bullseye InRelease Stary:2 http://archive.raspberrypi.org/debian bullseye InRelease Pobieranie:3 https://deb.nodesource.com/node_18.x nodistro InRelease [12,1 kB] Błąd:3 https://deb.nodesource.com/node_18.x nodistro InRelease Następujące podpisy nie mogły zostać zweryfikowane z powodu braku klucza publicznego: NO_PUBKEY 2F59B5F99B1BE0B4 Czytanie list pakietów... Gotowe W: Błąd GPG: https://deb.nodesource.com/node_18.x nodistro InRelease: Następujące podpisy nie mogły zostać zweryfikowane z powodu braku klucza publicznego: NO_PUBKEY 2F59B5F99B1BE0B4 E: The repository 'https://deb.nodesource.com/node_18.x nodistro InRelease' is not signed. 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. jan@raspberrypi:~ $
-
like i says everyday… All problem have solutions … If there is no solutions, there is no problem !
gpg: nie można utworzyć ,,/etc/apt/keyrings/nodesource.gpg'': Nie ma takiego pliku ani katalogu
can be translated in simple words… : my guys
etc/apt/keyrings
folder doesn’t exist so i can’t write my filecan you try this:
sudo mkdir /etc/apt/keyrings curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg sudo apt-get update && sudo apt-get install nodejs -y
tell me if better ?
-
It looks like it help with commands that you have wrote me earlier, but even that it looks that i have still 20.x node.js Im i right?
jan@raspberrypi:~ $ sudo mkdir /etc/apt/keyrings jan@raspberrypi:~ $ curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg jan@raspberrypi:~ $ sudo apt-get update && sudo apt-get install nodejs -y Stary:1 http://raspbian.raspberrypi.org/raspbian bullseye InRelease Stary:2 http://archive.raspberrypi.org/debian bullseye InRelease Pobieranie:3 https://deb.nodesource.com/node_18.x nodistro InRelease [12,1 kB] Pobieranie:4 https://deb.nodesource.com/node_18.x nodistro/main armhf Packages [6 656 B] Pobrano 6 656 B w 1s (5 422 B/s) Czytanie list pakietów... Gotowe Czytanie list pakietów... Gotowe Budowanie drzewa zależności... Gotowe Odczyt informacji o stanie... Gotowe nodejs is already the newest version (20.10.0-1nodesource1). 0 aktualizowanych, 0 nowo instalowanych, 0 usuwanych i 0 nieaktualizowanych. jan@raspberrypi:~ $
and my main error when instaling GA still occures.
jan@raspberrypi:~/MagicMirror/modules/MMM-GoogleAssistant $ npm install > MMM-GoogleAssistant@6.0.0 preinstall > installer/preinstall.sh -d 'pulseaudio nginx certbot python3 python-is-python3 python3-certbot-nginx make build-essential' Welcome to MMM-GoogleAssistant v6.0.0 No root checking... Checking MMM-GoogleAssistant: jan/jan Checking MagicMirror: jan/jan Checking OS... OS Detected: linux-gnueabihf (raspbian 11 aarch64) Checking all dependencies... All Dependencies needed are installed ! > MMM-GoogleAssistant@6.0.0 postinstall > installer/postinstall.sh -r -b -m Minify Main code... installer/postinstall.sh: linia 43: /usr/local/bin/node: Nie ma takiego pliku ani katalogu Minify Failed! npm ERR! code 255 npm ERR! path /home/jan/MagicMirror/modules/MMM-GoogleAssistant npm ERR! command failed npm ERR! command sh -c installer/postinstall.sh -r -b -m npm ERR! A complete log of this run can be found in: /home/jan/.npm/_logs/2024-01-11T18_59_01_873Z-debug-0.log jan@raspberrypi:~/MagicMirror/modules/MMM-GoogleAssistant $
-
ok, let’s try:
sudo apt-get remove nodejs --purge sudo apt-get install nodejs
and give content of
node -v
-
@bugsounet
what is goingon? hahaNie ma takiego pliku ani katalogu means there is no such folder
jan@raspberrypi:~ $ sudo apt-get remove nodejs --purge Czytanie list pakietów... Gotowe Budowanie drzewa zależności... Gotowe Odczyt informacji o stanie... Gotowe Następujące pakiety zostaną USUNIĘTE: nodejs* 0 aktualizowanych, 0 nowo instalowanych, 1 usuwanych i 0 nieaktualizowanych. Po tej operacji zostanie zwolnione 185 MB miejsca na dysku. Kontynuować? [T/n] t (Odczytywanie bazy danych ... 113158 plików i katalogów obecnie zainstalowanych.) Usuwanie pakietu nodejs (20.10.0-1nodesource1) ... Przetwarzanie wyzwalaczy pakietu man-db (2.9.4-2)... jan@raspberrypi:~ $ sudo apt-get install nodejs Czytanie list pakietów... Gotowe Budowanie drzewa zależności... Gotowe Odczyt informacji o stanie... Gotowe Zostaną zainstalowane następujące NOWE pakiety: nodejs 0 aktualizowanych, 1 nowo instalowanych, 0 usuwanych i 0 nieaktualizowanych. Konieczne pobranie 27,1 MB archiwów. Po tej operacji zostanie dodatkowo użyte 178 MB miejsca na dysku. Pobieranie:1 https://deb.nodesource.com/node_18.x nodistro/main armhf nodejs armhf 18.19.0-1nodesource1 [27,1 MB] Pobrano 27,1 MB w 4s (7 625 kB/s) Wybieranie wcześniej niewybranego pakietu nodejs. (Odczytywanie bazy danych ... 107655 plików i katalogów obecnie zainstalowanych.) Przygotowywanie do rozpakowania pakietu .../nodejs_18.19.0-1nodesource1_armhf.deb ... Rozpakowywanie pakietu nodejs (18.19.0-1nodesource1) ... Konfigurowanie pakietu nodejs (18.19.0-1nodesource1) ... Przetwarzanie wyzwalaczy pakietu man-db (2.9.4-2)... jan@raspberrypi:~ $ node -v bash: /usr/local/bin/node: Nie ma takiego pliku ani katalogu
-
ok
let’s try if node is in another Folder
/usr/bin/node -v
and if ok, we will make an link… And it’s will be solved
-
And as I am sure that will answer the version of node…
This is the magical final command:sudo ln -s /usr/bin/node /usr/local/bin/node
and now …
node -v
will repond :
v18.19.0
am I right ?
-
@bugsounet said in Moving MM GAv3 from rpi 3b 1GB to rpi4 4GB:
And as I am sure that will answer the version of node…
This is the magical final command:sudo ln -s /usr/bin/node /usr/local/bin/node
and now …
node -v
will repond :
v18.19.0
am I right ?
its kinda working but the answer is Folder exists and then, folder doesnt exist. Am i doing somethink wrong?
jan@raspberrypi:~ $ node -v bash: /usr/local/bin/node: Nie ma takiego pliku ani katalogu jan@raspberrypi:~ $ /usr/bin/node -v v18.19.0 jan@raspberrypi:~ $ sudo ln -s /usr/bin/node /usr/local/bin/node ln: nie udało się utworzyć dowiązania symbolicznego '/usr/local/bin/node': Plik istnieje (In: failed to create symbolic link '/usr/local/bin/node': File exists) jan@raspberrypi:~ $ node -v bash: /usr/local/bin/node: Nie ma takiego pliku ani katalogu (bash: /usr/local/bin/node: No such file or directory) jan@raspberrypi:~ $
-
In: failed to create symbolic link '/usr/local/bin/node': File exists
so let’s force it (with
f
option) and testsudo ln -fs /usr/bin/node /usr/local/bin/node node -v
-
It have worked, thanks a lot.