could not satisfy dependencies:
- removing kparts breaks dependency ‘kparts’ required by khtml
anything I try to install I get the same error message
could not satisfy dependencies:
anything I try to install I get the same error message
Temporarily remove khtml
and then reinstall it later; this often works.
khtml is an AUR package. So you need to uninstall it first (sudo pacman -R khtml
), then run your update, and then reinstall (build) khtml (pamac build khtml
). Rebuilding khtml should then install its required dependency kparts5
:
pamac info khtml INT ✘
Name : khtml
Version : 5.115.0-1
Description : KHTML APIs
URL : https://community.kde.org/Frameworks
Licenses : LGPL
Repository : AUR
Groups : kf5-aids
Depends On : giflib kparts5 kjs phonon-qt5
Optional Dependencies : --
Make Dependencies : extra-cmake-modules gperf
Check Dependencies : --
Provides : --
Replaces : --
Conflicts With : --
Maintainer : duanlab
First Submitted : Thu 07 Mar 2024 02:37:58
Last Modified : Thu 07 Mar 2024 02:37:58
Votes : 6
Out of Date : --
Also, do you (or any of your packages) actually need khtml
, or is it just a remnant from KDE Plasma 5?
pactree -r khtml
It’s installed on my system too, albeit most likely as you said, a legacy from Plasma5:
pamac search -a khtml | tail -2
khtml 5.115.0-1 [Installed] AUR
…and:
pactree -r khtml
khtml
Doesn’t seem to have any dependencies, at least on this system.
In case more verification is needed …
khtml
is not a required package.
Its possible that on some system or another it may be a dependency of some other AUR package you do want. Or maybe you are working as a developer with deprecated plasma widgets for some reason.
Otherwise - if you dont know what it is, and if you dont have any packages requiring it, etc … it can (and likely should) be removed post haste.
How do I remove it?
sudo pacman -Rns khtml
should do it.
Check first though if other packages show up for removal. If they do, then follow what @scotty65 suggested for reinstalling it and also put back those other packages, if they really are needed (I doubt that).
I didn’t bother to execute the command myself, as no dependencies were shown and there have, so far, for me in this case, been no issues with updates. YMMV.
I ran this command: sudo pacman -Rns khtml, and got the error:
error: failed to prepare transaction (could not satisfy dependencies)
:: removing khtml breaks dependency ‘khtml’ required by calligra
Maybe I need to uninstall calligra?
khtml
was dropped from the Manjaro stable repo as of [Stable Update] 2024-05-18 - Linux-Firmware, PHP, Gitlab, Qt6 and is now only available in the AUR.
Either way, khtml
now depends on kparts5
.
calligra
no longer depends on khtml
.
It appears you haven’t updated in a number of months and may be in an unsupported, partial upgrade state. Make sure your mirrors are up to date and do not attempt to update AUR packages until after you’ve updated all repo packages and rebooted.
Did that. Still the same error:
looking for conflicting packages…
error: failed to prepare transaction (could not satisfy dependencies)
:: removing kparts breaks dependency ‘kparts’ required by khtm
#--------------------------------------------#
could not satisfy dependencies:
Why would you now want to remove kparts?
I thought you ought to remove khtml - and possibly calligra.
… and then run a full update using pacman
Calligra is also something which can safely be removed (and later reinstalled, if needed) as it’s not a core package.
Did what?
Sorry, that doesn’t help us help you.
Please provide the output from whatever terminal commands you ran and the output with proper formatting.
See:
This same error:
removing kparts breaks dependency ‘kparts’ required by khtml
I even Removed Calligra and ran the update again and it gave me the same error.
I’m suspecting a system maintenance issue here; what does pacdiff -o
show?
Another suggestion:
If you need to use AUR packages, you’ll be best to use at least the Testing branch, rather than Stable, as it’s closer to being in sync with Arch.
Did you remember to remove khtml
after removing Calligra before you attempted your update?
Indeed.
I’ve dealt with situations where multiple packages had to be removed and (where needed) reinstalled. The thing with Linux is, you can do that.
But it does sometimes need a bit of knowledge and experience.
I have a fond memory of that APT bug back when Mint was my daily driver, taking out most of the KDE Plasma 4 GUI stuff.
again:
why would you want to remove kparts - didn’t you want to remove khtml?
share the full command output, don’t just paraphrase parts of it