After removing not purging all php related programs, not purging. I tried to reinstall using tasksel, I received this message
debconf: DbDriver "passwords" warning: could not open /var/cache/debconf/passwords.dat: Permission denied
debconf: DbDriver "passwords" warning: could not open /var/cache/debconf/passwords.dat: Permission denied
debconf: DbDriver "config": could not write /var/cache/debconf/config.dat-new: Permission denied
tasksel: debconf failed to run
After removing not purging all php related programs, not purging. I tried to reinstall using tasksel, I received this message
debconf: DbDriver "passwords" warning: could not open /var/cache/ debconf/ passwords. dat: Permission denied debconf/ passwords. dat: Permission denied debconf/ config. dat-new: Permission denied
debconf: DbDriver "passwords" warning: could not open /var/cache/
debconf: DbDriver "config": could not write /var/cache/
tasksel: debconf failed to run