Релиз wb-2108

::::::::::::::
/etc/apt/sources.list.d/debian-upstream.list
::::::::::::::
deb Index of /debian stretch main
deb Index of /debian stretch-updates main
deb http://security.debian.org stretch/updates main
::::::::::::::
/etc/apt/sources.list.d/nodesource.list
::::::::::::::
#uncomment to enable nodejs repo
#deb https://deb.nodesource.com/node_12.x stretch main
::::::::::::::
/etc/apt/sources.list.d/stretch-backports.list
::::::::::::::
deb http://http.debian.net/debian stretch-backports main

вашего репозитария нет, как понимаю

Да, как-то странно получилось. Если остались какие-нибудь логи того, что происходило в apt upgrade до этого, будет здорово, если поделитесь. Нет - не страшно.

Давайте сейчас вручную добавим нужный репозиторий.

В /etc/apt/sources.list.d/wirenboard.list (имя надо так и сохранить):

deb http://deb.wirenboard.com/wb5/stretch stable main

В /etc/apt/preferences.d надо удалить все файлы, в которых упоминается wirenboard, а потом добавить два файла:

10wb-pool:

Package: *
Pin: release o=wirenboard, a=pool
Pin-Priority: 10

20wb-release:

Package: *
Pin: release o=wirenboard, a=stable
Pin-Priority: 990

После этого делаем apt update && apt install wb-suite wb-update-manager, а потом wb-release -t stable

репозитарий видит, но ошибка такая же. wb-update-manager зависит от какого-то пакаджа, который зависит от wb-configs-stretch

root@wirenboard-ABAMCBRO:/bin# apt install wb-suite wb-update-manager
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following packages were automatically installed and are no longer required:
libssl1.0.0 python-cffi-backend python-chardet python-cryptography python-enum34 python-gspread python-httplib2 python-idna python-ipaddress python-oauth2client
python-openssl python-pkg-resources python-pyasn1 python-pyasn1-modules python-requests python-rsa python-setuptools python-uritemplate python-urllib3
Use ‘apt autoremove’ to remove them.
The following additional packages will be installed:
dh-python knxd knxd-tools libpython3-stdlib python-dateutil python-json-rpc python-mqttrpc python3 python3-serial python3-wb-mcu-fw-updater python3-wb-update-manager
wb-homa-ism-radio wb-knxd-config wb-mcu-fw-flasher wb-mcu-fw-updater wb-mqtt-db-cli wb-mqtt-knx wb-mqtt-mbgate
Suggested packages:
libdpkg-perl python3-doc python3-tk python3-venv python3-wxgtk3.0 | python3-wxgtk
The following packages will be REMOVED:
wb-homa-rfsniffer
The following NEW packages will be installed:
dh-python knxd knxd-tools libpython3-stdlib python-dateutil python-json-rpc python-mqttrpc python3 python3-serial python3-wb-mcu-fw-updater python3-wb-update-manager
wb-homa-ism-radio wb-knxd-config wb-mcu-fw-flasher wb-mcu-fw-updater wb-mqtt-db-cli wb-mqtt-knx wb-mqtt-mbgate wb-suite wb-update-manager
0 upgraded, 20 newly installed, 1 to remove and 5 not upgraded.
4 not fully installed or removed.
Need to get 769 kB of archives.
After this operation, 2961 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://deb.debian.org/debian stretch/main armel libpython3-stdlib armel 3.5.3-1 [18.6 kB]
Get:2 http://deb.debian.org/debian stretch/main armel dh-python all 2.20170125 [86.8 kB]
Get:3 http://deb.debian.org/debian stretch/main armel python3 armel 3.5.3-1 [21.6 kB]
Get:4 http://deb.debian.org/debian stretch/main armel python-dateutil all 2.5.3-2 [51.3 kB]
Get:5 http://deb.debian.org/debian stretch/main armel python3-serial all 3.2.1-1 [65.3 kB]
Get:6 http://deb.wirenboard.com/wb5/stretch stable/main armel knxd armel 0.14.51-1 [282 kB]
Get:7 http://deb.wirenboard.com/wb5/stretch stable/main armel wb-knxd-config armel 1.0.1 [4296 B]
Get:8 http://deb.wirenboard.com/wb5/stretch stable/main armel python3-wb-update-manager all 1.0.2 [5634 B]
Get:9 http://deb.wirenboard.com/wb5/stretch stable/main armel wb-update-manager all 1.0.2 [1400 B]
Get:10 http://deb.wirenboard.com/wb5/stretch stable/main armel python-json-rpc all 1.9.2.wb1 [21.7 kB]
Get:11 http://deb.wirenboard.com/wb5/stretch stable/main armel python-mqttrpc all 1.1.1 [7152 B]
Get:12 http://deb.wirenboard.com/wb5/stretch stable/main armel wb-mqtt-db-cli all 1.2.1 [3928 B]
Get:13 http://deb.wirenboard.com/wb5/stretch stable/main armel wb-mqtt-mbgate armel 0.1.4 [47.1 kB]
Get:14 http://deb.wirenboard.com/wb5/stretch stable/main armel knxd-tools armel 0.14.51-1 [48.6 kB]
Get:15 http://deb.wirenboard.com/wb5/stretch stable/main armel wb-mqtt-knx armel 0.1.2 [22.6 kB]
Get:16 http://deb.wirenboard.com/wb5/stretch stable/main armel wb-mcu-fw-flasher armel 1.0.7 [8024 B]
Get:17 http://deb.wirenboard.com/wb5/stretch stable/main armel python3-wb-mcu-fw-updater all 1.0.8 [38.5 kB]
Get:18 http://deb.wirenboard.com/wb5/stretch stable/main armel wb-mcu-fw-updater all 1.0.8 [4210 B]
Get:19 http://deb.wirenboard.com/wb5/stretch stable/main armel wb-homa-ism-radio all 1.17.3 [29.0 kB]
Get:20 http://deb.wirenboard.com/wb5/stretch stable/main armel wb-suite all 1.0 [1196 B]
Fetched 769 kB in 2s (376 kB/s)
Setting up wb-configs-stretch (2.1.0) …
*** OMINOUS WARNING ***: /etc/ssh/sshd_config is not linked to either sshd_config.wb or sshd_config.wb-orig
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 и wb-configs-stretch на версию из старого репозитория:

