Bug 1478750
Summary: | Restarting system during dnf install/upgrade breaks rpm db, without a possibility to fix it | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | AsciiWolf <mail> |
Component: | dnf | Assignee: | Igor Gnatenko <ignatenko> |
Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | urgent | Docs Contact: | |
Priority: | unspecified | ||
Version: | 26 | CC: | dmach, jmracek, mhatina, packaging-team-maint, rpm-software-management, vmukhame |
Target Milestone: | --- | Keywords: | Reopened |
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-08-30 06:54:14 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
AsciiWolf
2017-08-06 21:34:32 UTC
Well, what dnf can do? Keep you system running even you disabled power? ;) So, you really think that destroying a rpm db without any possibility to fix it (no, "rpm --rebuilddb" does not help at all) without an OS reinstall every time system freezes during dnf install/upgrade (because of bad package etc.) is a correct behavior? I do understand your point and here is what DNF can do for you. First of all you can try to remove duplicated packages using ``dnf remove --duplicates``. I also create a patch that enhance capability if that command (https://github.com/rpm-software-management/dnf/pull/880). The command `` dnf check`` could discover problems on your system. and then reinstalling packages to bring missing requirements, or removal of duplicates could help. Also it is possible to restore your system using installroot. See my article here http://dnf.baseurl.org/2016/12/15/repair-of-broken-system-with-dnf-2-0/ . In future I have a plan to implement offline upgrade during reboot, that should be less sensitive to packaging problems. Additionally I would like to implement functionality to automatically finish unfinished transaction. Hope that it helps. > is a correct behavior?
yes, it is. You could look on Fedora Atomic that does atomic updates, so either you get new image or you don't. No intermediate steps.
|