Libapache2-mod-cloudflare : Depends: apache2-api-20120211 but it is not installable

Yesterday I installed libapache2-mod-cloudflare on a Debian 7 with apache2.2 and it worked following those steps :

curl -C - https://pkg.cloudflare.com/pubkey.gpg | sudo apt-key add -
echo “deb http://pkg.cloudflare.com/ lsb_release -cs main” | sudo tee /etc/apt/sources.list.d/cloudflare.list
sudo apt-get update
sudo apt-get install libapache2-mod-cloudflare

Now I’m trying on a Ubuntu 12.04 with apache2.2 and I’m getting :

Reading package lists… Done
Building dependency tree
Reading state information… 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.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libapache2-mod-cloudflare : Depends: apache2-api-20120211 but it is not installable
E: Unable to correct problems, you have held broken packages.

I tried adding the apt sources from the Debian 7 to the apt sources list of the Ubuntu, but I’m still getting that error.

apache2 packages installed on the Debian 7 using dpkg -l | grep apache2 :

apache2
apache2-mpm-worker
apache2-suexec
apache2-utils
apache2.2-bin
apache2.2-common
libapache2-mod-cloudflare
libapache2-mod-php5
libapache2-mod-suphp

On the Ubuntu one :

apache2
apache2-mpm-worker
apache2-suexec
apache2-suexec-custom
apache2-threaded-dev
apache2-utils
apache2.2-bin
apache2.2-common
libapache2-mod-php5
libapache2-mod-suphp

That is a triple deprecation.

You shouldnt be using any of these packages as they have all been unsupported for “ages” at this point.

Install Debian 10 with Apache 2.4 and its mod_remoteip.

Thank you for your recommendations but this is another discussion and the Debian is working fine. I’m trying to add that lib on the Ubuntu one.

Unfortunately that topic is somewhat off-topic here, as that is rather Debian related as it cannot find the referenced Debian package. You best take this to a Debian forum or StackExchange for example.

Also, the fact that everything has been deprecated a long time ago might be the reason it is broken. So it wouldnt really “work fine”. Overall, Debian 7 and Apache 2.2 is an insecure setup at this point and I couldnt recommend any stronger to migrate to a supported version.