Whereas there are numerous methods to put in purposes in Ubuntu, I desire to make use of the apt command within the terminal for putting in software program.

Should you do the identical, you might come throughout a dependency error like this:

Some packages couldn’t be put in. This will likely imply that you’ve
requested an not possible scenario or if you’re utilizing the unstable
distribution that some required packages haven’t but been created
or been moved out of Incoming.
The next info might assist to resolve the scenario:

The next packages have unmet dependencies:
green-recorder : Relies upon: python-urllib3 however it’s not installable
E: Unable to right issues, you have got held damaged packages.

Often on It’s FOSS, you’ll discover easy and simple to observe options to sophisticated issues. Sadly, this one shouldn’t be that simple.

On this troubleshooting article, I’ll inform you why this error happens and provides some tips on methods to go about fixing this subject.

Why do you see the “you have got held damaged packages” error?

Fixing Unable to Fix Problems, you’ve kept broken packages

You have been making an attempt to put in an software package deal, likely from a PPA or third-party repository.

Purposes typically want particular variations of libraries and software program part (known as dependencies). These dependencies might not be a part of the appliance package deal itself, however they’re anticipated to both be put in in your system already or put in in the course of the set up of the appliance.

Your Linux system tries to put in these dependencies by itself. But when the dependency package deal model shouldn’t be accessible in your system, it will get confused because it has no strategy to resolve this dependency drawback.

Because of this it informs you that the software program you have been making an attempt to put in is determined by XYZ however this XYZ can’t be put in.

One other usecase is when your package deal might be held is while you attempt to set up two variations of the identical software program. Say you’re putting in a selected model of Wine when you have got one other one put in already.

The right way to go about fixing the “Unable to right issues, you have got held damaged packages” error

You possibly can strive a number of issues to make issues work. It’s essential to have some concepts on putting in/eradicating packages in Linux command line to work issues out right here.

Make it possible for your system’s package deal cache is up to date

First, ensure that native package deal cache is up to date. Your system checks this cache for the accessible packages. It’s doable (however not sure) that the dependency package deal is seen by the system after the cache replace.

sudo apt replace

Strive putting in the troublesome package deal once more and see if it fixes the issue.

Set up the dependency

Should you attempt to set up the troublesome package deal once more and it nonetheless complains about the identical dependency error than maybe that dependency shouldn’t be accessible for distribution model.

Chances are you’ll use the apt search command see when you might this library from another package deal or identify:

sudo apt search package_name

If the package deal is out there, is it the identical model as requested by the package deal you have been making an attempt to put in?

Attempt to set up the dependency package deal and see what occurs:

sudo apt set up dependency_package

Chances are you’ll encounter a dependency chain. You attempt to set up dependency A but it surely complains of B. Then you definately strive putting in B and it complains of C.

It might additionally occur that while you attempt to set up package deal C, it’s already put in. Test the model of package deal C. Is it the identical model as required by package deal B? If sure, then eradicating C and putting in it once more might assist.

Are you able to get the lacking dependency package deal from another supply?

If the lacking dependency package deal can’t be discovered in your system (no ends in apt search), you might attempt to get the dependency package deal from some place else. I do know that’s not very handy factor to do however you don’t have many choices right here.

For instance, within the case of putting in shutter, it complained about libgoo-canvas-perl and this library isn’t any extra accessible on Ubuntu system.

sudo apt set up shutter
Studying package deal lists… Completed
Constructing dependency tree
Studying state info… Completed
Some packages couldn’t be put in. This will likely imply that you’ve
requested an not possible scenario or if you’re utilizing the unstable
distribution that some required packages haven’t but been created
or been moved out of Incoming.
The next info might assist to resolve the scenario:

The next packages have unmet dependencies:
shutter : Relies upon: libgoo-canvas-perl however it’s not going to be put in
E: Unable to right issues, you have got held damaged packages.

Nonetheless, because it was accessible within the earlier variations of Ubuntu, I seemed for this package deal on Ubuntu’s package deal archive and located it below the itemizing of Ubuntu 14.04 right here. I downloaded the .DEB file and put in it.

Now that this dependency package deal is put in, making an attempt to put in the unique software (shutter on this case) mustn’t complain about a minimum of this package deal anymore.

Should you can not discover the dependency package deal anyplace, set up the troublesome package deal from another supply

So within the instance above, I attempted to put in Inexperienced Recorder software utilizing its PPA. This software wants python-urllib3 library however sadly, this library shouldn’t be accessible in my Ubuntu 20.04 system.

[email protected]:~$ apt search python-urllib3
Sorting… Completed
Full Textual content Search… Completed

Clearly, it is a poorly packaged software. The developer made it accessible for Ubuntu 20.04 with out realizing that Ubuntu 20.04 doesn’t help Python 2 anymore and all of the Python libs now begin with python3 prefix. So the python-urllib3 needs to be python3-urllib3.

If you’re in such a scenario, possibly test the challenge’s homepage or search on the web for an alternate supply for putting in it. Maybe there’s a Snap/Flatpak model or some consumer created a PPA for it? If nothing else, you might go together with supply code choice as nicely.

Should you see the held damaged package deal error throughout replace do this

Many of the dialogue to this point assumed that you simply see this error whereas putting in a brand new software. That will not all the time be the case.

Should you see this error while you strive updating your system with sudo apt replace command, then you definately’ll must take a barely totally different strategy.

First, test which package deal is being held with this command:

dpkg –get-selections | grep maintain

Should you see some packages being held, take away them after which go on updating your system or putting in the software program.

You may additionally use Synaptic package deal supervisor for fixing the damaged packages.

Did you handle to repair the difficulty?

As I had talked about earlier, there is no such thing as a easy repair for this drawback. You’ll have to research by yourself and see if it may be mounted or not.

Please share within the feedback in case your drawback will get mounted. If not, I’ll strive that will help you out.

 

unable to correct problems you have held broken packages. mongodb,unable to correct problems, you have held broken packages r,unable to correct problems, you have held broken packages mariadb,the following packages have unmet dependencies,omv you have held broken packages,aptitude unable to correct problems you have held broken packages,apt error e: unable to correct problems, you have held broken packages,unable to correct problems you have held broken packages stackoverflow

Share:

administrator