apt troubleshooting

Messed up a package's configuration files?

1sudo apt-get purge ${package}
1sudo apt autoremove 

Check if you still have related things:

1apt search ${package}
1sudo apt-get install ${package}

Still have problems?

1sudo dpgk --force-confmiss -i /var/cache/apt/archives/${package}