8
I'm getting "unmet dependencies" error when trying to install packages with apt. apt install -f doesn't work. How to fix this?
Loading...
Q&A · Answered
I'm getting "unmet dependencies" error when trying to install packages with apt. apt install -f doesn't work. How to fix this?
Accepted answer
Broken dependencies can be tricky. Here's a step-by-step solution:
sudo apt update
sudo apt --fix-broken install
sudo dpkg --configure -a
sudo apt clean
sudo apt autoclean
sudo apt autoremove
# Find the problematic package
sudo dpkg -l | grep -i broken
# Force remove it
sudo dpkg --remove --force-remove-reinstreq package-nameSay what you tried, not only what worked — the next person needs the reasoning. Code goes in a fenced block.