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 - dnf autoremove only reports "Error: problem with installed package ..." and quits
Summary: dnf autoremove only reports "Error: problem with installed package ..." and q...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: libsolv
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: rpm-software-management
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-07-20 16:33 UTC by Kamil Páral
Modified: 2016-07-24 20:20 UTC (History)
15 users (show)

Fixed In Version: libsolv-0.6.22-3.fc24
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-07-24 20:20:32 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
output of dnf autoremove -v (3.06 KB, text/plain)
2015-07-20 16:34 UTC, Kamil Páral
no flags Details
output of rpm -qa (89.66 KB, text/plain)
2015-07-20 16:35 UTC, Kamil Páral
no flags Details
debugdata from dnf autoremove --debugsolver (7.04 MB, application/x-7z-compressed)
2015-07-20 16:36 UTC, Kamil Páral
no flags Details
debugsolver from dnf autoremove --allowerasing (7.99 MB, application/x-7z-compressed)
2016-02-22 17:56 UTC, Kamil Páral
no flags Details
debugsolver from dnf install 'libva-intel-driver(x86-32)' (7.96 MB, application/x-7z-compressed)
2016-02-22 17:57 UTC, Kamil Páral
no flags Details

Description Kamil Páral 2015-07-20 16:33:15 UTC
Description of problem:

$ sudo dnf autoremove
Last metadata expiration check performed 2:05:44 ago on Mon Jul 20 16:01:49 2015.
Error: problem with installed package libstdc++-static-5.1.1-4.fc22.i686

That's all I see. Autoremove seems to be prevented from running, because I'm quite positive there should be some leaf packages to be removed. But I see only this single line, and I can't find out any more details. What exactly the problem is - broken deps, something else? How to fix it? It would be great to have some more pointers and suggestions from dnf in this case.

It doesn't seem to be caused by broken deps:

$ sudo dnf repoquery --unsatisfied
Last metadata expiration check performed 2:14:05 ago on Mon Jul 20 16:01:49 2015.

How can I find out what's wrong? Can we make dnf more helpful?


Versdnf-1.0.1-2.fc22.noarch
librepo-1.7.16-1.fc22.x86_64
libsolv-0.6.11-1.fc22.x86_64
hawkey-0.5.7-1.fc22.x86_64
rpm-4.12.0.1-12.fc22.x86_64
ion-Release number of selected component (if applicable):


How reproducible:
always at the moment

Comment 1 Kamil Páral 2015-07-20 16:34:36 UTC
Created attachment 1053983 [details]
output of dnf autoremove -v

Comment 2 Kamil Páral 2015-07-20 16:35:26 UTC
Created attachment 1053984 [details]
output of rpm -qa

Comment 3 Kamil Páral 2015-07-20 16:36:18 UTC
Created attachment 1053985 [details]
debugdata from dnf autoremove --debugsolver

Comment 4 Jonathan Haas 2015-07-30 17:40:05 UTC
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 ~]$

Comment 5 Lucas 2015-08-03 17:24:24 UTC
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]$

Comment 6 Benjamin Xiao 2015-08-08 19:54:29 UTC
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.

Comment 7 Honza Silhan 2015-08-10 12:22:12 UTC
Thanks for the report. Can anyone try `rpm -e --test <problem_pkg>` and post the result, please?

Comment 8 Kamil Páral 2015-08-10 12:58:01 UTC
No output:

$ rpm -e --test libstdc++-static-5.1.1-4.fc22.i686
$ echo $?
0

Comment 9 Lucas 2015-08-10 16:23:53 UTC
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

Comment 10 Kamil Páral 2015-08-10 17:39:40 UTC
Lucas, you need to run "sudo rpm -e --test libtxc_dxtn-1:1.0.1-1.gitef072983.fc22.i686".

Comment 11 Kamil Páral 2015-08-10 17:41:31 UTC
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?

Comment 12 Jonathan Haas 2015-08-10 17:47:42 UTC
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.

Comment 13 Kamil Páral 2016-02-22 17:31:33 UTC
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.

Comment 14 Kamil Páral 2016-02-22 17:56:32 UTC
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

Comment 15 Kamil Páral 2016-02-22 17:57:24 UTC
Created attachment 1129441 [details]
debugsolver from dnf install 'libva-intel-driver(x86-32)'

Comment 16 Benjamin Xiao 2016-04-29 08:57:15 UTC
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.

Comment 17 edcalderon 2016-06-06 04:55:43 UTC
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.

Comment 18 Benjamin Xiao 2016-06-07 18:37:42 UTC
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.

Comment 19 Fedora Admin XMLRPC Client 2016-07-08 09:28:48 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 20 Fedora End Of Life 2016-07-19 17:06:01 UTC
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.

Comment 21 Benjamin Xiao 2016-07-19 17:58:34 UTC
This still happens on Fedora 24, but I can't reopen this. Someone else needs to do it.

Comment 22 Kamil Páral 2016-07-20 08:48:21 UTC
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 .

Comment 23 Igor Gnatenko 2016-07-20 09:13:44 UTC
(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.

Comment 24 Michael Schröder 2016-07-20 10:57:46 UTC
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.

Comment 25 Fedora Update System 2016-07-20 13:01:21 UTC
libsolv-0.6.22-3.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-c4368b5b3c

Comment 26 Kamil Páral 2016-07-20 13:57:08 UTC
(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!

Comment 27 Fedora Update System 2016-07-21 04:21:09 UTC
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

Comment 28 Fedora Update System 2016-07-24 20:20:26 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.