How to fix Linux Mint not updating issue due to the broken packages

When a package installation is broken or the dependencies are not resolved, Linux Mint updates will be stalled and you should see unmet dependencies error on the status bar.

Package management of Linux Mint is very stable, but it’s not surprising to get into the issue of your Linux Mint not updating due to broke packages. The problem of broken packages even stops the installation of further program updates, which is not a good thing to happen considering the security loopholes patched daily.

Fix Linux Mint not updating due to broken packages error

In this article, we are going to discuss the causes of broken packages, and show you how to fix them on Linux Mint.

Case I: Unmet dependencies

It is the most common cause of your Linux Mint not getting updates, and the primary reason may be the unmet dependencies. When you install a program, it will also try to install the dependent programs and libraries. If these dependencies are not available to download for any reason such as a server is down or the libraries not maintained by the developer, the system gives off a ‘broken packages’ error.

Dependency issue
Dependencies error

Fix:

Launch the Terminal and enter the following command:

sudo apt-get -f install

The above command installs all the dependencies of the broken package, provided the dependencies are available at the repo.

Installing dependencies
Installing dependencies though Terminal

In the other scenario where the dependencies are not available in the repositories, the sudo apt-get -f install command may not work. In this situation, you should remove the packages. We shall use the Synaptic Package Manager to do the job.

Unmet dependencies (Syn)
Broken packages error on Synaptic

Launch Synaptic Package Manager and select Status on the left panel and click on Broken Dependencies to find the broken package. Click on the red box to the left of the package’s name, and you should get the option to remove it. Mark it for complete removal, and click on Apply on the top panel. The package should be removed.

Broken packages Synaptic
Fixing broken packages on Synaptics

Removing Broken Packages from the Terminal

You can also remove broken packages from the Terminal. First, run the following command to check the broken packages:

sudo apt-get check

Detecting broken packages.
Detecting broken packages

You should get the list of broken packages. Now, assuming the package name is abc, run the following code:

sudo apt-get purge abc

For example, to fix the error in the above screenshot, I should use the command:

sudo apt-get purge ubports-installer

The program and all its configuration files should be removed.

Case II: Package installation error

If there is an error in the installation of any package, it should also return the same error.

Fix:

sudo apt --fix-broken install

The command should try to fix everything and should install/remove whatever that is necessary. Otherwise, you can again use the Synaptic Package Manager to fix it as described in the previous case.

Case III: Broken Repositories

The third cause may be broken repositories and generally occurs when sudo apt-get update is used. The repositories error can be caused due to several reasons, but the following solutions work well for all. To fix the issue, a simple program called YPPA Manager comes in handy.

Fix:

Run the following to install the program:

sudo add-apt-repository ppa:webupd8team/y-ppa-manager
sudo apt-get update
sudo apt-get install y-ppa-manager

Now start YPPA Manager from the application menu, and provide the password. This window should show up:

Y PPA Manager opening window.
Y PPA Manager

Click on Manage PPAs, and you should see a list of all repositories on your system. Now spot the one that was causing the error (from the update command) and purge it. Rerun the update, and the issue should be fixed.

Y-PPA repositories listing.
Y-PPA repositories listing

Conclusion

That’s all you ever need to fix the broken packages and fix the Linux Mint not updating issue. The first and second parts must generally fix everything as the repository error is rare and can be eliminated by paying attention to the quality of packages installed on your system. Usually, try to avoid the packages that are not maintained from the past six months or so to be on a safer side.

How was your experience in fixing the problem? Let us know in the comments below and if you like this article, don’t forget to share it with your friends on social platforms.

Pulkit Chandak
Pulkit Chandak is a Linux enthusiast and has been using and experimenting with open source software, and hardware too since a long time. He is a huge admirer of open source software and wants to ventilate it to all around him. He is interested in reviewing and writing tutorials on Linux and its innumerable distributions. He believes that freedom in software leads to freedom of the mind from the chains of limits.

