R
R
rgz2018-11-25 22:25:29
Debian
rgz, 2018-11-25 22:25:29

How to install crul on debian 8?

Hello. I rebuilt lamp on debian 8. To update, I connected a test repository (priority 300, which would be only for apache), updated Apache to 2.4.37
php 7.1
Now you need curl to work correctly. But when I try to install it, I get:

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.

And when trying to install libcurl3 it says:
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.
Question:
  • The system suggests removing some packages, such as apache2. What is meant?
    Will a fully configured apache be deleted? Or will the temporary package be removed? Or remove the dependency?
  • How to install curl in this case, keeping apache, php, mysql?

Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
U
uRoot, 2018-11-25
@rgz

Use 'apt-get autoremove' to remove them.
This happens when dependencies break and your apache is considered junk in the system. Try the command:
And after:
Configs should not be deleted with apt autoremove , but it's better to backup them. Further:
And for the future: always keep backups. Personally, I use TimeShift - it's a GUI add-on for rsync

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question