Cloud House Technologies Logo
CloudHouse Technologies
HomeServicesProjectsBlogAbout UsCareersContact UsLogin
    Cloud House Technologies Logo
    CloudHouse Technologies
    HomeServicesProjectsBlogAbout UsCareersContact UsLogin

    How to Fix Broken Packages in Linux Mint with apt (2026 Guide)

    Priya

    Content Writer & Researcher

    Last Updated: 24 June 2026
    How to Fix Broken Packages in Linux Mint with apt (2026 Guide)
    🖥️

    Still Getting Broken Package Errors on Linux Mint?

    Our Linux engineers fix complex apt dependency failures, PPA conflicts, and partial upgrade issues remotely. No subscription needed.

    🔧 Book Free DiagnosisCall NowWhatsApp
    🖥️12,400+PCs Fixed
    ⭐4.9★Google Rating
    ⚡<15 minAvg. Response
    🛡️ISO 27001Certified

    What Causes Broken Packages on Linux Mint

    Linux Mint's apt package manager is generally robust, but broken packages are a common headache — especially after a partial upgrade, a PPA that went stale, or a power cut mid-install. The four most common causes in 2026 are: broken dependency chains (a package requires a version that conflicts with what's installed), locked APT/dpkg databases (another process is using the database), corrupted repository lists (a PPA or source URL is unreachable or has changed), and interrupted upgrades that left packages in a half-configured state.

    This guide walks through every fix with exact terminal commands, tested on Linux Mint 21.x (Ubuntu Jammy base) and Linux Mint 22.x (Ubuntu Noble base).

    Fix 1: Run apt --fix-broken install

    This is always the first command to run. APT scans your system for unmet dependencies and broken packages, then automatically resolves them by installing missing packages, removing conflicting ones, or finishing an interrupted installation.

    Step 1. Open Terminal (Ctrl+Alt+T).

    Step 2. Run:

    sudo apt --fix-broken install

    Step 3. Review the proposed changes before confirming. APT will show what it plans to install, remove, or upgrade. If the plan looks correct, type Y and press Enter.

    Step 4. After the command completes, run a full upgrade to catch any remaining issues:

    sudo apt update && sudo apt upgrade

    Fix 2: Fix the dpkg Lock File

    If you get the error E: Could not get lock /var/lib/dpkg/lock-frontend, another APT process is running (or crashed while holding the lock).

    Step 1. Find the process holding the lock:

    sudo lsof /var/lib/dpkg/lock-frontend

    Step 2. If a legitimate process is running (Update Manager, Synaptic), wait for it to finish.

    Step 3. If the process crashed and left a stale lock, remove it:

    sudo rm /var/lib/apt/lists/lock
    sudo rm /var/cache/apt/archives/lock
    sudo rm /var/lib/dpkg/lock-frontend
    sudo rm /var/lib/dpkg/lock

    Step 4. Reconfigure any partially installed packages:

    sudo dpkg --configure -a

    Step 5. Re-run the fix:

    sudo apt --fix-broken install

    Fix 3: Fix Corrupted Repository Lists

    A PPA that has been archived, a repository that changed its URL, or a third-party source with an expired GPG key causes apt update to fail with errors like Failed to fetch or NO_PUBKEY.

    Step 1. Open Software Sources: open the Mint Menu → search for Software Sources and launch it.

    Step 2. Go to the Additional repositories tab. Uncheck any PPA that shows an error or that you no longer need.

    Step 3. Run sudo apt update. If it still fails, identify the broken source from the error output (the URL is shown in the error message).

    Step 4. Remove the broken source file:

    ls /etc/apt/sources.list.d/

    Find the file corresponding to the broken PPA and remove it:

    sudo rm /etc/apt/sources.list.d/broken-ppa-name.list

    Step 5. Clear the package lists cache and re-fetch:

    sudo rm -rf /var/lib/apt/lists/*
    sudo apt update

    Fix 4: Fix a Half-Configured Package with dpkg

    When a package installation is interrupted mid-way, dpkg marks it as Half-Installed or Half-Configured. This blocks all future apt operations until fixed.

    Step 1. Check for half-configured packages:

    dpkg --audit

    Step 2. Finish configuring them:

    sudo dpkg --configure -a

    Step 3. If dpkg --configure -a fails for a specific package, force-remove it and reinstall:

    sudo dpkg --remove --force-remove-reinstreq PACKAGE_NAME
    sudo apt install PACKAGE_NAME

    Replace PACKAGE_NAME with the package name shown in the dpkg --audit output.

    Fix 5: Fix GPG Key Errors (NO_PUBKEY)

    Repository GPG key errors prevent apt update from trusting a repository. This commonly happens when a PPA rotates its GPG key.

    Step 1. Note the missing key ID from the apt update error (e.g., NO_PUBKEY A1B2C3D4E5F6).

    Step 2. Add the missing key:

    sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys A1B2C3D4E5F6

    Step 3. If apt-key is deprecated on your Mint version (22.x), use the modern method:

    curl -fsSL https://REPO_URL/gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/repo-name.gpg

    Step 4. Run sudo apt update to verify the key is accepted.

    Fix 6: Use Synaptic Package Manager for Visual Repair

    Synaptic provides a graphical view of broken packages, held-back packages, and dependency conflicts — making it easier to identify exactly what is broken without reading terminal output.

    Step 1. Install Synaptic if not already installed:

    sudo apt install synaptic

    Step 2. Open Synaptic (Mint Menu → Synaptic Package Manager).

    Step 3. Click Edit → Fix Broken Packages.

    Step 4. Use the Status filter in the bottom-left to filter by Broken and review each package individually.

    Step 5. Click Apply to execute all pending fixes.

    Fix 7: Purge and Reinstall a Specific Broken Package

    If a specific package is permanently broken (appears in every apt run with the same error), purge it completely and reinstall from scratch.

    Step 1. Purge the package and its configuration files:

    sudo apt purge PACKAGE_NAME

    Step 2. Remove any residual package files:

    sudo apt autoremove --purge

    Step 3. Clear the apt cache:

    sudo apt clean

    Step 4. Reinstall the package:

    sudo apt install PACKAGE_NAME

    Fix 8: Fix Broken Packages After a Partial Release Upgrade

    Upgrading from Linux Mint 21 to 22 (or from one Ubuntu LTS base to another) via an incomplete process leaves packages in a mixed state — some from the old base, some from the new.

    Step 1. Run the upgrade fixer:

    sudo apt full-upgrade

    Unlike apt upgrade, full-upgrade is allowed to remove packages to resolve conflicts — necessary during a release upgrade.

    Step 2. After full-upgrade completes, remove obsolete packages from the old release:

    sudo apt autoremove --purge

    Step 3. Run a final check:

    dpkg --audit
    sudo apt --fix-broken install

    If Linux Mint broken packages are still causing errors after these fixes, book a CloudHouse Pay-Per-Ticket Support session — our Linux engineers diagnose complex apt dependency failures remotely.

    Get the Free Linux Server Admin Cheatsheet (PDF)

    Essential commands for server management, networking, and troubleshooting — all on one printable page.

    Running Linux servers? Let us manage them for you.

    Our Managed Linux Server plans cover updates, security hardening, monitoring, and 24/7 incident response — so your servers stay up and your team stays focused.

    • Proactive OS patching and security updates
    • 24×7 monitoring with instant alerting
    • Backup configuration and disaster recovery
    • Dedicated Linux engineers on call
    See Pricing Plans →

    What our customers say

    “Our production server went down at 2 AM. CloudHouse had it back online in under 20 minutes. Incredible response time.”

    Arun S.

    CTO, SaaS Startup

    “They migrated our entire infrastructure from Ubuntu 18 to 22 with zero downtime. Couldn't have asked for better.”

    Deepak N.

    DevOps Lead

    Frequently Asked Questions

    A broken package is one that has an unmet dependency — it requires another package (or a specific version) that is not installed or conflicts with something already installed. Run 'sudo apt --fix-broken install' to automatically resolve most broken package issues.

    Book your free 15-minute diagnosis

    A certified technician will call you back within 15 minutes during business hours.

    Share this article

    Leave a Comment

    Comments (0)

    Loading comments...

    Linux Mint Package Support

    Broken apt packages, dpkg lock files, PPA conflicts — our engineers resolve Linux Mint package manager errors in a single session.

    Call Now — FreeWhatsApp Us

    Why CloudHouse?

    • ISO 27001:2022 certified
    • 12,400+ devices supported
    • 4.9★ on Google
    • Sub-15-minute response

    CloudHouse Technologies

    Innovative cloud solutions for modern businesses. We deliver cutting-edge technology with exceptional service.

    Contact Us

    CloudHouse Technologies Pvt.Ltd
    Special Economic Zone(SEZ),
    Infopark Thirissur,4B-15,
    Indeevaram,Nalukettu Road,
    Koratty, Kerala, India-680308
    0480-27327360
    info@cloudhousetechnologies.com

    Quick Links

    • Our Services
    • Gold Loan Software
    • About Us
    • Contact
    • Terms and Conditions
    • Privacy Policy
    ISO27001:2022
    Certified

    © 2026 CloudHouse Technologies Pvt.Ltd. All rights reserved.

    Back to top