Bug 1404897 - transaction error blocks update ; caused by a file being updated
Summary: transaction error blocks update ; caused by a file being updated
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: rpm
Version: 25
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Packaging Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-12-15 03:12 UTC by Przemek Klosowski
Modified: 2017-12-12 10:39 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-12-12 10:39:03 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
dnf session log (20.40 KB, text/plain)
2016-12-15 03:12 UTC, Przemek Klosowski
no flags Details

Description Przemek Klosowski 2016-12-15 03:12:33 UTC
Created attachment 1231945 [details]
dnf session log

Description of problem:
update transaction is blocked by a file conflict between the same file from old and new package being updated, even though replacing such files is the whole point of the update!

THis only happens in rare circumstances: during entire F24->F25 upgrade I ran into maybe four such cases, but they actually block the entire upgrade, so I'd say it's an important issue.

It could very well be a tricky packaging issue with few isolated packages, but still DNF should deal with it more gracefully.

The usual workaround is to manually remove the old version of the package, and then manually reinstall the new one---it worked for me in all cases.

Version-Release number of selected component (if applicable):
dnf-1.1.10-4.fc25.noarch


How reproducible:
only happens in rare circumstances


Steps to Reproduce:
1. dnf update --enablerepo=updates-debuginfo 

Actual results:
Error: Transaction check error:
  file /usr/lib/debug/.build-id/18/496992b74e10303057d6cc33a77d74e84197e2.1 from install of kernel-debuginfo-4.8.13-300.fc25.x86_64 conflicts with file from package kernel-debuginfo-4.8.12-300.fc25.x86_64


Expected results: successful update

Comment 1 Przemek Klosowski 2016-12-15 03:21:53 UTC
another bug 1396848 shows the same symptoms of a file conflict.
Also, bug 1396319 and bug 1396849 show similar behavior, but in those the file moved between packages.

Comment 2 Igor Gnatenko 2016-12-19 12:39:18 UTC
Unfortunately DNF can't do much about this, but RPM can: see https://fedoraproject.org/wiki/Changes/ParallelInstallableDebuginfo

Comment 3 Panu Matilainen 2016-12-19 12:59:50 UTC
Note that file conflicts are generally packaging errors, rpm is only doing its job by preventing install of conflicting files into the same space.

Debuginfo packages are indeed a bit special because they're rpm-created, but then unlike other packages they're also trivial to work around because you can just remove them since nothing actually depends on them.

Comment 4 Przemek Klosowski 2016-12-19 16:00:20 UTC
(In reply to Igor Gnatenko from comment #2)
> Unfortunately DNF can't do much about this, but RPM can: see
> https://fedoraproject.org/wiki/Changes/ParallelInstallableDebuginfo

I believe that this problem also arises for regular, non-debuginfo packages mentioned in comment 1.

Comment 5 Panu Matilainen 2016-12-20 05:21:58 UTC
Well yes, file conflicts can and do happen, but those are *packaging* bugs.

And yes, a package can even conflict with newer version of itself via symlinks to directories and such.

Comment 6 Fedora End Of Life 2017-11-16 19:17:01 UTC
This message is a reminder that Fedora 25 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 25. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '25'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 25 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 7 Fedora End Of Life 2017-12-12 10:39:03 UTC
Fedora 25 changed to end-of-life (EOL) status on 2017-12-12. Fedora 25 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.


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