I am sharing my expereince so that this could help others.
I use R program and when I try to install a package it says curl is not available.
But when you try install it in terminal usinig
sudo apt install curl
You see a output that it is already installed. So, here is the solution