To force reinstall a package using apt-get on Debian or Ubuntu, you can use the following command:
sudo apt-get install --reinstall <package-name>
For example, to reinstall the nginx package, use the following command:
sudo apt-get install --reinstall nginx
The --reinstall option tells apt-get to reinstall the specified package, even if it is already installed and up to date.