Автор Тема: Установка nginx  (Прочитано 2653 раз)

Оффлайн keris234

  • Начинающий
  • *
  • Сообщений: 9
Установка nginx
« : 03.08.2020 14:48:43 »
Свежеустановленный ALT 8 SP Server

Устанавливаю nginx

[root@app ~]# apt-get update
Get:1 http://ftp.altlinux.org c8/branch/x86_64 release [884B]
Get:2 http://ftp.altlinux.org c8/branch/x86_64-i586 release [543B]
Get:3 http://ftp.altlinux.org c8/branch/noarch release [679B]
Fetched 2106B in 0s (47,6kB/s)
Hit http://ftp.altlinux.org c8/branch/x86_64/classic pkglist
Hit http://ftp.altlinux.org c8/branch/x86_64/classic release
Hit http://ftp.altlinux.org c8/branch/x86_64-i586/classic pkglist
Hit http://ftp.altlinux.org c8/branch/x86_64-i586/classic release
Hit http://ftp.altlinux.org c8/branch/noarch/classic pkglist
Hit http://ftp.altlinux.org c8/branch/noarch/classic release
Reading Package Lists... Done
Building Dependency Tree... Done

[root@app ~]# apt-get install nginx
Reading Package Lists... Done
Building Dependency Tree... 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.

Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
  nginx: Depends: libcrypt.so.1(XCRYPT_2.0)(64bit)
E: Broken packages

[root@app ~]# apt-get install libcrypt
Reading Package Lists... Done
Building Dependency Tree... 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.

Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
  libcrypt: Depends: libc.so.6(GLIBC_2.14)(64bit)
            Depends: libc.so.6(GLIBC_2.2.5)(64bit)
            Depends: libc.so.6(GLIBC_2.3.4)(64bit)
            Depends: libc.so.6(GLIBC_2.4)(64bit)
            Depends: rtld(GNU_HASH)
E: Broken packages

Как исправить проблемы с зависимостями?
« Последнее редактирование: 03.08.2020 14:50:26 от keris234 »

Оффлайн Skull

  • Глобальный модератор
  • *****
  • Сообщений: 19 925
    • Домашняя страница
    • Email
Re: Установка nginx
« Ответ #1 : 03.08.2020 15:10:13 »
Перед любой установкой нового пакета ОБЯЗАТЕЛЬНО обновить всю систему:
apt-get update
apt-get dist-upgrade
Потом устанавливать пакет.
Андрей Черепанов (cas@)

Оффлайн keris234

  • Начинающий
  • *
  • Сообщений: 9
Re: Установка nginx
« Ответ #2 : 03.08.2020 16:21:41 »
Спасибо!
apt-get dist-upgrade

помог решить проблему

Оффлайн keris234

  • Начинающий
  • *
  • Сообщений: 9
Re: Установка nginx
« Ответ #3 : 03.08.2020 17:11:49 »
Рано обрадовался. После перезагрузки -
error: symbol `grub_term_highlight_color` not found
Entering rescue mode...
grub rescue>

пробовал делать update-grub после apt-get dist-upgrade, но это не помогает

UPD. помогла команда  grub-install --recheck /dev/sda
Кажется, такие вещи надо как-то автоматизировать при обновлении, не всегда есть возможность удаленно восстанавливать незагружающуюся систему.
« Последнее редактирование: 03.08.2020 17:22:30 от keris234 »