• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
Source Digit

Source Digit

Linux, Ubuntu Tutorials & News, Technology, Gadgets & Gizmos

  • Home
  • How To
  • Ubuntu
  • Instagram
  • Blogging
  • Android
  • WordPress
  • +More
    • Cloud Computing
    • Gadgets
    • Social Media
    • Technology
  • Write for Us
Home / How To / Fix Broken Packages In Ubuntu via Terminal

Fix Broken Packages In Ubuntu via Terminal

By Sourabh / November 20, 2019 Category: How To, Ubuntu

How to fix broken packages in Ubuntu. How to remove broken packages on Ubuntu, fix broken packages via command line. Fix the error apt –fix-broken install not working or sudo apt-get update –fix-missing.

Fix Broken Packages in Ubuntu via Terminal

To do so list broken packages in Ubuntu and then Ubuntu users can fix broken packages via command line. If a package installation fails in Linux Ubuntu, it can cause few problems. For example, the package manager freezes or become locked. It is a bit problem to use Ubuntu properly while the system packages are broken or corrupt. Luckily, there are few ways to resolve the issue.

Fix broken packages using Ubuntu terminal

If you know the name of the broken package, you can remove it manually using the following command.

sudo dpkg --remove -force --force-remove-reinstreq PACKAGE_NAME_GOES_HERE

If you aren’t sure about the name of the broken package, follow the commands given below:

Command 1

sudo apt-get --fix-broken install

Command 2

If a Ubuntu package installation fails (due to dependencies), run the following command

sudo apt-get clean
sudo apt-get install -f
sudo dpkg --configure -a
sudo apt-get update

Command 3

sudo rm /var/lib/apt/lists/* -vf
sudo apt-get update

Command 4

sudo apt-get clean
sudo apt-get autoclean
sudo apt-get autoremove

Command 5

sudo dpkg --configure -a
sudo apt-get update

Primary Sidebar

Latest Posts

Job Scheduling Using At Command In Linux With Examples

How To Check Permissions Of A Directory In Linux Command

Delete Directory And Contents Recursively Without Prompt On Linux

Check User Login History In Ubuntu Linux Command Line

Use Locate Command To Find File In Linux Terminal By Name

How To Change Terminal Color In Ubuntu Command Line

How To Run Fsck Manually In Linux To Fix Unexpected Inconsistency

How To Fix Broken Packages On Ubuntu From Terminal

Re Execute The Previous Command In Linux Ubuntu Command Line

How Much RAM Is Needed For Ubuntu PC

© 2026 Source Digit • Linux, Ubuntu Tutorials & News, Technology, Gadgets & Gizmos

  • Home
  • About
  • Privacy Policy
  • Terms & Conditions
  • Contact Us
  • Sitemap