@rgz

Как установить crul на debian 8?

Здравствуйте. Пересобирал lamp на debian 8. Для обновления подключил тестовый репозиторий (приоритет 300, что бы только для apache), обновил Апач до 2.4.37
php 7.1
Теперь для корректной работы нужен curl. Но при попытке его установить выводится:
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:
 php7.1-curl : Depends: libcurl3 (>= 7.28.0) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

А при попытке установить libcurl3 сообщается:
The following packages were automatically installed and are no longer required:
apache2-data apache2-utils libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap libbrotli1 libgdbm6
libidn2-0 libjansson4 liblua5.2-0 libnghttp2-14 libpsl5 libunistring2 publicsuffix ssl-cert

Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
apache2 apache2-bin libapache2-mod-php7.1 libapache2-mod-upload-progress libcurl4
The following NEW packages will be installed:
libcurl3
0 upgraded, 1 newly installed, 5 to remove and 5 not upgraded.
Need to get 261 kB of archives.
After this operation, 10.3 MB disk space will be freed.
Вопрос:
  • Система предлагает удалить некоторые пакеты, например apache2. Что имеется ввиду?
    Удалится полностью настроенный apache? или удалится временный пакет? или удалится зависимость?
  • Как установить curl в данном случае, сохранив apache, php, mysql?

Спасибо.
  • Вопрос задан
  • 378 просмотров
Решения вопроса 1
@uroot
Use 'apt-get autoremove' to remove them.
Такое происходит, когда ломаются зависимости, и в итоге ваш apache считается мусором в системе. Попробуйте команду:
apt install -f
А после:
apt autoremove
Конфиги при apt autoremove удалиться не должны, но лучше из забэкапить. Дальше:
apt update && apt upgrade

И на будущее: всегда держите бэкапы. Лично я использую TimeShift - это GUI надстройка над rsync
Ответ написан
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы