Ошибки команды apt update

Не могу обновить контроллер. Сеть есть.

вывод apt update

root@wirenboard-A7UPLRBU:/etc# apt update
Get:1 Index of /debian-security bullseye-security InRelease [27.2 kB]
Get:2 Index of /debian bullseye InRelease [116 kB]
Err:1 Index of /debian-security bullseye-security InRelease
Splitting up /var/lib/apt/lists/partial/security.debian.org_debian-security_dists_bullseye-security_InRelease into data and signature failed
Err:2 Index of /debian bullseye InRelease
Splitting up /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bullseye_InRelease into data and signature failed
Get:3 Index of /debian bullseye-updates InRelease [44.1 kB]
Err:3 Index of /debian bullseye-updates InRelease
Splitting up /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bullseye-updates_InRelease into data and signature failed
Get:4 http://deb.wirenboard.com/wb7/bullseye stable InRelease [3940 B]
Err:4 http://deb.wirenboard.com/wb7/bullseye stable InRelease
Splitting up /var/lib/apt/lists/partial/deb.wirenboard.com_wb7_bullseye_dists_stable_InRelease into data and signature failed
Get:5 Index of /debian bullseye-backports InRelease [49.0 kB]
Err:5 Index of /debian bullseye-backports InRelease
Splitting up /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bullseye-backports_InRelease into data and signature failed
Hit:6 https://deb.nodesource.com/node_16.x bullseye InRelease
Err:6 https://deb.nodesource.com/node_16.x bullseye InRelease
Splitting up /var/lib/apt/lists/deb.nodesource.com_node%5f16.x_dists_bullseye_InRelease into data and signature failed
Fetched 3940 B in 1s (6491 B/s)
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
All packages are up to date.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: Index of /debian-security bullseye-security InRelease: Splitting up /var/lib/apt/lists/partial/security.debian.org_debian-security_dists_bullseye-security_InRelease into data and signature failed
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: Index of /debian bullseye InRelease: Splitting up /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bullseye_InRelease into data and signature failed
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: Index of /debian bullseye-updates InRelease: Splitting up /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bullseye-updates_InRelease into data and signature failed
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://deb.wirenboard.com/wb7/bullseye stable InRelease: Splitting up /var/lib/apt/lists/partial/deb.wirenboard.com_wb7_bullseye_dists_stable_InRelease into data and signature failed
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: Index of /debian bullseye-backports InRelease: Splitting up /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bullseye-backports_InRelease into data and signature failed
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://deb.nodesource.com/node_16.x bullseye InRelease: Splitting up /var/lib/apt/lists/deb.nodesource.com_node%5f16.x_dists_bullseye_InRelease into data and signature failed
W: Failed to fetch http://deb.debian.org/debian/dists/bullseye/InRelease Splitting up /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bullseye_InRelease into data and signature failed
W: Failed to fetch http://deb.debian.org/debian/dists/bullseye-updates/InRelease Splitting up /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bullseye-updates_InRelease into data and signature failed
W: Failed to fetch http://deb.debian.org/debian/dists/bullseye-backports/InRelease Splitting up /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bullseye-backports_InRelease into data and signature failed
W: Failed to fetch http://security.debian.org/debian-security/dists/bullseye-security/InRelease Splitting up /var/lib/apt/lists/partial/security.debian.org_debian-security_dists_bullseye-security_InRelease into data and signature failed
W: Failed to fetch https://deb.nodesource.com/node_16.x/dists/bullseye/InRelease Splitting up /var/lib/apt/lists/deb.nodesource.com_node%5f16.x_dists_bullseye_InRelease into data and signature failed
W: Failed to fetch http://deb.wirenboard.com/wb7/bullseye/dists/stable/InRelease Splitting up /var/lib/apt/lists/partial/deb.wirenboard.com_wb7_bullseye_dists_stable_InRelease into data and signature failed
W: Some index files failed to download. They have been ignored, or old ones used instead.

