Bug 2381598 - tmpwatch-2.11-27.fc41.x86_64 cannot be installed in Fedora 42: file /usr/sbin/tmpwatch conflicts
Summary: tmpwatch-2.11-27.fc41.x86_64 cannot be installed in Fedora 42: file /usr/sbin...
Keywords:
Status: CLOSED DUPLICATE of bug 2356903
Alias: None
Product: Fedora
Classification: Fedora
Component: tmpwatch
Version: 42
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Jiri Kucera
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-07-17 08:03 UTC by Jan Kratochvil
Modified: 2025-07-17 11:13 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-07-17 11:13:06 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
existing installed packages list (67.65 KB, text/plain)
2025-07-17 08:04 UTC, Jan Kratochvil
no flags Details
Packages to install by "dnf install" (101.33 KB, text/plain)
2025-07-17 08:05 UTC, Jan Kratochvil
no flags Details

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 ***


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