Reinstall package and its installed dependencies
Solution 1:
You can check all package dependencies with apt-cache
:
apt-cache depends <package>
Using the results of that command, we get the following one, which re-installs <package>
and its dependencies:
apt-cache depends <package> | grep '[ |]Depends: [^<]' | cut -d: -f2 | tr -d ' ' | xargs sudo apt-get --reinstall install -y