Установка Node-RED на Wiren board 6 Release name wb-2204 Release suite stable

Добрый день, нужен совет. не-могу установить Node-RED по этому мануалу Установка Node-RED на контроллер Wiren Board — Wiren Board

root@wirenboard-AZYBSN6T:~# apt install -y nodejs git make g++ gcc build-essential 
Reading package lists... Done 
Building dependency tree 
Reading state information... Done 
build-essential is already the newest version (12.3). 
g++ is already the newest version (4:6.3.0-4). 
gcc is already the newest version (4:6.3.0-4). 
git is already the newest version (1:2.11.0-3+deb9u7). 
make is already the newest version (4.1-9.1). 
nodejs is already the newest version (4.8.2~dfsg-1). 
The following packages were automatically installed and are no longer required: 
  libjsoncpp1 libwbmqtt libwbmqtt0 libwbmqtt1 wb-homa-gpio wb-homa-w1 
Use 'apt autoremove' to remove them. 
0 upgraded, 0 newly installed, 0 to remove and 16 not upgraded. 
1 not fully installed or removed. 
After this operation, 0 B of additional disk space will be used. 
Setting up wb-configs-stretch (2.3.3) ... 
Cleaning up transitional APT settings 
Generating new APT preferences according to installed release info 
/var/lib/dpkg/info/wb-configs-stretch.postinst: line 340: wb-release: command not found 
dpkg: error processing package wb-configs-stretch (--configure): 
 subprocess installed post-installation script returned error exit status 127 
Errors were encountered while processing: 
 wb-configs-stretch 
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@wirenboard-AZYBSN6T:~# npm install -g --unsafe-perm node-red
-bash: npm: command not found

Добрый день. Покажите пожалуйста состояние пакета wb-configs-stretch
Что выводится при его установке ну и при штатном ```apt -f install?

root@wirenboard-AZYBSN6T:~# apt -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libjsoncpp1 libwbmqtt libwbmqtt0 libwbmqtt1 wb-homa-gpio wb-homa-w1
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 16 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up wb-configs-stretch (2.3.3) ...
Cleaning up transitional APT settings
Generating new APT preferences according to installed release info
/var/lib/dpkg/info/wb-configs-stretch.postinst: line 340: wb-release: command not found
dpkg: error processing package wb-configs-stretch (--configure):
 subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
 wb-configs-stretch
E: Sub-process /usr/bin/dpkg returned an error code (1)

состояние пакета wb-configs-stretch - (root@wirenboard-AZYBSN6T:~# wb-configs-stretch -bash: wb-configs-stretch: command not found )

Что apt policy wb-update-manager выдает?

Вы пытаетесь выполнить пакет?
Я имел в виду вывод apt policy wb-configs-stretch

root@wirenboard-AZYBSN6T:~# apt policy wb-configs-stretch
wb-configs-stretch:
  Installed: 2.3.3
  Candidate: 2.3.3
  Version table:
 *** 2.3.3 100
        100 /var/lib/dpkg/status

А это? Весьма похоже что не хватает пакета.

root@wirenboard-AZYBSN6T:~# apt policy wb-update-manager
N: Unable to locate package wb-update-manager

Так, а теперь вывод apt policy.
Есть ли “http://deb.wirenboard.com/”?
Если нет - то нудно обновить список пакетов и снова выполнить apt policy wb-update-manager

root@wirenboard-AZYBSN6T:~# apt policy
Package files:
 100 /var/lib/dpkg/status
     release a=now
 100 http://http.debian.net/debian stretch-backports/main armhf Packages
     release o=Debian Backports,a=stretch-backports,n=stretch-backports,l=Debian Backports,c=main,b=armhf
     origin http.debian.net
 500 http://security.debian.org stretch/updates/main armhf Packages
     release v=9,o=Debian,a=oldoldstable,n=stretch,l=Debian-Security,c=main,b=armhf
     origin security.debian.org
 500 http://deb.debian.org/debian stretch/main armhf Packages
     release v=9.13,o=Debian,a=oldoldstable,n=stretch,l=Debian,c=main,b=armhf
     origin deb.debian.org
Pinned packages:

```нету, сейчас попробую обновить и все сделать как вы указали

обновить список пакетов (apt-get update) или я неправильно ввожу эту команду ? или этой командой обновить и установить ? (apt update && apt upgrade)
если правильно то ничего не изменилось

root@wirenboard-AZYBSN6T:~#apt-get update
Ign:1 http://deb.debian.org/debian stretch InRelease
Get:2 http://security.debian.org stretch/updates InRelease [53.0 kB]
Hit:3 http://deb.debian.org/debian stretch-updates InRelease
Hit:5 http://deb.debian.org/debian stretch Release
Get:4 http://cdn-fastly.deb.debian.org/debian stretch-backports InRelease [91.8 kB]
Get:6 http://security.debian.org stretch/updates/main armhf Packages [746 kB]
Get:7 http://security.debian.org stretch/updates/main Translation-en [362 kB]
Fetched 1252 kB in 16s (76.5 kB/s)
Reading package lists... Done
root@wirenboard-AZYBSN6T:~# apt policy wb-update-manager
N: Unable to locate package wb-update-manager

