Solution 1:
you should purge the package:
sudo apt-get remove --purge packagename
it will remove all configuration files and then you can install it fresh
you should purge the package:
sudo apt-get remove --purge packagename
it will remove all configuration files and then you can install it fresh