вывод cat /etc/*-release

root@wirenboard-A7UPLRBU:/etc# cat /etc/*-release
PRETTY_NAME=“Debian GNU/Linux 11 (bullseye)”
NAME=“Debian GNU/Linux”
VERSION_ID=“11”
VERSION=“11 (bullseye)”
VERSION_CODENAME=bullseye
ID=debian
HOME_URL=“https://www.debian.org/
SUPPORT_URL=“Debian -- User Support
BUG_REPORT_URL=“https://bugs.debian.org/
RELEASE_NAME=wb-2307
SUITE=stable
TARGET=wb7/bullseye

информация при входе

Welcome to Wiren Board 7.3.4 (s/n A7UPLRBU), release wb-2307 (as stable)
Linux wirenboard-A7UPLRBU 5.10.35-wb142+wb101 #1 SMP Wed Sep 20 11:41:50 UTC 2023 armv7l GNU/Linux

System load: 2.55 1.78 1.47 Up time: 2:02
Memory usage: 17% of 1.96G Usage of /: 100% of 976M /mnt/data: 5% of 55G

А дата-время правильные на этом хосте?

да.
root@wirenboard-A7UPLRBU:~# date
Wed Dec 25 23:34:36 MSK 2024

Вот тут похожее было

Из стороннего только node-red стоит. Ставил по этой инструкции.
Вопрос обновления встал пару дней назад - купил пару zigbee устройств (aqara H2), и они некорректно подтянулись в WB. Предположил, что это из-за старой версии zigbee2mqtt (на сайте устройства в списке поддерживаемых есть). Но обновить не удалось.
Сбрасывать контроллер, по мне слишком кардинальное решение. Должен быть способ менее трудозатратный.

А место в корне проверили, достаточно?

Добрый день!

Для диагностики проблемы, пожалуйста, пришлите архив с диагностической информацией контроллера. Подробное описание создания архива вы найдёте в документации.

Также выполните диагностику подключения к интернету:

  1. Проверьте доступ к интернету, выполнив команду:
ping google.com

и отдельно проверьте пинг до IP-адреса:

ping 8.8.8.8
  1. Если пинг отсутствует:
  • Убедитесь, что настроены корректные DNS-серверы. Рекомендуется указать публичные, например 8.8.8.8 и 1.1.1.1.
  • Попробуйте очистить кеш командой:
apt clean

Сообщите результаты проверки для дальнейшей помощи!

Memory usage: 17% of 1.96G Usage of /: 100% of 976M /mnt/data: 5% of 55G

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

1 лайк
ping google.com

PING google.com (142.250.179.78) 56(84) bytes of data.
64 bytes from par21s19-in-f14.1e100.net (142.250.179.78): icmp_seq=1 ttl=111 time=52.1 ms
64 bytes from par21s19-in-f14.1e100.net (142.250.179.78): icmp_seq=2 ttl=111 time=52.0 ms
64 bytes from par21s19-in-f14.1e100.net (142.250.179.78): icmp_seq=3 ttl=111 time=52.1 ms
64 bytes from par21s19-in-f14.1e100.net (142.250.179.78): icmp_seq=4 ttl=111 time=51.9 ms
^C
google.com ping statistics —
5 packets transmitted, 4 received, 20% packet loss, time 4007ms
rtt min/avg/max/mdev = 51.911/52.021/52.071/0.064 ms

ping 8.8.8.8, 1.1.1.1

PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=105 time=24.4 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=105 time=24.3 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=105 time=24.2 ms
64 bytes from 8.8.8.8: icmp_seq=4 ttl=105 time=24.5 ms
^C
— 8.8.8.8 ping statistics —
4 packets transmitted, 4 received, 0% packet loss, time 3003ms
rtt min/avg/max/mdev = 24.159/24.335/24.527/0.136 ms
root@wirenboard-A7UPLRBU:~# ping 1.1.1.1
PING 1.1.1.1 (1.1.1.1) 56(84) bytes of data.
64 bytes from 1.1.1.1: icmp_seq=1 ttl=58 time=15.1 ms
64 bytes from 1.1.1.1: icmp_seq=2 ttl=58 time=14.8 ms
64 bytes from 1.1.1.1: icmp_seq=3 ttl=58 time=15.3 ms
64 bytes from 1.1.1.1: icmp_seq=4 ttl=58 time=15.0 ms
64 bytes from 1.1.1.1: icmp_seq=5 ttl=58 time=14.5 ms
^C
— 1.1.1.1 ping statistics —
5 packets transmitted, 5 received, 0% packet loss, time 4005ms
rtt min/avg/max/mdev = 14.470/14.934/15.340/0.287 ms

Архив с диагностической информацией:

приложен диагностический архив, доступен только сотрудникам поддержки
(116,4 КБ)

Выход - сброс до заводских?

Отнюдь, просто освободите место в корневом разделе.

Добрый день!

Сброс настроек — это крайняя мера. Как уже упоминалось ранее, попробуйте сначала освободить место на разделе. После этого система должна начать работать корректно.

  1. Перенести node_modules, этого достаточно будет?

root@wirenboard-A7UPLRBU:/usr/lib# du -sh * | sort -hr | head -3
136M arm-linux-gnueabihf
101M node_modules

  1. Чтобы не допустить ошибку, команду, для переноса не подскажите?

ln -s /mnt/data/usr/lib/node_modules /usr/lib/node_modules

Верная команда?

Наверное, посмотрите man для деталей.

P.S. как по мне, то на этом контроллере nodejs вообще лишнее, не надо воспринимать эту железку как сервер, это “желаемое за действительное”

1 лайк

Перенес на /mnt/data/usr/lib/ каталог: node_modules.
Освободилось 100Мб, при обновлении вышла ошибка.
Перенес на /mnt/data/usr/lib/ каталоги: gcc, python2.7, python3, python3.9.
Удалось обновиться с помощью команды apt --fix-broken install.
После обновления перезагрузил контроллер.
Теперь не работает zigbee2mqtt.
root@wirenboard-A7UPLRBU:/mnt/data/root/zigbee2mqtt# npm start

zigbee2 mqtt@1.40.2 start
node index.js

Starting Zigbee2MQTT without watchdog.
[2024-12-26 14:22:01] info: z2m: Logging to console, file (filename: log.log)
[2024-12-26 14:22:01] info: z2m: Starting Zigbee2MQTT version 1.40.2 (commit #unknown)
[2024-12-26 14:22:01] info: z2m: Starting zigbee-herdsman (2.1.3)
[2024-12-26 14:22:06] info: zh:zstack:znp: Opening SerialPort with {“path”:“/dev/ttyMOD4”,“baudRate”:115200,“rtscts”:false,“autoOpen”:false}
[2024-12-26 14:22:06] error: z2m: Error while starting zigbee-herdsman
[2024-12-26 14:22:06] error: z2m: Failed to start zigbee
[2024-12-26 14:22:06] error: z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
[2024-12-26 14:22:06] error: z2m: Exiting…
[2024-12-26 14:22:06] error: z2m: Error: Error: Input/output error setting custom baud rate of 115200

Посмотрите вот тут

Проблема оказалась в том, что отвязались модули расширения. Через графический интерфейс повторно указал модули расширения для модуля 2, и 4. (Как ни странно, для модули 1 и 3 в норме)