echo 'deb http://releases.contactless.ru/release-transitional stretch main' > /etc/apt/sources.list.d/release-transitional.list
apt update
apt install wb-configs=2.0~~transitional wb-configs-stretch=2.0~~transitional

и после этого ещё раз apt update && apt upgrade

WB5.3. Можно до бесконечность делать apt update & apt upgrade и всегда будет предлагать сделать доунгрейд 4-х пакетов. Можно это поправить?

root@wb:~# apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be DOWNGRADED:
  watchdog wb-mqtt-db wb-mqtt-mbgate wb-rules
0 upgraded, 0 newly installed, 4 downgraded, 0 to remove and 0 not upgraded.
Need to get 2565 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://deb.wirenboard.com/wb5/stretch testing/main armel wb-rules armel 1.7.1 [2393 kB]
Get:2 http://deb.wirenboard.com/wb5/stretch testing/main armel watchdog armel 5.15-1 [88.0 kB]
Get:3 http://deb.wirenboard.com/wb5/stretch testing/main armel wb-mqtt-db armel 1.7.3 [37.0 kB]
Get:4 http://deb.wirenboard.com/wb5/stretch testing/main armel wb-mqtt-mbgate armel 0.1.4 [47.1 kB]
Fetched 2565 kB in 4s (636 kB/s)
Preconfiguring packages ...
(Reading database ... 27402 files and directories currently installed.)
Preparing to unpack .../wb-rules_1.7.1_armel.deb ...
Unpacking wb-rules (1.7.1) over (1.7.1) ...
Setting up wb-rules (1.7.1) ...
(Reading database ... 27402 files and directories currently installed.)
Preparing to unpack .../watchdog_5.15-1_armel.deb ...
Unpacking watchdog (5.15-1) over (5.15-1) ...
Setting up watchdog (5.15-1) ...
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
(Reading database ... 27402 files and directories currently installed.)
Preparing to unpack .../wb-mqtt-db_1.7.3_armel.deb ...
Unpacking wb-mqtt-db (1.7.3) over (1.7.3) ...
Preparing to unpack .../wb-mqtt-mbgate_0.1.4_armel.deb ...
Unpacking wb-mqtt-mbgate (0.1.4) over (0.1.4) ...
Setting up wb-mqtt-mbgate (0.1.4) ...
Processing triggers for systemd (232-25+deb9u13) ...
Setting up wb-mqtt-db (1.7.3) ...

я бы попробовал один из них удалить-поставить. Например wb-mqtt-mbgate для теста. Но выглядит как сломанная база apt.

Увы, но удаление/установка не помогает.

добрый день снова. ничего не изменилось, wb-configs успешно установился из traditional, но после apt update && apt upgrade снова:

root@wirenboard-ABAMCBRO:/etc/apt/sources.list.d#apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  libopts25 libssl1.0.0 python-cffi-backend python-chardet python-cryptography python-enum34 python-gspread python-httplib2 python-idna python-ipaddress python-oauth2client
  python-openssl python-pkg-resources python-pyasn1 python-pyasn1-modules python-requests python-rsa python-setuptools python-uritemplate python-urllib3