Так, вообще интересно. А покажите вывод

cat /etc/apt/sources.list.d/wirenboard.list

Впечатление что процесс смены релиза прерван.

WinSCP не видит wirenboard.list

по этому адресу есть всего 3 файла
1 debian-upstream.list
2 nodesource.list
3 stretch-backports.list

Так…
Выполните:

echo "http://deb.wirenboard.com/wb6/stretch stable main" > /etc/apt/sources.list.d/wirenboard.list

И снова обновите пакеты.
Много ли места на разделах, свободного, было на момент обновления?
UPD: исправил строку

точно wb7 ?

Да, ошибся, нужно 6.

root@wirenboard-AZYBSN6T:~# apt-get update
Ign:1 http://deb.debian.org/debian stretch InRelease
Hit:2 http://deb.debian.org/debian stretch-updates InRelease
Hit:3 http://security.debian.org stretch/updates InRelease
Hit:5 http://deb.wirenboard.com/wb6/stretch testing InRelease
Hit:6 http://deb.debian.org/debian stretch Release
Hit:4 http://cdn-fastly.deb.debian.org/debian stretch-backports InRelease
Reading package lists... Done

Только сейчас “http://deb.wirenboard.com/wb6/stretch testing InRelease”
Можно на stable поменять. Но пакет wb-update-manager сейчас уже должен быть доступен.

root@wirenboard-AZYBSN6T:~# apt policy wb-update-manager
wb-update-manager:
  Installed: (none)
  Candidate: 1.2.5
  Version table:
     1.2.5 500
        500 http://deb.wirenboard.com/wb6/stretch testing/main armhf Packages
root@wirenboard-AZYBSN6T:~# apt install -y nodejs git make g++ gcc build-essential
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version (12.3).
g++ is already the newest version (4:6.3.0-4).
gcc is already the newest version (4:6.3.0-4).
git is already the newest version (1:2.11.0-3+deb9u7).
make is already the newest version (4.1-9.1).
The following packages were automatically installed and are no longer required:
  libjsoncpp1 libwbmqtt libwbmqtt0 libwbmqtt1 wb-homa-gpio wb-homa-w1
Use 'apt autoremove' to remove them.
The following packages will be upgraded:
  nodejs
1 upgraded, 0 newly installed, 0 to remove and 18 not upgraded.
2 not fully installed or removed.
Need to get 16.2 MB of archives.
After this operation, 73.9 MB of additional disk space will be used.
Get:1 http://deb.wirenboard.com/wb6/stretch testing/main armhf nodejs armhf 12.19.0-1nodesource1 [16.2 MB]
Fetched 16.2 MB in 9s (1656 kB/s)
(Reading database ... 30591 files and directories currently installed.)
Preparing to unpack .../nodejs_12.19.0-1nodesource1_armhf.deb ...
Unpacking nodejs (12.19.0-1nodesource1) over (4.8.2~dfsg-1) ...
Setting up nginx-extras (1.10.3-1+deb9u7) ...
Job for nginx.service failed because the control process exited with error code.
See "systemctl status nginx.service" and "journalctl -xe" for details.
invoke-rc.d: initscript nginx, action "start" failed.
● nginx.service - A high performance web server and a reverse proxy server
   Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Mon 2022-05-30 10:49:15 UTC; 194ms ago
     Docs: man:nginx(8)
  Process: 3040 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE)
 Main PID: 2808 (code=exited, status=0/SUCCESS)

May 30 10:49:14 wirenboard-AZYBSN6T systemd[1]: Starting A high performance web server and a reverse proxy server...
May 30 10:49:15 wirenboard-AZYBSN6T nginx[3040]: nginx: [emerg] unknown directive "upload_pass" in /etc/nginx/sites-enabled/default:42
May 30 10:49:15 wirenboard-AZYBSN6T nginx[3040]: nginx: configuration file /etc/nginx/nginx.conf test failed
May 30 10:49:15 wirenboard-AZYBSN6T systemd[1]: nginx.service: Control process exited, code=exited status=1
dpkg: error processing package nginx-extras (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up nodejs (12.19.0-1nodesource1) ...
Setting up wb-configs-stretch (2.3.3) ...
Cleaning up transitional APT settings
Generating new APT preferences according to installed release info
/var/lib/dpkg/info/wb-configs-stretch.postinst: line 340: wb-release: command not found
dpkg: error processing package wb-configs-stretch (--configure):
 subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
 nginx-extras
 wb-configs-stretch
E: Sub-process /usr/bin/dpkg returned an error code (1)

всеравно ругается . хотя уже меньше

Пакет wb-update-manager надо установить, все ж.

Огромное человеческое спасибо , вроде-бы все заработало )

1 лайк