Bug 1227066
Summary: | dnf incorrectly uninstalling dependencies | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Adam Miller <admiller> |
Component: | dnf | Assignee: | Packaging Maintenance Team <packaging-team-maint> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | urgent | Docs Contact: | |
Priority: | urgent | ||
Version: | 23 | CC: | admiller, ignatenko, Jacek.Pliszka, jsilhan, jzeleny, mluscon, orion, packaging-team-maint, pnemade, tim.lauridsen, vmukhame |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-06-20 22:25:04 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: |
Description
Adam Miller
2015-06-01 21:33:27 UTC
Does it work properly if you set: clean_requirements_on_remove=false in /etc/dnf/dnf.conf? Not sure why the default is on. This bug appears to have been reported against 'rawhide' during the Fedora 23 development cycle. Changing version to '23'. (As we did not run this process for some time, it could affect also pre-Fedora 23 development cycle bugs. We are very sorry. It will help us with cleanup during Fedora 23 End Of Life. Thank you.) More information and reason for this action is here: https://fedoraproject.org/wiki/BugZappers/HouseKeeping/Fedora23 Thanks for the report. Please, answer the question from comment 1 and attach the debugdata [1] [1] https://github.com/rpm-software-management/dnf/wiki/Bug-Reporting#dependency-resolution-problem I think one source of this issue is that I don't think packages requested at install time are being marked as wanted by dnf, so dnf feels free to remove them with clean_requirements_on_remove=true. Got it too. Setting clean_requirements_on_remove=false fixes it. Yes, clean_requirements_on_remove=false seems to fix it but I don't know the full implications of that option. This is extremely dangerous behavior, especially in concert with bug 1338921. It can easily lead to an unbootable system if the user happens to remove something that depends on a systemish thing. For more info see bug 1338921. Setting severity and priority to urgent. Perhaps it's not that the option is set, it's that the "Finding unneeded leftover dependencies" step is not detecting "unneeded" properly. It finds too much, including packages that are needed by other things. After investigation it turns out that bug 1338921 was closed as notabug (rightly), because the root problem was 3rd-party packages claiming they provide libraries that the system linker cannot find. That is rightly closed as a problem on the 3rd-party packages, not dnf. This bug however I will argue is very much still real and deserves the urgent status. A nice-to-have feature like automatic leaf dependency cleanup is much less important than not blowing up people's systems in the presence of sub-optimal packaging. Also what is a "leaf dependency" or not is very much a matter of subjective opinion. In the example in comment 0 for example just because I don't want 'GConf2' doesn't mean I no longer want 'createrepo', even though nothing strictly depends on it. This option really needs to default to false or be removed entirely with the feature being permanently disabled; it's just too dangerous to do otherwise. libsolv-0.6.22-1.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-6b1f2faa7d libsolv-0.6.22-1.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-6b1f2faa7d libsolv-0.6.22-1.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report. |