Description of problem: The installation is fine but removing xguest also drags selinux and its policy along it. Version-Release number of selected component (if applicable): 1.0.10-31.fc21 How reproducible: Always Steps to Reproduce: 1.Install xguest 2.Remove xguest 3. Actual results: Removing xguest also erase selinux and its policies Expected results: Only xguest and its dependencies from the installation are removed Additional info: Installing xguest: Transaction ID : 41 Begin time : Wed Jul 1 09:01:32 2015 Begin rpmdb : 2176:57d65cdbe6b876bdc45855fb409967205be27d3d End time : 09:02:58 2015 (86 seconds) End rpmdb : 2182:89e63a1614a50549a4d86c583b0b0b96343293f9 User : Luya Tshimbalanga <luya> Return-Code : Success Command Line : install xguest Transaction performed with: Installed dnf-1.0.1-2.fc22.noarch (unknown) Upgraded rpm-4.12.0.1-11.fc22.x86_64 (unknown) Packages Altered: Install imlib2-1.4.6-3.fc22.x86_64 @fedora Install openbox-3.5.2-7.fc22.x86_64 @fedora Install openbox-libs-3.5.2-7.fc22.x86_64 @fedora Install policycoreutils-sandbox-2.3-16.fc22.x86_64 @fedora Install xguest-1.0.10-31.fc21.noarch @fedora Install xorg-x11-server-Xephyr-1.17.2-1.fc22.x86_64 @updates Scriptlet output: 1 Changing password for user xguest. 2 passwd: all authentication tokens updated successfully. Attemp to remove xguest $ sudo dnf erase xguest [sudo] password for luya: Dependencies resolved. ================================================================================ Package Arch Version Repository Size ================================================================================ Removing: imlib2 x86_64 1.4.6-3.fc22 @System 625 k openbox x86_64 3.6-3.fc22 @System 993 k openbox-libs x86_64 3.6-3.fc22 @System 190 k policycoreutils-sandbox x86_64 2.3-16.fc22 @System 26 k selinux-policy noarch 3.13.1-128.4.fc22 @System 18 k selinux-policy-targeted noarch 3.13.1-128.4.fc22 @System 10 M xguest noarch 1.0.10-31.fc21 @System 21 k xorg-x11-server-Xephyr x86_64 1.17.2-1.fc22 @System 2.3 M Transaction Summary ================================================================================ Remove 8 Packages Installed size: 14 M Is this ok [y/N]: n Operation aborted.
This is the default dnf behaviour. If you want to change it, set 'clean_requirements_on_remove' to 'False' in your /etc/dnf/dnf.conf.
(In reply to Petr Lautrbach from comment #1) > This is the default dnf behaviour. If you want to change it, set > 'clean_requirements_on_remove' to 'False' in your /etc/dnf/dnf.conf. Then can you explain this behaviour below? $ sudo dnf erase xguest [sudo] password for luya: Dependencies resolved. ================================================================================ Package Arch Version Repository Size ================================================================================ Removing: adobe-source-han-sans-cn-fonts noarch 1.004-1.fc23 @System 56 M adobe-source-han-sans-twhk-fonts noarch 1.004-1.fc22 @System 38 M aldusleaf-crimson-text-fonts noarch 0.8-0.5.20130806.fc23 @System 660 k apanov-heuristica-fonts noarch 1:1.0.2-5.fc23 @System 1.3 M google-roboto-common noarch 1.2-9.fc23 @System 297 k google-roboto-condensed-fonts noarch 1.2-9.fc23 @System 684 k google-roboto-fonts noarch 1.2-9.fc23 @System 1.4 M imlib2 x86_64 1.4.6-4.fc23 @System 608 k impallari-lobster-fonts noarch 1.4-10.fc23 @System 38 k linux-libertine-fonts noarch 5.3.0-7.2012_07_02.fc23 @System 3.3 M linux-libertine-fonts-common noarch 5.3.0-7.2012_07_02.fc23 @System 93 k openbox x86_64 3.6.1-1.fc23 @System 1.0 M openbox-libs x86_64 3.6.1-1.fc23 @System 188 k paratype-pt-sans-caption-fonts noarch 20141121-2.fc23 @System 745 k paratype-pt-serif-caption-fonts noarch 20141121-2.fc23 @System 718 k paratype-pt-serif-fonts noarch 20141121-2.fc23 @System 1.3 M policycoreutils-sandbox x86_64 2.4-12.fc23 @System 26 k selinux-policy-targeted noarch 3.13.1-147.fc23 @System 11 M sil-doulos-fonts noarch 4.104-13.fc23 @System 2.1 M tangerine-fonts noarch 1.3-4.fc23 @System 126 k tlomt-junction-fonts noarch 2.0-12.fc23 @System 23 k tlomt-league-gothic-fonts noarch 1.0-9.fc23 @System 18 k tlomt-orbitron-fonts noarch 1.000-11.fc23 @System 84 k xguest noarch 1.0.10-32.fc23 @System 21 k xorg-x11-server-Xephyr x86_64 1.18.0-0.4.20150907.fc23 @System 2.3 M yanone-kaffeesatz-fonts noarch 20100514-9.fc23 @System 534 k Transaction Summary ================================================================================ Remove 26 Packages Installed size: 122 M Is this ok [y/N]: That is really broken requirement considering removing xguest should only drag xorg-x11-server-Xephyr and openbox in this case.
I'd say that it depends which requirements were installed with xguest. E.g. on my system: # dnf install xguest Installing: xguest noarch 1.0.10-32.fc23 rawhide 21 k Transaction Summary ========================================================================================================================================================================== Install 1 Package # dnf remove xguest Removing: xguest noarch 1.0.10-32.fc23 @rawhide 21 k Transaction Summary ========================================================================================================================================================================== Remove 1 Package
(In reply to Petr Lautrbach from comment #3) > I'd say that it depends which requirements were installed with xguest. In my case using default dnf behaviour $ sudo dnf install xguest ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: openbox x86_64 3.6.1-1.fc23 fedora 321 k openbox-libs x86_64 3.6.1-1.fc23 fedora 86 k policycoreutils-sandbox x86_64 2.4-12.fc23 updates-testing 173 k xguest noarch 1.0.10-32.fc23 fedora 21 k Transaction Summary ================================================================================ Install 4 Packages Total download size: 602 k Installed size: 1.2 M Removing it produce the result form comment #0 yet doing history undo $ sudo dnf history undo 112 Undoing transaction 112, from Sat Oct 3 12:29:26 2015 Install openbox-3.6.1-1.fc23.x86_64 @fedora Install openbox-libs-3.6.1-1.fc23.x86_64 @fedora Install policycoreutils-sandbox-2.4-12.fc23.x86_64 @updates-testing Install xguest-1.0.10-32.fc23.noarch @fedora ================================================================================ Package Arch Version Repository Size ================================================================================ Removing: openbox x86_64 3.6.1-1.fc23 @System 1.0 M openbox-libs x86_64 3.6.1-1.fc23 @System 188 k policycoreutils-sandbox x86_64 2.4-12.fc23 @System 26 k xguest noarch 1.0.10-32.fc23 @System 21 k Transaction Summary ================================================================================ Remove 4 Packages Installed size: 1.2 M Is this ok [y/N]: y Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Erasing : xguest-1.0.10-32.fc23.noarch 1/4 Erasing : policycoreutils-sandbox-2.4-12.fc23.x86_64 2/4 Erasing : openbox-3.6.1-1.fc23.x86_64 3/4 Erasing : openbox-libs-3.6.1-1.fc23.x86_64 4/4 Verifying : openbox-3.6.1-1.fc23.x86_64 1/4 Verifying : policycoreutils-sandbox-2.4-12.fc23.x86_64 2/4 Verifying : openbox-libs-3.6.1-1.fc23.x86_64 3/4 Verifying : xguest-1.0.10-32.fc23.noarch 4/4 Removed: openbox.x86_64 3.6.1-1.fc23 openbox-libs.x86_64 3.6.1-1.fc23 policycoreutils-sandbox.x86_64 2.4-12.fc23 xguest.noarch 1.0.10-32.fc23 Complete! I am still baffled about the need to remove fonts and selinux-policy-targeted with default dnf setting. Is your dnf transaction on comment #3 done with default setting as well? I succesfully reproduced the problem with other Fedora version 22 and Rawhide running on Gnome Boxes.
Assigning to dnf package.
Reopening because the bug still occurs and removing xguest should not also remove selinux-policy with default dnf behaviour.
Relevant test running on clean installed Fedora Workstation after installing xguest: $ sudo dnf remove xguest [sudo] password for experience: Dependencies resolved. ================================================================================ Package Arch Version Repository Size ================================================================================ Removing: imlib2 x86_64 1.4.6-4.fc23 @System 608 k openbox x86_64 3.6.1-1.fc23 @System 1.0 M openbox-libs x86_64 3.6.1-1.fc23 @System 188 k policycoreutils-sandbox x86_64 2.4-12.fc23 @System 26 k selinux-policy noarch 3.13.1-147.fc23 @System 18 k selinux-policy-targeted noarch 3.13.1-147.fc23 @System 11 M xguest noarch 1.0.10-32.fc23 @System 21 k xorg-x11-server-Xephyr x86_64 1.18.0-0.4.20150907.fc23 @System 2.3 M Transaction Summary ================================================================================ Remove 8 Packages Installed size: 15 M Is this ok [y/N]:
Ok, now I see where the problem lies. Anaconda should mark all installed packages as installed by user. Unfortunately, there is currently no dnf api to do so. We will provide an api and ping anaconda guys afterwards.
What kind of installation procedure did you use for that fresh Fedora Workstation? I am not able to reproduce it and DNF already treats packages installed by anaconda as installed by user.
I created a root account during the installation, extra user account as admin is from post installation on gnome-shell. I then installed xguest as an example as usual using sudo. Trying to remove xguest again led to comment #7.dnf.conf is left untouched.
But it was a fresh anaconda installation, right?
Yes, it was. I can easily reproduce via Gnome Boxes too.
Please run "dnf remove xguest --debugsolver" and attach produced debugdata into this report.
... and also the content of your /var/lib/dnf/history.
Created attachment 1099741 [details] [testcase] dnf remove xguest --debugsolver it seems --debugsolver does not do anything unless I missed something
Created attachment 1099742 [details] [testcase] content from var/lib/dnf/20151028 There were several directory inside 20151028 folder so I chose on named '1'. Both case are done on a stock Fedora 22 via Gnome Boxes.
--debugsolver should have created a folder named debugdata in your $PWD and I really need /var/lib/dnf/history not /var/lib/dnf/20151028.
Also please check whether this is not a duplicate of #1259865.
Created attachment 1102379 [details] Requested debugdata folder
Created attachment 1102383 [details] /var/lib/dnf/history folder Requested folders included.
(In reply to Michal Luscon from comment #18) > Also please check whether this is not a duplicate of #1259865. Looking by that number, #1259865 should be the duplicate in this case. At that time I didn't know it was a dnf issue.
This is a duplicate of #1292915. Xguest package prerequires selinux-policy-targeted and policycoreutils-sandbox. *** This bug has been marked as a duplicate of bug 1292915 ***