Ошибка при обновлении Could not resolve deb.debian.org

Здравствуйте! В общем, как следует из заголовка, при попытке установить облако, или просто при обновлении через apt update появляется эта ошибка. Я читал про возможные пути устранения, то есть пробовал и apt install wb-configs, и вручную менял репозитории в nano /etc/apt/sources.list.d/debian-upstream.list, но ничего из этого не помогло. Контроллер 6 версии, прошивка wb-2401.

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  frpc python3-certifi python3-chardet python3-requests python3-urllib3
  telegraf-wb-cloud-agent
Suggested packages:
  python3-cryptography python3-openssl python3-socks python-requests-doc
The following NEW packages will be installed:
  frpc python3-certifi python3-chardet python3-requests python3-urllib3
  telegraf-wb-cloud-agent wb-cloud-agent
0 upgraded, 7 newly installed, 0 to remove and 38 not upgraded.
Need to get 8101 kB of archives.
After this operation, 32.5 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Err:1 http://deb.wirenboard.com/wb6/bullseye stable/main armhf frpc armhf 0.52.3
  Could not resolve 'deb.wirenboard.com'
Err:2 http://debian-mirror.wirenboard.com/debian bullseye/main armhf python3-certifi all 2020.6.20-1
  Could not resolve 'debian-mirror.wirenboard.com'
Err:3 http://deb.wirenboard.com/wb6/bullseye stable/main armhf telegraf-wb-cloud-agent armhf 1.29.1
  Could not resolve 'deb.wirenboard.com'
Err:4 http://debian-mirror.wirenboard.com/debian bullseye/main armhf python3-chardet all 4.0.0-1
  Could not resolve 'debian-mirror.wirenboard.com'
Err:5 http://deb.wirenboard.com/wb6/bullseye stable/main armhf wb-cloud-agent all 1.2.8
  Could not resolve 'deb.wirenboard.com'
Err:6 http://debian-mirror.wirenboard.com/debian bullseye/main armhf python3-urllib3 all 1.26.5-1~exp1
  Could not resolve 'debian-mirror.wirenboard.com'
Err:7 http://debian-mirror.wirenboard.com/debian bullseye/main armhf python3-requests all 2.25.1+dfsg-2
  Could not resolve 'debian-mirror.wirenboard.com'
E: Failed to fetch http://deb.wirenboard.com/wb6/bullseye/pool/main/b/build-frp/frpc_0.52.3_armhf.deb  Could not resolve 'deb.wirenboard.com'
E: Failed to fetch http://debian-mirror.wirenboard.com/debian/pool/main/p/python-certifi/python3-certifi_2020.6.20-1_all.deb  Could not resolve 'debian-mirror.wirenboard.com'
E: Failed to fetch http://debian-mirror.wirenboard.com/debian/pool/main/c/chardet/python3-chardet_4.0.0-1_all.deb  Could not resolve 'debian-mirror.wirenboard.com'
E: Failed to fetch http://debian-mirror.wirenboard.com/debian/pool/main/p/python-urllib3/python3-urllib3_1.26.5-1%7eexp1_all.deb  Could not resolve 'debian-mirror.wirenboard.com'
E: Failed to fetch http://debian-mirror.wirenboard.com/debian/pool/main/r/requests/python3-requests_2.25.1%2bdfsg-2_all.deb  Could not resolve 'debian-mirror.wirenboard.com'
E: Failed to fetch http://deb.wirenboard.com/wb6/bullseye/pool/main/b/build-telegraf-wb-cloud-agent/telegraf-wb-cloud-agent_1.29.1_armhf.deb  Could not resolve 'deb.wirenboard.com'
E: Failed to fetch http://deb.wirenboard.com/wb6/bullseye/pool/main/w/wb-cloud-agent/wb-cloud-agent_1.2.8_all.deb  Could not resolve 'deb.wirenboard.com'
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
root@wirenboard-AYDYHPJX:~#

Так же пробовал и apt-get update, и добавлял --fix-missing. Подскажите пожалуйста, возможно ли это исправить без сброса контроллера? А то уже настроен весь щит, и в node-red много сделано, не хочется всё это заново делать…

Добрый день.
Из вывода очевидно что не настроен (не работает) DNS. Проверьте пожалуйста как должны разрешаться имена.

