[LINUX] What to do if the package dependency cannot be repaired

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

Reinstall with

sudo dpkg --audit

If you run and nothing is displayed, the problem should be solved.

Recommended Posts

What to do if the package dependency cannot be repaired
What to do if pip cannot be installed
What to do if PyAudio cannot be installed on Python 3.7, 3.8, 3.9 on Windows
What to do if mod_fcgid cannot resolve UnicodeEncodeError
[Ubuntu 18.04 LTS] What to do when the screen resolution cannot be selected [NVIDIA]
What to do if you get the error Target WSGI script'/var/www/xxx/xxx.wsgi' cannot be loaded as python module
What to do if pvcreate produces a lot of WARNING and cannot be created
What to do if package installation fails when deploying to heroku
[* CentOS 6.10] What to do if you cannot add the IUS Community Project repository on CentOS 6.5 (VirtualBox)
What to do if ʻObject arrays cannot be loaded when allow_pickle = False` occurs in numpy.load ()
What to do when a video cannot be read by cv2.VideoCapture
What to do if the inode is exhausted on EC2 Linux
What to do if you can't use the trash in Lubuntu 18.04.
[For IT beginners] What to do when the rev command cannot be used with Git Bash
What to do if the Pipenv environment is corrupted by updating Homebrew
What to do if the yum command fails to set locale, defaulting to C
What to do if the Chainer (Windows) sample mnist terminates with WinError 183.
What to do if the server doesn't start with python manage.py runserver
What to do if you get "The session could not be opened" when installing CentOS on VirtualBox
What to do if pipreqs results in UnicodeDecodeError
What to do if you can't pipenv shell
Note: What to do if pip install fails
What to do if rails s doesn't work
What to do when "OS Error: [WinError 126] The specified module cannot be found" appears in import torch
What to do if atom autocomplete-python doesn't work
What to do if Docker-sync suddenly stops working
What to do if "amazon-linux-extras" → "No module named amazon_linux_extras"
What to do if you get the message "" ~ .pkg "is corrupted and cannot be opened" when installing wxPython on Mac OS X
What to do if the latest Jupyter Notebook and nb extensions don't work
Let's Encrypt updated! What to do if the certbot renew command doesn't work
[Note] What to do if the Qt library conflicts between pyqt and opencv
What to do if a version error occurs in the selenium Chrome driver
What to do if (base) is displayed at the beginning of the Mac terminal
Notes on what to do if "macOS 11 or later required!" Appears in Big Sur or pyarrow2.0.0 cannot be installed
What to do if pip install fails in Xcode 5.1
What to do if you can't pip install mysqlclient
No module named What to do if you get'libs.resources'
ModuleNotFoundError: No module What to do if you get'tensorflow.contrib'
What to do if SciPy installation fails on CentOS
What to do if a UnicodeDecodeError occurs in pip
What to do when "cannot import name xxx" [Python]
What to do if pip install fails to install dependent libraries
What to do if sys / cdefs.h does not exist
What to do if pyenv is not enabled (zsh)
What to do when is not in the sudoers file.This incident will be reported.
What to do if the Microsoft Store opens even if you run python on Windows
What to do if the print command itself causes an error in Maya python
What to do if the progress bar is not displayed in tqdm of python
What to do if Python does not switch from the System version in pyenv
What to do if you get the error ʻERR_FEATURE_UNAVAILABLE_ON_PLATFORM` when using ts-node-dev on Linux
What to do if you can't hit the arrow keys in the Python interactive console
What to do if you are addicted to Windows character code
What to do if pip gives a DistributionError in Homebrew
What to do if the image is not displayed using matplotlib etc. in the Docker container
What to do if you get "coverage unknown" in Coveralls
What to do if you can't sort files with subscripts
What to do if a 0xC0000005 error occurs in tf.train.start_queue_runners ()
If it is not easy to understand, it cannot be improved.
What to do if `pip install matplotlib` fails on Mac
What to do if you can't log in as root
What to do if you can't use WiFi on Linux