Use 'apt autoremove' to remove them.
The following packages have been kept back:
  linux-image-wb2 wb-configs
The following packages will be upgraded:
  python-uritemplate wb-configs-stretch wb-mqtt-homeui wb-release-info
The following packages will be DOWNGRADED:
  can-utils hostapd libnfc-bin libnfc-examples libnfc-pn53x-examples libnfc5 ntp ntpdate
4 upgraded, 0 newly installed, 8 downgraded, 0 to remove and 2 not upgraded.
Need to get 1572 B/3357 kB of archives.
After this operation, 24.6 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://deb.wirenboard.com/wb5/stretch stable/main armel wb-release-info all 1.0-stable~wb5+stretch~20210903112322 [1572 B]
Fetched 1572 B in 0s (2215 B/s)
dpkg: warning: downgrading ntp from 1:4.2.8p10+dfsg-3+deb9u2 to 1:4.2.8p10+dfsg-3wb1
(Reading database ... 27761 files and directories currently installed.)
Preparing to unpack .../ntp_1%3a4.2.8p10+dfsg-3wb1_armel.deb ...
Unpacking ntp (1:4.2.8p10+dfsg-3wb1) over (1:4.2.8p10+dfsg-3+deb9u2) ...
dpkg: warning: downgrading ntpdate from 1:4.2.8p10+dfsg-3+deb9u2 to 1:4.2.8p10+dfsg-3wb1
Preparing to unpack .../ntpdate_1%3a4.2.8p10+dfsg-3wb1_armel.deb ...
Unpacking ntpdate (1:4.2.8p10+dfsg-3wb1) over (1:4.2.8p10+dfsg-3+deb9u2) ...
Preparing to unpack .../python-uritemplate_0.6-1_all.deb ...
Unpacking python-uritemplate (0.6-1) over (0.6-1) ...
Preparing to unpack .../wb-release-info_1.0-stable~wb5+stretch~20210903112322_all.deb ...
Unpacking wb-release-info (1.0-stable~wb5+stretch~20210903112322) over (1.0-stable~wb5+stretch~20210901170618) ...
Setting up wb-release-info (1.0-stable~wb5+stretch~20210903112322) ...
(Reading database ... 27760 files and directories currently installed.)
Preparing to unpack .../wb-configs-stretch_2.1.0_all.deb ...
Unpacking wb-configs-stretch (2.1.0) over (2.0~~transitional) ...
Setting up wb-configs-stretch (2.1.0) ...
*** OMINOUS WARNING ***: /etc/ssh/sshd_config is not linked to either sshd_config.wb or sshd_config.wb-orig
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)

вот вывод после
apt install wb-configs=2.0~~transitional wb-configs-stretch=2.0~~transitional

root@wirenboard-ABAMCBRO:~# apt install wb-configs=2.0~~transitional wb-configs-stretch=2.0~~transitional
Reading package lists... Done
Building dependency tree
Reading state information... Done
wb-configs is already the newest version (2.0~~transitional).
The following packages were automatically installed and are no longer required:
  libssl1.0.0 python-cffi-backend python-chardet python-cryptography python-enum34 python-gspread python-httplib2 python-idna python-ipaddress python-oauth2client
  python-openssl python-pkg-resources python-pyasn1 python-pyasn1-modules python-requests python-rsa python-setuptools python-uritemplate python-urllib3
Use 'apt autoremove' to remove them.
The following packages will be DOWNGRADED:
  wb-configs-stretch
0 upgraded, 0 newly installed, 1 downgraded, 0 to remove and 4 not upgraded.
4 not fully installed or removed.
Need to get 21.3 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://releases.contactless.ru/release-transitional stretch/main armel wb-configs-stretch all 2.0~~transitional [21.3 kB]
Fetched 21.3 kB in 1s (19.1 kB/s)
dpkg: warning: downgrading wb-configs-stretch from 2.1.0 to 2.0~~transitional
(Reading database ... 27761 files and directories currently installed.)
Preparing to unpack .../wb-configs-stretch_2.0~~transitional_all.deb ...
Unpacking wb-configs-stretch (2.0~~transitional) over (2.1.0) ...
Setting up wb-configs-stretch (2.0~~transitional) ...
*** OMINOUS WARNING ***: /etc/ssh/sshd_config is not linked to either sshd_config.wb or sshd_config.wb-orig
Creating transitional APT settings to switch to new repository
Target platform: wb5/stretch, release stable
Setting up ntp (1:4.2.8p10+dfsg-3+deb9u2) ...
Processing triggers for libc-bin (2.24-11+deb9u4) ...
Setting up ntpdate (1:4.2.8p10+dfsg-3+deb9u2) ...
Processing triggers for systemd (232-25+deb9u13) ...
Setting up python-uritemplate (0.6-1) ...

А что policy для пакета показывает?

