0

I download curl deb file from curl official site : https://curl.haxx.se/. I want to install curl deb file but meet this trouble:

enter image description here

Please tell e how to fix this trouble. I'm not edit anything on /etc/apt/sources.list. Why this trouble happend to me?

Anwar
  • 76,649

2 Answers2

1

Ubuntu 16.04 has upgraded PHP to 7.0. Just do sudo apt-get install php7.0-curl.

Source: http://packages.ubuntu.com/xenial/php7.0-curl

Elder Geek
  • 36,023
  • 25
  • 98
  • 183
Dr.Tux
  • 11
1

The usual way of installing libcurl3 in Ubuntu 16.04 is to install the libcurl3 package from the default Ubuntu repositories like this:

sudo apt-get install libcurl3  

Instead of installing the latest version of libcurl3 for Ubuntu 16.04, you downloaded an older version of libcurl3 for Ubuntu 12.04 and ran into a problem with a missing dependency package named librtmp0. librtmp0 has been upgraded to librtmp1 in Ubuntu 16.04. You can proceed from here by installing librtmp0 manually. Download librtmp0 for Ubuntu 12.04 from from the official Download Page for librtmp0_2.4~20110711.gitc28f1bab-1_amd64.deb on AMD64 machines webpage and manually install the .deb file. You can also manually install librtmp0 alongside librtmp1.

Run the following command to prevent librtmp0 from being automatically installed, upgraded or removed.

sudo apt-mark hold librtmp0  
karel
  • 114,770