Recently the new php7 has been released. However, when I am trying to install the gd package, the library can not be found.
I have tried through
sudo
my php version is 7.1
sudo apt-get install php7.1-gd
this command is work for me