Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1244873
Summary: | dnf autoremove only reports "Error: problem with installed package ..." and quits | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Kamil Páral <kparal> |
Component: | libsolv | Assignee: | rpm-software-management |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | ben.r.xiao, edcalderon, jonha87, jsilhan, jzeleny, kamikazow, lucassterzinger, mls, mluscon, packaging-team-maint, pnemade, rpm-software-management, tla, uriesk, vmukhame |
Target Milestone: | --- | Keywords: | Reopened, Triaged |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | libsolv-0.6.22-3.fc24 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-07-24 20:20:32 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Attachments: |
Description
Kamil Páral
2015-07-20 16:33:15 UTC
Created attachment 1053983 [details]
output of dnf autoremove -v
Created attachment 1053984 [details]
output of rpm -qa
Created attachment 1053985 [details]
debugdata from dnf autoremove --debugsolver
Same problem here: [jh@linux ~]$ sudo dnf autoremove Last metadata expiration check performed 0:18:12 ago on Thu Jul 30 19:20:59 2015. Fehler: problem with installed package libXScrnSaver-1.2.2-8.fc22.i686. problem with installed package libpng12-1.2.50-8.fc22.i686. problem with installed package libtxc_dxtn-1:1.0.1-1.gitef072983.fc22.i686 [jh@linux ~]$ Also same problem [lucas@lucas-laptop Desktop]$ sudo dnf autoremove Last metadata expiration check performed 0:05:51 ago on Mon Aug 3 12:18:06 2015. Error: problem with installed package libtxc_dxtn-1:1.0.1-1.gitef072983.fc22.i686 [lucas@lucas-laptop Desktop]$ Same problem here as well Last metadata expiration check performed 0:22:51 ago on Sat Aug 8 12:31:09 2015. Error: problem with installed package libtxc_dxtn-1:1.0.0-4.fc22.i686 libtxc_dxtn is brought in as a dependency by Steam. Thanks for the report. Can anyone try `rpm -e --test <problem_pkg>` and post the result, please? No output: $ rpm -e --test libstdc++-static-5.1.1-4.fc22.i686 $ echo $? 0 Here is my output [lucas@lucas-laptop ~]$ sudo rpm -e --test libtxc_dxtn error: "libtxc_dxtn" specifies multiple packages: libtxc_dxtn-1.0.1-1.gitef072983.fc22.i686 libtxc_dxtn-1.0.1-1.gitef072983.fc22.x86_64 Lucas, you need to run "sudo rpm -e --test libtxc_dxtn-1:1.0.1-1.gitef072983.fc22.i686". Interestingly, all the "problems" seem to be solely i686 packages, while I assume we all run x86_64 systems. That could hint something. Issues with multilib handling? I get the following result: [jh@linux ~]$ sudo dnf autoremove Last metadata expiration check performed 22:37:22 ago on Sun Aug 9 21:07:42 2015. Error: problem with installed package libXScrnSaver-1.2.2-8.fc22.i686. problem with installed package libpng12-1.2.50-8.fc22.i686. problem with installed package libtxc_dxtn-1:1.0.1-1.gitef072983.fc22.i686. problem with installed package mesa-dri-drivers-10.6.3-1.20150729.fc22.i686 [jh@linux ~]$ sudo rpm -e --test libXScrnSaver-1.2.2-8.fc22.i686 error: Failed dependencies: libXScrnSaver(x86-32) is needed by (installed) steam-1.0.0.50-4.fc22.i686 [jh@linux ~]$ sudo rpm -e --test libpng12-1.2.50-8.fc22.i686 error: Failed dependencies: libpng12(x86-32) is needed by (installed) steam-1.0.0.50-4.fc22.i686 [jh@linux ~]$ sudo rpm -e --test libtxc_dxtn-1:1.0.1-1.gitef072983.fc22.i686 error: Failed dependencies: libtxc_dxtn(x86-32) is needed by (installed) steam-1.0.0.50-4.fc22.i686 [jh@linux ~]$ sudo rpm -e --test mesa-dri-drivers-10.6.3-1.20150729.fc22.i686 error: Failed dependencies: mesa-dri-drivers(x86-32) is needed by (installed) steam-1.0.0.50-4.fc22.i686 But I don't have any problems/unresolved dependencies with other dnf commands and steam works fine. There is something very fishy in dnf or libsolv and I have found a very nice example: $ sudo dnf autoremove Last metadata expiration check performed 0:05:04 ago on Mon Feb 22 17:44:22 2016. Error: problem with installed package libva-intel-driver-1.6.2-1.fc23.i686 (try to add '--allowerasing' to command line to replace conflicting packages) $ sudo dnf autoremove --allowerasing Last metadata expiration check performed 0:05:19 ago on Mon Feb 22 17:44:22 2016. Dependencies resolved. ================================================================================ Package Arch Version Repository Size ================================================================================ Removing: libva-intel-driver i686 1.6.2-1.fc23 @rpmfusion-free-updates 1.8 M libva-intel-driver x86_64 1.6.2-1.fc23 @rpmfusion-free-updates 1.7 M Downgrading: steam i686 1.0.0.50-2.fc22 rpmfusion-nonfree 2.6 M Transaction Summary ================================================================================ Remove 2 Packages Downgrade 1 Package Total download size: 2.6 M Is this ok [y/N]: y Downloading Packages: steam-1.0.0.50-2.fc22.i686.rpm 4.8 MB/s | 2.6 MB 00:00 -------------------------------------------------------------------------------- Total 4.1 MB/s | 2.6 MB 00:00 Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Downgrading : steam-1.0.0.50-2.fc22.i686 1/4 Erasing : steam-1.0.0.51-1.fc23.i686 2/4 Erasing : libva-intel-driver-1.6.2-1.fc23.i686 3/4 Erasing : libva-intel-driver-1.6.2-1.fc23.i686 4/4 Verifying : steam-1.0.0.50-2.fc22.i686 1/4 Verifying : libva-intel-driver-1.6.2-1.fc23.i686 2/4 Verifying : libva-intel-driver-1.6.2-1.fc23.x86_64 3/4 Verifying : steam-1.0.0.51-1.fc23.i686 4/4 Removed: libva-intel-driver.i686 1.6.2-1.fc23 libva-intel-driver.x86_64 1.6.2-1.fc23 Downgraded: steam.i686 1.0.0.50-2.fc22 Complete! $ sudo dnf autoremove Last metadata expiration check performed 0:05:28 ago on Mon Feb 22 17:44:22 2016. Dependencies resolved. Nothing to do. Complete! $ sudo dnf update steam Last metadata expiration check performed 0:05:34 ago on Mon Feb 22 17:44:22 2016. Dependencies resolved. ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: libva-intel-driver i686 1.6.2-1.fc23 rpmfusion-free-updates 295 k libva-intel-driver x86_64 1.6.2-1.fc23 rpmfusion-free-updates 297 k Upgrading: steam i686 1.0.0.51-1.fc23 rpmfusion-nonfree-updates-testing 2.6 M Transaction Summary ================================================================================ Install 2 Packages Upgrade 1 Package Total download size: 3.2 M Is this ok [y/N]: y Downloading Packages: (1/3): libva-intel-driver-1.6.2-1.fc23.x86_64.r 1.5 MB/s | 297 kB 00:00 (2/3): libva-intel-driver-1.6.2-1.fc23.i686.rpm 1.1 MB/s | 295 kB 00:00 (3/3): steam-1.0.0.51-1.fc23.i686.rpm 2.0 MB/s | 2.6 MB 00:01 -------------------------------------------------------------------------------- Total 2.2 MB/s | 3.2 MB 00:01 Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Installing : libva-intel-driver-1.6.2-1.fc23.i686 1/4 Upgrading : steam-1.0.0.51-1.fc23.i686 2/4 Installing : libva-intel-driver-1.6.2-1.fc23.x86_64 3/4 Cleanup : steam-1.0.0.50-2.fc22.i686 4/4 Verifying : libva-intel-driver-1.6.2-1.fc23.i686 1/4 Verifying : libva-intel-driver-1.6.2-1.fc23.x86_64 2/4 Verifying : steam-1.0.0.51-1.fc23.i686 3/4 Verifying : steam-1.0.0.50-2.fc22.i686 4/4 Installed: libva-intel-driver.i686 1.6.2-1.fc23 libva-intel-driver.x86_64 1.6.2-1.fc23 Upgraded: steam.i686 1.0.0.51-1.fc23 Complete! $ sudo dnf autoremove Last metadata expiration check performed 0:05:40 ago on Mon Feb 22 17:44:22 2016. Error: problem with installed package libva-intel-driver-1.6.2-1.fc23.i686 (try to add '--allowerasing' to command line to replace conflicting packages) As you can see, a new '--allowerasing' hint is now being displayed with autoremove error output. If you do that, you see that autoremove wants to remove a i686 multilib library, but it can't, because it breaks dependencies (this is the root cause of the bug, I believe, it should not try to remove it). If you allow erasing, it will remove the i686 lib and also either remove or in this case downgrade the app that depends on it. Once you install/update the app again, it restores the original problem with autoremove. When I compare steam-1.0.0.50-2.fc22.i686 and steam-1.0.0.51-1.fc23.i686, the latter one has an extra requirement 'libva-intel-driver(x86-32)', which seems to bring both archs of libva-intel-driver, but I don't understand why: $ sudo dnf install 'libva-intel-driver(x86-32)' Last metadata expiration check performed 0:28:16 ago on Mon Feb 22 17:44:22 2016. Dependencies resolved. ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: libva-intel-driver i686 1.6.2-1.fc23 rpmfusion-free-updates 295 k libva-intel-driver x86_64 1.6.2-1.fc23 rpmfusion-free-updates 297 k When I do the same with yum, it only installs i686 version: $ sudo yum-deprecated install 'libva-intel-driver(x86-32)' Yum command has been deprecated, use dnf instead. See 'man dnf' and 'man yum2dnf' for more information. Loaded plugins: langpacks Resolving Dependencies --> Running transaction check ---> Package libva-intel-driver.i686 0:1.6.2-1.fc23 will be installed --> Finished Dependency Resolution --> Finding unneeded leftover dependencies Found and removing 0 unneeded dependencies Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: libva-intel-driver i686 1.6.2-1.fc23 rpmfusion-free-updates 295 k I assume this is somehow related to the fact that autoremove then reports a problem with it. Created attachment 1129440 [details]
debugsolver from dnf autoremove --allowerasing
dnf-1.1.6-2.fc23.noarch
rpm-4.13.0-0.rc1.11.fc23.x86_64
libsolv-0.6.14-7.fc23.x86_64
hawkey-0.6.2-3.fc23.x86_64
librepo-1.7.16-2.fc23.x86_64
Created attachment 1129441 [details]
debugsolver from dnf install 'libva-intel-driver(x86-32)'
I have a similar issue with the Spotify client, which is a 64-bit package that pulls in a 32-bit dependency compat-libgcrypt. When I do autoremove it says: Last metadata expiration check: 0:48:31 ago on Fri Apr 29 16:06:45 2016. Error: problem with installed package compat-libgcrypt-1.5.5-5.fc23.i686. problem with installed package libtxc_dxtn-1:1.0.1-1.gitef072983.fc23.i686. problem with installed package libva-intel-driver-1.6.2-1.fc23.i686 (try to add '--allowerasing' to command line to replace conflicting packages) The libtxc_dxtn and libva-intel-driver errors is due to Steam. I fixed the issue just reinstalling the package: dnf reinstall libtxc_dxtn dnf reinstall libva-intel-driver It reinstall booth 32 and 64 bits Autoremove outputs: sudo dnf autoremove Last metadata expiration check: 0:17:06 ago on Sun Jun 5 22:30:13 2016. Dependencies resolved. Nothing to do. Isn't it because reinstall marks those packages as user installed? I've noticed that reinstall seems to remove the package from /var/lib/dnf/yumdb. This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component. Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed. This still happens on Fedora 24, but I can't reopen this. Someone else needs to do it. Yes, I see it as well. However, I wonder if this could be a consequence of https://fedoraproject.org/wiki/Common_F24_bugs#packagekit-userinstalled . (In reply to Kamil Páral from comment #22) > Yes, I see it as well. However, I wonder if this could be a consequence of > https://fedoraproject.org/wiki/Common_F24_bugs#packagekit-userinstalled . possibly, but according to your comment 13 something wrong with libsolv. Regarding the autoremove errors: only the i686 version is marked as userinstalled, so libsolv detects that the x86_64 package is unneeded. But that contradicts the lock-step implementation, which enforces that the x86_64 package of the same name and version needs to be installed. This could be fixed in hawkey, but I guess it's also valid to make libsolv's unneeded package calculation aware of the lockstep. libsolv-0.6.22-3.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-c4368b5b3c (In reply to Fedora Update System from comment #25) > libsolv-0.6.22-3.fc24 has been submitted as an update to Fedora 24. > https://bodhi.fedoraproject.org/updates/FEDORA-2016-c4368b5b3c This update seems to fix the issue. Before: $ sudo dnf autoremove [sudo] password for kparal: Last metadata expiration check: 23:09:36 ago on Tue Jul 19 16:41:47 2016. Error: problem with installed package libva-intel-driver-1.7.1-1.fc24.i686 (try to add '--allowerasing' to command line to replace conflicting packages) $ sudo dnf autoremove --allowerasing Last metadata expiration check: 23:09:45 ago on Tue Jul 19 16:41:47 2016. Dependencies resolved. ================================================================================================================================== Package Arch Version Repository Size ================================================================================================================================== Removing: f23-backgrounds-base noarch 23.1.0-2.fc24 @@commandline 20 M f23-backgrounds-gnome noarch 23.1.0-2.fc24 @@commandline 312 gnome-terminal-nautilus x86_64 3.20.2-2.fc24 @@commandline 68 k libva-intel-driver i686 1.7.1-1.fc24 @@commandline 2.1 M libva-intel-driver x86_64 1.7.1-1.fc24 @@commandline 2.0 M python2-augeas noarch 0.5.0-5.fc24 @@commandline 71 k python2-caribou noarch 0.4.20-2.fc24 @@commandline 132 k python2-cups x86_64 1.9.72-8.fc24 @@commandline 220 k python2-dnf-plugins-core noarch 0.1.21-2.fc24 @@commandline 334 k python2-sssdconfig noarch 1.13.4-3.fc24 @@commandline 222 k steam i686 1.0.0.52-1.fc24 @@commandline 2.6 M Transaction Summary ================================================================================================================================== Remove 11 Packages After: $ sudo dnf autoremove Last metadata expiration check: 0:00:11 ago on Wed Jul 20 15:53:05 2016. Dependencies resolved. ================================================================================================================================== Package Arch Version Repository Size ================================================================================================================================== Removing: f23-backgrounds-base noarch 23.1.0-2.fc24 @@commandline 20 M f23-backgrounds-gnome noarch 23.1.0-2.fc24 @@commandline 312 gnome-terminal-nautilus x86_64 3.20.2-2.fc24 @@commandline 68 k python2-augeas noarch 0.5.0-5.fc24 @@commandline 71 k python2-caribou noarch 0.4.20-2.fc24 @@commandline 132 k python2-cups x86_64 1.9.72-8.fc24 @@commandline 220 k python2-dnf-plugins-core noarch 0.1.21-2.fc24 @@commandline 334 k python2-sssdconfig noarch 1.13.4-3.fc24 @@commandline 222 k Transaction Summary ================================================================================================================================== Remove 8 Packages Well done, thanks! libsolv-0.6.22-3.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-c4368b5b3c libsolv-0.6.22-3.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report. |