Благодарю за ответ! Действительно, при проверке сервиса dnsmasq он пишет что не активен (мёртв).

     Loaded: loaded (/lib/systemd/system/dnsmasq.service; enabled; vendor preset: enabled)
    Drop-In: /usr/lib/systemd/system/dnsmasq.service.d
             └─99-disable-if-not-configured.conf
     Active: inactive (dead) (Result: exec-condition) since Wed 2024-07-24 09:06:39 UTC; 11min ago
    Process: 1666 ExecCondition=/usr/lib/wb-nm-helper/disable-if-not-configured.sh (code=exited, status=1/FAILURE)
        CPU: 41ms

Jul 24 09:06:37 wirenboard-AYDYHPJX systemd[1]: Starting dnsmasq - A lightweight DHCP and caching DNS server...
Jul 24 09:06:39 wirenboard-AYDYHPJX systemd[1]: dnsmasq.service: Control process exited, code=exited, status=1/FAILURE
Jul 24 09:06:39 wirenboard-AYDYHPJX systemd[1]: dnsmasq.service: Skipped due to 'exec-condition'.
Jul 24 09:06:39 wirenboard-AYDYHPJX systemd[1]: Condition check resulted in dnsmasq - A lightweight DHCP and caching DNS server being skipped.

Попробовал добавить через окно сетевых соединений стандартные гугловские сервера (8.8.8.8, 8.8.4.4), не помогло. Открыл файлик на который он жалуется, ничего подозрительного в пределах своих знаний там не заметил.

Нет, этот сервис и не нужен для разрешения имен.
Посмотрите какие используются сервера для разрешения и работают ли они.

А не подскажете пожалуйста как это сделать?

Добрый день!
Проблема с невозможностью разрешения DNS-имен для серверов deb.wirenboard.com и debian-mirror.wirenboard.com может быть вызвана некорректными настройками DNS или недоступностью DNS-серверов. Следуйте этим шагам для диагностики и устранения проблемы:

1. Проверка настроек DNS

Откройте файл /etc/resolv.conf и убедитесь, что указаны корректные DNS-серверы. Пример правильных записей:

nameserver 8.8.8.8
nameserver 8.8.4.4

Эти DNS-серверы предоставлены Google. Если вы используете другие DNS-серверы, убедитесь, что они работают корректно.

2. Проверка доступности DNS-серверов

Используйте команду ping, чтобы проверить доступность указанных DNS-серверов:

ping 8.8.8.8
ping 8.8.4.4

Убедитесь, что получаете ответы от серверов.

3. Проверка работы DNS

Используйте команды nslookup или dig, чтобы проверить, разрешаются ли DNS-имена:

nslookup deb.wirenboard.com
nslookup debian-mirror.wirenboard.com

Результаты должны показывать IP-адреса соответствующих серверов.

4. Проверка файла /etc/hosts

Откройте файл /etc/hosts и убедитесь, что там нет записей, которые могут мешать нормальной работе DNS.

5. Проверка сетевого подключения

Убедитесь, что ваше сетевое подключение работает правильно и у вас есть доступ в интернет. Используйте команды ping для проверки доступности внешних ресурсов, например:

ping google.com

Если все шаги выполнены корректно, но проблема сохраняется, попробуйте перезагрузить сетевые службы:

sudo systemctl restart networking

или перезагрузите систему.

С более подробной информацией можете ознакомится на сайте

Действующий, проще всего - nmcli dev show |grep DNS

1 лайк

Вот что выводит в консоль:

root@wirenboard-AYDYHPJX:~# nmcli dev show | grep DNS
IP4.DNS[1]:                             8.8.8.8
IP4.DNS[2]:                             8.8.4.4
root@wirenboard-AYDYHPJX:~#

Так же проверил пять пунктов выше, везде всё указано правильно, насколько я понял, сервера DNS и гугл пингуются, ответы приходят нормально. Только nslookup или dig не смог проверить, т.к. не может найти такую команду.

И видимо после моих манипуляций поменялась ошибка, но apt update всё равно не выполняется.

root@wirenboard-AYDYHPJX:~# apt update
Get:1 http://deb.wirenboard.com/wb6/bullseye stable InRelease [3940 B]
Get:2 http://debian-mirror.wirenboard.com/debian bullseye InRelease [116 kB]
Err:1 http://deb.wirenboard.com/wb6/bullseye stable InRelease
  Splitting up /var/lib/apt/lists/partial/deb.wirenboard.com_wb6_bullseye_dists_stable_InRelease into data and signature failed
