• 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 / How To Fix Broken Packages In Ubuntu via Terminal

How To Fix Broken Packages In Ubuntu via Terminal

By Sourabh / October 3, 2019 Category: How To, Ubuntu

How to 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

Tags: Command To Fix Broken Packages Linux, Command To Fix Broken Packages Ubuntu, Fix Broken Packages Debian, Fix Broken Packages Linux, Fix Broken Packages Linux Mint, Fix Broken Packages Ubuntu, Fix Broken Packages Ubuntu Terminal, Held Broken Packages, How To Fix Broken Packages In Kali Linux, How To Fix Broken Packages Linux, How To Fix Broken Packages Ubuntu, Linux Command To Fix Broken Packages

Primary Sidebar

Latest Posts

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

How To Find Large Files And Directories In Linux Command Line

How To Use Clear Command History In Linux Terminal

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

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