First, check the problem with dpkg --audit. Then forcibly uninstall those packages and then reinstall
sudo dpkg -P --force-depends package name (However, if the package or dependency is broken, it may not disappear.
It disappeared with the –force-remove-reinstreq option. )
After uninstalling by running
sudo apt-get install package name
sudo dpkg --audit
If you run and nothing is displayed, the problem should be solved.