I have uninstalled php7 and all its modules from ubuntu, and when I try to reinstall the modules, I get the following error for each php module, and although the module is insta
The problem was because of deleting php with sudo apt-get remove [package]
and with this form, configuration files won't clean from computer and the next time you try to install the package, Ubuntu won't let the package configuration files to overwrite.
the solution is to delete the package completely with purge
and the autoremove
the package so that It will completely remove from the computer with its configuration files and the next time you try to install, the configuration files with be created.