Ага, оно написало, что не может обновить wb-configs. Попробуйте ещё раз откатить версии до transitional, а потом сделать apt update && apt dist-upgrade. И если оно скажет, что есть kept back пакеты, то не продолжайте, а пришлите сюда вывод.

Если правильно понял, то:

root@wb:~# apt policy wb-rules
wb-rules:
  Installed: 1.7.1
  Candidate: 1.7.1
  Version table:
     2.2.1 500
        500 http://releases.contactless.ru/experimental/stretch stretch/main armel Packages
     2.2 500
        500 http://releases.contactless.ru/experimental/stretch stretch/main armel Packages
     1.8 500
        500 http://releases.contactless.ru/experimental/stretch stretch/main armel Packages
 *** 1.7.1 500
        500 http://releases.contactless.ru/experimental/stretch stretch/main armel Packages
        100 /var/lib/dpkg/status
     1.7.1 990
        990 http://deb.wirenboard.com/wb5/stretch testing/main armel Packages
     1.7 500
        500 http://releases.contactless.ru/experimental/stretch stretch/main armel Packages
     1.6.9 500
        500 http://releases.contactless.ru/experimental/stretch stretch/main armel Packages
     1.6.8 500
        500 http://releases.contactless.ru/experimental/stretch stretch/main armel Packages

PS: Читал, что это может быть связано с тем, что MD5 sum не совпадает в описании пакета и содержимым deb.

Вам стоит убрать releases.contactless.ru/experimental из списка репозиториев, он заморожен и там могут быть подпорченные версии пакетов

1 Like

Keptback нет.

root@wirenboard-ABAMCBRO:/etc/apt/sources.list.d# apt update && apt dist-upgrade
Hit:1 http://security.debian.org stretch/updates InRelease
Ign:2 http://deb.debian.org/debian stretch InRelease
Hit:3 http://deb.debian.org/debian stretch-updates InRelease
Hit:4 http://releases.contactless.ru/release-transitional stretch InRelease
Get:5 http://deb.wirenboard.com/wb5/stretch stable InRelease [3957 B]
Hit:7 http://deb.debian.org/debian stretch Release
Get:6 http://cdn-fastly.deb.debian.org/debian stretch-backports InRelease [91.8 kB]
Get:8 http://deb.wirenboard.com/wb5/stretch stable/main armel Packages [35.7 kB]
Fetched 131 kB in 33s (3979 B/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
6 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  libopts25 libssl1.0.0 linux-firmware-image-4.9.22-wb2 python-cffi-backend python-chardet python-cryptography python-enum34 python-gspread python-httplib2 python-idna
  python-ipaddress python-oauth2client python-openssl python-pkg-resources python-pyasn1 python-pyasn1-modules python-requests python-rsa python-setuptools python-uritemplate
  python-urllib3
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
  linux-image-4.9.22-wb2 wb-homa-rfsniffer
The following NEW packages will be installed:
  dh-python figlet knxd knxd-tools libpython3-stdlib python-dateutil python-json-rpc python-mqttrpc python3 python3-serial python3-wb-mcu-fw-updater python3-wb-update-manager
  wb-homa-ism-radio wb-knxd-config wb-mcu-fw-flasher wb-mcu-fw-updater wb-mqtt-db-cli wb-mqtt-knx wb-mqtt-mbgate wb-suite wb-update-manager
The following packages will be upgraded:
  linux-image-wb2 python-uritemplate wb-configs wb-configs-stretch wb-mqtt-homeui wb-release-info
The following packages will be DOWNGRADED:
  can-utils hostapd libnfc-bin libnfc-examples libnfc-pn53x-examples libnfc5
6 upgraded, 21 newly installed, 6 downgraded, 2 to remove and 0 not upgraded.
Need to get 1574 B/13.6 MB of archives.
After this operation, 3396 kB of additional disk space will be used.
Do you want to continue? [Y/n]

и теперь сработало. странно, ведь до этого те же самые действия были.

Отлично. Ну разница, на самом деле, в dist-upgrade, у меня эта подробность тоже выпала из головы

первый раз тоже был dist-upgrade) спасибо за помощь. autoremove имеет смысл давать?

В принципе он ничего страшного удалять не хочет, так что думаю, что можно

2 сообщения были перенесены в новую тему: При записи команды длина “1”

ИК устройств нет, только кондиционер, MSW есть в комнате, но отключены от опроса.
Т.е. кондиционер WB-MIR и пульт.

Каким-то чудом записал 4 команды, причем как то сериями 2 + 2, каких-то обрядов не проводил, закономерности не выявил. Бьюсь уже 3 часа, все это выглядит очень странно.

Можно ли как то про диагностировать WB-MIR удаленно? Снимать не вариант нужно разбирать кондиционер.