• 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

Ubuntu 25.04 ‘Plucky Puffin’ Is Available To Download

How to Login as Root User in Linux Terminal

Install Firefox In Ubuntu Terminal Command Line

How To Check Kernel Installed Date In Linux Ubuntu

How To List All Kernel Modules That Are Loaded In Ubuntu

Enable Ubuntu Auto Login Without Password

Download Ubuntu 25.04 Official Default Wallpapers

How To Fix Initramfs Error In Ubuntu Command Line

How To Check All Available Kernel Version In Linux Ubuntu

3 Best Artificial Intelligence Domain Name Generators

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

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