Можно ли удалить из /etc/apt/sources.list линки на яндекс (он заблокирован)
deb http://mirror.yandex.ru/debian/ stretch main
deb http://mirror.yandex.ru/debian/ stretch-updates main
Достаточно ли оставить одну строку - deb http://security.debian.org stretch/updates main?
Попробуйте выполнить команды, должно все заработать и обновиться:
apt-get update
apt-get install wb-configs
Оно оновляется, но:
W: Failed to fetch http://mirror.yandex.ru/debian/dists/stretch/InRelease Could not resolve ‘mirror.yandex.ru’
W: Failed to fetch http://mirror.yandex.ru/debian/dists/stretch-updates/InRelease Could not resolve ‘mirror.yandex.ru’
W: Some index files failed to download. They have been ignored, or old ones used instead.
Ключевая команда
Она должна подключить верные репозитории, после этого update пройдет без ошибок.
root@wirenboard-AHZ2TA3P:~# apt-get update
Err:1 http://mirror.yandex.ru/debian stretch InRelease
Could not resolve ‘mirror.yandex.ru’
Err:2 http://mirror.yandex.ru/debian stretch-updates InRelease
Could not resolve ‘mirror.yandex.ru’
Hit:3 http://security.debian.org stretch/updates InRelease
Hit:4 http://releases.contactless.ru/stable/stretch stretch InRelease
Hit:5 http://cdn-fastly.deb.debian.org/debian stretch-backports InRelease
Reading package lists… Done
W: Failed to fetch http://mirror.yandex.ru/debian/dists/stretch/InRelease Could not resolve ‘mirror.yandex.ru’
W: Failed to fetch http://mirror.yandex.ru/debian/dists/stretch-updates/InRelease Could not resolve ‘mirror.yandex.ru’
W: Some index files failed to download. They have been ignored, or old ones used instead.
root@wirenboard-AHZ2TA3P:~# apt-get install wb-configs
Reading package lists… Done
Building dependency tree
Reading state information… Done
wb-configs is already the newest version (1.80).
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
А теперь если запустить
ошибки будут?
Будут. оно же раньше обновилось.
Добрый день!
Простите, только сейчас поняли, в чём дело. До этого перепутали с другой ошибкой со схожими симптомами, которую недавно исправили.
Вам нужно заменить все строки с Яндексом руками на аналогичные с debian.org
Простите пожалуйста, но я так и не понял, как именно следует заменить строки с mirror.yandex.ru. Пробовал менять это на debian.org, но получаю после этого подобное:
root@wirenboard-AWCJ45QT:~# apt-get install wb-configs
Reading package lists… Done
Building dependency tree
Reading state information… Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
wb-configs : Depends: wb-configs-wheezy (>= 2.0transitional) but it is not going to be installed ortransitional) but 1.81.0 is to be installed
wb-configs-stretch (>= 2.0
E: Unable to correct problems, you have held broken packages.
Просите, я новичок в этом деле, может что-то базовое не понял, но не понимаю, что нужно сделать. Пожалуйста подскажите.