Bug 2381598

Summary: tmpwatch-2.11-27.fc41.x86_64 cannot be installed in Fedora 42: file /usr/sbin/tmpwatch conflicts
Product: [Fedora] Fedora Reporter: Jan Kratochvil <jan>
Component: tmpwatchAssignee: Jiri Kucera <jkucera>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 42CC: jan, jkucera, jonathan, nsella, pkratoch, ppisar, rpm-software-management
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-07-17 11:13:06 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
existing installed packages list
none
Packages to install by "dnf install" none

Description Jan Kratochvil 2025-07-17 08:03:30 UTC
Installed Fedora 42 to a new disk/filesystem and tried to install all packages I had in former Fedora 38.


Reproducible: Always

Steps to Reproduce:
1. Install Fedora 42 from Fedora-MATE_Compiz-Live-x86_64-42-1.1.iso .
2. dnf distro-sync
3. dnf install --skip-unavailable $(cat to-install)
Actual Results:
Running transaction
Transaction failed: Rpm transaction failed.
  - file /usr/sbin/tmpwatch conflicts between attempted installs of tmpwatch-2.11-27.fc41.x86_64 and tmpwatch-2.11-27.fc41.x86_64
  - file /usr/sbin/rdistd conflicts between attempted installs of rdist-1:6.1.5-85.fc41.x86_64 and rdist-1:6.1.5-85.fc41.x86_64


Expected Results:
Installed packages or some two different package names/versions, not the same.

Comment 1 Jan Kratochvil 2025-07-17 08:04:34 UTC
Created attachment 2097443 [details]
existing installed packages list

Comment 2 Jan Kratochvil 2025-07-17 08:05:05 UTC
Created attachment 2097444 [details]
Packages to install by "dnf install"

Comment 3 Jan Kratochvil 2025-07-17 08:05:34 UTC
dnf5-5.2.13.1-1.fc42.x86_64

Comment 4 Jan Kratochvil 2025-07-17 08:15:48 UTC
It is enough to run:
dnf install tmpwatch

Comment 5 Petr Pisar 2025-07-17 11:05:33 UTC
I can reproduce it dnf5-5.2.15.0-1.fc42.x86_64. The cause is a tmpwatch-2.11-27.fc41.x86_64 package being incompatible with a merge of /usr/bin and /usr/sbin in Fedora 42 <https://fedoraproject.org/wiki/Changes/Unify_bin_and_sbin>:

# rpm -qlvp tmpwatch-2.11-27.fc41.x86_64.rpm | grep bin
lrwxrwxrwx    1 root     root                       23 Jul 20  2024 /usr/bin/tmpwatch -> ../../usr/sbin/tmpwatch
lrwxrwxrwx    1 root     root                       29 Jul 20  2024 /usr/lib/.build-id/b6/03e4877f7392598ea02f15eb879e45a7d003bc -> ../../../../usr/sbin/tmpwatch
-rwxr-xr-x    1 root     root                    36712 Jul 20  2024 /usr/sbin/tmpwatch

The package wants to install /usr/sbin/tmpwatch and /usr/bin/tmpwatch. Because /usr/sbin is a symbolic link to /usr/bin, rpm actually attempts installing /usr/bin/tmpwatch regular file and /usr/bin/tmpwatch symlink. Two files of the same path.

You will get the same error with plain rpm tool:

# rpm --install tmpwatch-2.11-27.fc41.x86_64.rpm 
        file /usr/sbin/tmpwatch conflicts between attempted installs of tmpwatch-2.11-27.fc41.x86_64 and tmpwatch-2.11-27.fc41.x86_64

tmpwatch needs rebuilding.

Comment 6 Jan Kratochvil 2025-07-17 11:11:14 UTC
OK, I have filed it also for rdist as https://bugzilla.redhat.com/show_bug.cgi?id=2381693 .

Comment 7 Petr Pisar 2025-07-17 11:13:06 UTC

*** This bug has been marked as a duplicate of bug 2356903 ***