On fedora 18, using apper-0.8.0-2.fc18.x86_64 apper doesn't seem handle dependencies on package removal. Example, $ rpm -e okular error: Failed dependencies: okular >= 4.10.0 is needed by (installed) kdegraphics-7:4.10.0-1.fc18.noarch okular >= 4.10.00 is needed by (installed) calligra-okular-odpgenerator-2.6.0-1.fc18.x86_64 $ sudo yum remove okular Package Arch Version Repository Size ================================================================================================================================================================= Removing: okular ... Removing for dependencies: calligra-okular-odpgenerator ... kdegraphics ... try to use apper to remove okular, yields error box: Dependency resolution failed - Apper A package dependency could not be found. More information... Details: package could not be removed, as other packages depend on it. Reproducible: Always
Please fill a bug against the backend you are currently using. you should get the same problem if you try: pkcon remove okular
Ufortunately, that seems to be not the case. $ rpm -q okular okular-4.10.0-1.fc18.x86_64 $ pkcon remove okular Removing [=========================] Waiting in queue [=========================] Starting [=========================] Running [=========================] Resolving dependencies [=========================] Removing packages [=========================] The following packages have to be removed: calligra-okular-odpgenerator-2.6.0-1.fc18.x86_64 OpenDocument presenter support for okular okular-4.10.0-1.fc18.x86_64 A document viewer kdegraphics-7:4.10.0-1.fc18.noarch KDE Graphics Applications Proceed with changes? [N/y] y ... get policykit-autentication prompt ... [=========================] Removing [=========================] Waiting in queue [=========================] Waiting for authentication [=========================] Waiting in queue [=========================] Starting [=========================] Running [=========================] Resolving dependencies [=========================] Downloading packages [=========================] Testing changes [=========================] Removing packages [=========================] $ rpm -q okular package okular is not installed
Odd, let me try here...
I'm suffering the same symptoms here. Fedora 20, apper-0.8.1-2.fc20.x86_64 Today I was trying to remove Thunar-1.6.3-2.fc20.x86_64 which has one dependent package installed, thunarx-python-0.2.3-9.fc20.x86_64 pkcon handles it just fine: [root@localhost jb]# pkcon remove Thunar Resolving [=========================] Querying [=========================] Testing changes [=========================] Finished [ ] (0%) The following packages have to be removed: thunarx-python-0.2.3-9.fc20.x86_64 Python bindings for the Thunar Extension Framework But apper gives me the "Dependency Resolution Failed" dialog. Also, if I try using rpm I get this: [root@localhost jb]# rpm -e Thunar error: Failed dependencies: libthunarx-2.so.0()(64bit) is needed by (installed) thunarx-python-0.2.3-9.fc20.x86_64 Let me know if I can provide more details to get this solved.
Again, not shure if this is the same Problem here. (Fedora20-32bit) A couple of times Apper was giving me the same (stupid) error message, instead of removing two or more packages depending on each other, even marking all the packages for removal. "yum remove packagename" works fine! If it happens again, I'll try pkcon ;)
See: https://bugzilla.redhat.com/show_bug.cgi?id=877038 The problem is that Apper first tries to remove the packages with allow_deps set to false. In the yum backend, that results in an error if there are packages depending on the package to remove. In the hif backend, allow_deps=false is not supported at all and ALWAYS results in an error. This one-line fix: http://pkgs.fedoraproject.org/cgit/apper.git/tree/apper-0.9.1-allow_deps.patch makes it work for us. (The comment should probably be updated too, but… ;-) )
Git commit 3c1cccdb7f9b0d53da3e2e22bfafe2cefd5fc577 by Aleix Pol. Committed on 28/10/2015 at 01:16. Pushed by apol into branch 'Plasma/5.4'. Fix package removal on PackageKit Allow PackageKit to remove dependencies if necessary. Shouldn't be a problem. Fixes removal in Fedora (see bugs attached) and Archlinux. Related: bug 354415 M +2 -1 libmuon/backends/PackageKitBackend/PKTransaction.cpp http://commits.kde.org/muon/3c1cccdb7f9b0d53da3e2e22bfafe2cefd5fc577
Git commit cc472bd1e3da2f79059e2e30e021d36f4f2b016a by Rex Dieter. Committed on 28/10/2015 at 13:27. Pushed by rdieter into branch 'master'. handle dependencies on package removal M +1 -1 libapper/PkTransaction.cpp http://commits.kde.org/apper/cc472bd1e3da2f79059e2e30e021d36f4f2b016a