Не устанавливается Nginx
-
Не удается получить доступ к некоторым ресурсам. Каким образом можно выбрать другие репозитории или установить другим образом через apt-get?
root@raspberrypi:~# apt-get install nginx Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: geoip-database libgeoip1 nginx-common nginx-full Suggested packages: geoip-bin The following NEW packages will be installed: geoip-database libgeoip1 nginx nginx-common nginx-full 0 upgraded, 5 newly installed, 0 to remove and 5 not upgraded. Need to get 2,133 kB of archives. After this operation, 6,203 kB of additional disk space will be used. Do you want to continue [Y/n]? yes WARNING: The following packages cannot be authenticated! geoip-database libgeoip1 nginx-common nginx-full nginx Install these packages without verification [y/N]? yes Err http://mirrordirector.raspbian.org/raspbian/ wheezy/main geoip-database all 20130213-1 404 Not Found Err http://mirrordirector.raspbian.org/raspbian/ wheezy/main libgeoip1 armhf 1.4.8+dfsg-3 404 Not Found Err http://mirrordirector.raspbian.org/raspbian/ wheezy/main nginx-common all 1.2.1-2.2+wheezy3 404 Not Found Err http://mirrordirector.raspbian.org/raspbian/ wheezy/main nginx-full armhf 1.2.1-2.2+wheezy3 404 Not Found Err http://mirrordirector.raspbian.org/raspbian/ wheezy/main nginx all 1.2.1-2.2+wheezy3 404 Not Found Failed to fetch http://mirrordirector.raspbian.org/raspbian/pool/main/g/geoip-database/geoip-database_20130213-1_all.deb 404 Not Found Failed to fetch http://mirrordirector.raspbian.org/raspbian/pool/main/g/geoip/libgeoip1_1.4.8+dfsg-3_armhf.deb 404 Not Found Failed to fetch http://mirrordirector.raspbian.org/raspbian/pool/main/n/nginx/nginx-common_1.2.1-2.2+wheezy3_all.deb 404 Not Found Failed to fetch http://mirrordirector.raspbian.org/raspbian/pool/main/n/nginx/nginx-full_1.2.1-2.2+wheezy3_armhf.deb 404 Not Found Failed to fetch http://mirrordirector.raspbian.org/raspbian/pool/main/n/nginx/nginx_1.2.1-2.2+wheezy3_all.deb 404 Not Found E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? root@raspberrypi:~#
Если выполнить apt-get update, то также начинаются проблемы с ресурсом http://mirrordirector.raspbian.org/raspbian/dists/wheezy/contrib/binary-armhf/Package
root@raspberrypi:~# apt-get update Ign http://mirrordirector.raspbian.org wheezy Release.gpg Hit http://archive.raspberrypi.org wheezy Release.gpg Err http://raspberrypi.collabora.com wheezy Release.gpg Could not resolve 'raspberrypi.collabora.com' Hit http://archive.raspberrypi.org wheezy Release Ign http://mirrordirector.raspbian.org wheezy Release Hit http://archive.raspberrypi.org wheezy/main armhf Packages Ign http://archive.raspberrypi.org wheezy/main Translation-en_GB Ign http://archive.raspberrypi.org wheezy/main Translation-en Err http://mirrordirector.raspbian.org wheezy/main armhf Packages 404 Not Found Err http://mirrordirector.raspbian.org wheezy/contrib armhf Packages 404 Not Found Err http://mirrordirector.raspbian.org wheezy/non-free armhf Packages 404 Not Found Err http://mirrordirector.raspbian.org wheezy/rpi armhf Packages 404 Not Found Ign http://mirrordirector.raspbian.org wheezy/contrib Translation-en_GB Ign http://mirrordirector.raspbian.org wheezy/contrib Translation-en Ign http://mirrordirector.raspbian.org wheezy/main Translation-en_GB Ign http://mirrordirector.raspbian.org wheezy/main Translation-en Ign http://mirrordirector.raspbian.org wheezy/non-free Translation-en_GB Ign http://mirrordirector.raspbian.org wheezy/non-free Translation-en Ign http://mirrordirector.raspbian.org wheezy/rpi Translation-en_GB Ign http://mirrordirector.raspbian.org wheezy/rpi Translation-en Reading package lists... Done W: Failed to fetch http://raspberrypi.collabora.com/dists/wheezy/Release.gpg Could not resolve 'raspberrypi.collabora.com' W: Failed to fetch http://mirrordirector.raspbian.org/raspbian/dists/wheezy/main/binary-armhf/Packages 404 Not Found W: Failed to fetch http://mirrordirector.raspbian.org/raspbian/dists/wheezy/contrib/binary-armhf/Packages 404 Not Found W: Failed to fetch http://mirrordirector.raspbian.org/raspbian/dists/wheezy/non-free/binary-armhf/Packages 404 Not Found W: Failed to fetch http://mirrordirector.raspbian.org/raspbian/dists/wheezy/rpi/binary-armhf/Packages 404 Not Found W: Some index files failed to download. They have been ignored, or old ones used instead.
-
@userX#6459 Каким образом можно выбрать другие репозитории
В консоли выполните команду:
man 5 sources.list
Там всё подробно расписано.
-
Команда
man 5 sources.list
- немного улучшила понимание ситуации, но в целом не спасла.
Избавился от collabora, удалил из /etc/apt/sources.list.d/ файл collabora.list, сейчас в этой директории остался только raspi.listУ меня установлена старая версия Raspbian wheezy
cat /etc/*-release PRETTY_NAME="Raspbian GNU/Linux 7 (wheezy)" NAME="Raspbian GNU/Linux" VERSION_ID="7" VERSION="7 (wheezy)"
В source list закомментировал всё и добавил данные репозитория как указано тут http://raspbian.org/RaspbianRepository
deb http://archive.raspbian.org/raspbian wheezy main contrib non-free
Все равно при выполнении apt-get update получаю ошибку
sudo apt-get update Hit http://archive.raspberrypi.org wheezy Release.gpg Ign http://archive.raspbian.org wheezy Release.gpg Hit http://archive.raspberrypi.org wheezy Release Ign http://archive.raspbian.org wheezy Release Hit http://archive.raspberrypi.org wheezy/main armhf Packages Ign http://archive.raspberrypi.org wheezy/main Translation-en_GB Ign http://archive.raspberrypi.org wheezy/main Translation-en Err http://archive.raspbian.org wheezy/main armhf Packages 404 Not Found Err http://archive.raspbian.org wheezy/contrib armhf Packages 404 Not Found Err http://archive.raspbian.org wheezy/non-free armhf Packages 404 Not Found Ign http://archive.raspbian.org wheezy/contrib Translation-en_GB Ign http://archive.raspbian.org wheezy/contrib Translation-en Ign http://archive.raspbian.org wheezy/main Translation-en_GB Ign http://archive.raspbian.org wheezy/main Translation-en Ign http://archive.raspbian.org wheezy/non-free Translation-en_GB Ign http://archive.raspbian.org wheezy/non-free Translation-en W: Failed to fetch http://archive.raspbian.org/raspbian/dists/wheezy/main/binary-armhf/Packages 404 Not Found W: Failed to fetch http://archive.raspbian.org/raspbian/dists/wheezy/contrib/binary-armhf/Packages 404 Not Found W: Failed to fetch http://archive.raspbian.org/raspbian/dists/wheezy/non-free/binary-armhf/Packages 404 Not Found E: Some index files failed to download. They have been ignored, or old ones used instead.
Еще меня смущает момент, что в /etc/apt/sources.list.d/raspi.list чуть другие ссылки
deb http://archive.raspberrypi.org/debian/ wheezy main
Пробовал в sources.list вместо wheezy указать актуальную версию buster, но тогда много предупреждений вида "W: Ignoring Provides line with DepCompareOp for package"
sudo apt-get update Get:1 http://archive.raspbian.org buster Release.gpg [488 B] Hit http://archive.raspberrypi.org wheezy Release.gpg Hit http://archive.raspbian.org buster Release Hit http://archive.raspberrypi.org wheezy Release Hit http://archive.raspbian.org buster/main armhf Packages Hit http://archive.raspberrypi.org wheezy/main Sources Hit http://archive.raspbian.org buster/contrib armhf Packages Hit http://archive.raspberrypi.org wheezy/main armhf Packages Hit http://archive.raspbian.org buster/non-free armhf Packages Ign http://archive.raspberrypi.org wheezy/main Translation-en_GB Ign http://archive.raspberrypi.org wheezy/main Translation-en Ign http://archive.raspbian.org buster/contrib Translation-en_GB Ign http://archive.raspbian.org buster/contrib Translation-en Ign http://archive.raspbian.org buster/main Translation-en_GB Ign http://archive.raspbian.org buster/main Translation-en Ign http://archive.raspbian.org buster/non-free Translation-en_GB Ign http://archive.raspbian.org buster/non-free Translation-en Fetched 488 B in 21s (23 B/s) Reading package lists... Done W: Ignoring Provides line with DepCompareOp for package apt-transport-https W: Ignoring Provides line with DepCompareOp for package node-chai ... ...
Что ещё можно сделать, чтобы можно было нормально устанавливать утилиты и обновить систему?
-
Репозиторий deb http://legacy.raspbian.org/raspbian/ wheezy main contrib non-free rpi решил проблему