11 COMMENTS

  1. Thank you for this posting.

    I installed Mint 19.1 on another desktop yesterday and had the following problem. I tried 2 more fresh installs, 3 in all, and the same situation occurred. I have never had this problem before.

    This message box appeared
    An error occurred – E: gconf2: dependency problems – leaving triggers unprocessed
    I clicked on Close

    This message box came next:
    Changes applied -not all changes and updates succeeded. For further details of the failure, please expand the ’Details’ panel below.

    Details:
    Errors were encountered while processing:
    libwebkit2gtk-4.0-37:amd64

    I clicked on Close and entered sudo apt-get -f install via the Terminal and then continued with the update. When the update was finished, I inputted sudo apt-get check and got this:

    Reading package lists… Done
    Building dependency tree
    Reading state information… Done

    I am guessing my system is now good-to-go, i.e. it is not broken?

  2. where were you when I needed you, lol, I had exact same problems, a few weeks ago, so spent many hours trying to find something, and the other problem if your among the very few, there will not be any thing on the web. so you wait. I had to fall back on Windows, I found something like this from memory so don’t copy it, sudo apt-get —configer -f or along those lines it did work, I had already been on the third install after crashing each time from the error of E: gconf2: dependency problems – leaving triggers unprocessed but after closing down I would get the pass word loop and cinnamon-session-cinnamon window. All this takes time and for those of us not solely dedicated to an OS to have the time to play, it is frustrating. I got a lot of help from electricdandyslider from foss community and his/she help took me here so thank you again. I will no more purchase disks from places that sell them from Linux Mint, I have had nothing but trouble, this time and in the past, I try to support Linux this way but now I will only donate to Linux itself and download from the Linux Mint site only, the OS. I will never buy purchase a CD with Linux mint on it again. I have not been game to update the linux yet but with this information will see what happens. it will be the forth time. if it fails.

  3. I had the same problem 2 weeks ago, gave up & went back to Xubuntu. Anyway I tried an install with Mint 19.1 Cinnamon today & again got the same result with only some packages updating & the broken packages messages. I rebooted & went to Synaptic and clicked on ‘Fix broken packages’. That is all I did. Then I went to Update Manager & ran the update again & it went perfectly. I have done some reboots and each time the Update Manager says my system is up to date after I click refresh. While I am pleased with the outcome this problem with Mint would be very discouraging for a brand new Windows ‘migrant’. I have to say I have never had this issue with Ubuntu or Xubuntu, however I usually stick with older supported LTS versions.

  4. ‘http://dl.google.com/linux/earth/deb stable InRelease’ doesn’t support architecture ‘i386’
    Making no update possible anyone know why

  5. Installed ‘Tina 19.2’ on 05/08/2019 and had problem with the Update Manager updating to the latest version on first boot-up so could not install initial software updates and do a Timeshift, this fixed the problem. For anybody who is a bit of a novice like me just make sure nothing else is still open when running the Terminal commands (e.g Synaptic Package Manager) or you will get errors at the Terminal failing to unlock files etc.
    Thanks much appreciated

  6. I just installed 19.2 and there are no repositories entries at all (and no PPAs). I can’t use Synaptic, the Software manager or do an update. This is probably my 50th Linux Installation, this has never happened before.

  7. This week has been a mystery. First, I couldn’t believe how hard it was to get a piece of software that would burn DVDs for crying out loud on Linux Mint 19.1. That was disappointing. Then the updates thing stopped working. Showing as a little red X down at the bottom of the screen. So I thought well heck let’s try to upgrade to 19.2 since maybe support for 19.1 has expired or something. But the upgrade app won’t run, although it tantalizes me with offers of Tina. So I tried the stuff here hoping I was missing something and could fix it. But nothing seemed to be broken in terms of packages. So I thought maybe that last procedure was going to do something,

    sudo add-apt-repository ppa:webupd8team/y-ppa-manager
    sudo apt-get update
    sudo apt-get install y-ppa-manager

    But the message that resulted in the window said not supported. So I couldn’t install it. I went from loving Linux Mint to really seriously wondering about it in one week.

  8. Specifically, the message in the terminal window is (I use a Japanese language system):
    このPPAは bionic をサポートしていません

    Which means: This PPA does not support bionic.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

STAY CONNECTED

24,437FansLike
181FollowersFollow

LATEST ARTICLES

RECENT COMMENTS

Test drive linux online
I have been using MX-Linux as the distro on...
best video players for linux
Most Linux-based systems come with a built-in video player, but let's be honest, it most definitely won't be able to satisfy all of your requirements, due to the fact that default software is mostly made for basic purposes. In this article, we will review the 5 Best Video Players for Linux and thoroughly discuss their features as well as their pros and cons.
essential linux commands
Last week, we shared with you several "cool and fun" commands to get comfortable and confident with the Linux command-line. In our quest to further aid Linux users with mastery of the command line, or CLI, we present you with a variety of command-line utilities essential for all Linux users, regardless of proficiency level.