Err:2 http://debian-mirror.wirenboard.com/debian bullseye InRelease
  Splitting up /var/lib/apt/lists/partial/debian-mirror.wirenboard.com_debian_dists_bullseye_InRelease into data and signature failed
Hit:3 https://deb.nodesource.com/node_16.x bullseye InRelease
Err:3 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
Get:4 http://debian-mirror.wirenboard.com/debian bullseye-updates InRelease [44.1 kB]
Err:4 http://debian-mirror.wirenboard.com/debian bullseye-updates InRelease
  Splitting up /var/lib/apt/lists/partial/debian-mirror.wirenboard.com_debian_dists_bullseye-updates_InRelease into data and signature failed
Get:5 http://debian-mirror.wirenboard.com/debian bullseye-backports InRelease [49.0 kB]
Err:5 http://debian-mirror.wirenboard.com/debian bullseye-backports InRelease
  Splitting up /var/lib/apt/lists/partial/debian-mirror.wirenboard.com_debian_dists_bullseye-backports_InRelease into data and signature failed
Get:6 http://debian-mirror.wirenboard.com/debian-security bullseye-security InRelease [48.4 kB]
Err:6 http://debian-mirror.wirenboard.com/debian-security bullseye-security InRelease
  Splitting up /var/lib/apt/lists/partial/debian-mirror.wirenboard.com_debian-security_dists_bullseye-security_InRelease into data and signature failed
Fetched 261 kB in 1s (188 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
29 packages can be upgraded. Run 'apt list --upgradable' to see them.
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/wb6/bullseye stable InRelease: Splitting up /var/lib/apt/lists/partial/deb.wirenboard.com_wb6_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: http://debian-mirror.wirenboard.com/debian bullseye InRelease: Splitting up /var/lib/apt/lists/partial/debian-mirror.wirenboard.com_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: 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: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://debian-mirror.wirenboard.com/debian bullseye-updates InRelease: Splitting up /var/lib/apt/lists/partial/debian-mirror.wirenboard.com_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://debian-mirror.wirenboard.com/debian bullseye-backports InRelease: Splitting up /var/lib/apt/lists/partial/debian-mirror.wirenboard.com_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: http://debian-mirror.wirenboard.com/debian-security bullseye-security InRelease: Splitting up /var/lib/apt/lists/partial/debian-mirror.wirenboard.com_debian-security_dists_bullseye-security_InRelease into data and signature failed
W: Failed to fetch http://debian-mirror.wirenboard.com/debian/dists/bullseye/InRelease  Splitting up /var/lib/apt/lists/partial/debian-mirror.wirenboard.com_debian_dists_bullseye_InRelease into data and signature failed
W: Failed to fetch http://debian-mirror.wirenboard.com/debian/dists/bullseye-updates/InRelease  Splitting up /var/lib/apt/lists/partial/debian-mirror.wirenboard.com_debian_dists_bullseye-updates_InRelease into data and signature failed
W: Failed to fetch http://debian-mirror.wirenboard.com/debian/dists/bullseye-backports/InRelease  Splitting up /var/lib/apt/lists/partial/debian-mirror.wirenboard.com_debian_dists_bullseye-backports_InRelease into data and signature failed
W: Failed to fetch http://debian-mirror.wirenboard.com/debian-security/dists/bullseye-security/InRelease  Splitting up /var/lib/apt/lists/partial/debian-mirror.wirenboard.com_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/wb6/bullseye/dists/stable/InRelease  Splitting up /var/lib/apt/lists/partial/deb.wirenboard.com_wb6_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.
root@wirenboard-AYDYHPJX:~#

Проверьте пожалуйста, есть ли сколько-нибудь доступного (свободного) места в разделах?

Добрый день!
Попробуйте выполнить данные команды для очистки кэш и повторить

apt clean
rm -rf /var/lib/apt/lists/*
apt update

Уточните, пожалуйста, что вы хотели установить и какой результат хотите получить в конце.

В общем, был забит корневой раздел /, ещё со старой прошивкой был 1 гиг, пришлось делать то, чего не хотелось - обновить ПО и заодно расширить корень, и все проблемы решились. Большое спасибо за помощь, и извините за глупые вопросы!

1 лайк