Atop and pcp-atop conflict

I did a dnf update yesterday and ran into the following error:

Transaction failed: Rpm transaction failed.
  - file /etc/sysconfig/atop from install of pcp-atop-7.2.0-1.fc44.x86_64 conflicts with file from package atop-2.13.0-1.fc44.x86_64
  - file /usr/bin/atop from install of pcp-atop-7.2.0-1.fc44.x86_64 conflicts with file from package atop-2.13.0-1.fc44.x86_64
  - file /usr/bin/atopsar from install of pcp-atop-7.2.0-1.fc44.x86_64 conflicts with file from package atop-2.13.0-1.fc44.x86_64
  - file /usr/lib/systemd/system/atop.service from install of pcp-atop-7.2.0-1.fc44.x86_64 conflicts with file from package atop-2.13.0-1.fc44.x86_64
  - file /usr/share/man/man1/atop.1.gz from install of pcp-atop-7.2.0-1.fc44.x86_64 conflicts with file from package atop-2.13.0-1.fc44.x86_64
  - file /usr/share/man/man1/atopsar.1.gz from install of pcp-atop-7.2.0-1.fc44.x86_64 conflicts with file from package atop-2.13.0-1.fc44.x86_64

I certainly do understand what is going on, but I think the packagers made a mistake.

atop was already installed on my system. Then dnf update tried to install the following packages as dependencies:

pcp-atop
pcp-dstat
pcp-htop
pcp-selinux-import

Hmmm. :thinking:

The problem is 3-fold:

  • I never asked pcp-atop to be installed.
  • The versions are different.
  • The descriptions via dnf info is abysmal.

In reality atop 2.13.0 and pcp-atop 7.2.0 provide pretty much the same binary, yet the version difference is not explained that 7.2.0 = 2.13.0
Then it requires manual intervention for even running dnf update successfully.

This really could have been handled better and I ask the 2 package maintainers to find this better way.

Bizarre - I also have F44 atop already installed - no sign of any copilot version wanting to come in and join it.

Has it already been fixed?

What do you get if you run

sudo dnf update -x pcp-atop

It may reveal what caused it to be required.

Well, I manually uninstalled atop. Then the conflict was naturally gone. :wink:

I can’t anymore, since I removed atop.

Am I right in thinking you have installed some of the pcp packages?
Maybe the pcp-atop etc are weak deps that you could exclude?

I think you should report this as a bug against pcp in the Fedora bugtracker about the conflict with atop.

Yes, I had the following installed:

pcp-conf-7.1.5-3.fc44.x86_64
pcp-libs-7.1.5-3.fc44.x86_64
pcp-selinux-7.1.5-3.fc44.x86_64
pcp-7.1.5-3.fc44.x86_64
python3-pcp-7.1.5-3.fc44.x86_64
pcp-system-tools-7.1.5-3.fc44.x86_64

I found another VM where I haven’t removed atop.

Skipping packages with conflicts:
 pcp                                                             x86_64         7.1.0-6.fc44                                                      fedora                                 5.3 MiB
 pcp                                                             x86_64         7.2.0-1.fc44                                                      updates                                4.6 MiB
Skipping packages with broken dependencies:
 pcp-system-tools                                                x86_64         7.1.0-6.fc44                                                      fedora                                 1.1 MiB
 pcp-system-tools                                                x86_64         7.2.0-1.fc44                                                      updates                              465.5 KiB

Hmm, then they’s show up as weak deps, but they show up as regular deps:

Installing dependencies:
 pcp-atop                                                        x86_64         0:7.2.0-1.fc44                                                    updates                              387.7 KiB
 pcp-dstat                                                       x86_64         0:7.2.0-1.fc44                                                    updates                              165.7 KiB
 pcp-htop                                                        x86_64         0:7.2.0-1.fc44                                                    updates                              339.7 KiB
 pcp-selinux-import                                              x86_64         0:7.2.0-1.fc44                                                    updates                               12.3 KiB

Probably not a bad idea. Will do.

While doing so, I found 2510602 – Update of pcp-7.2.0-1.fc43 conflicts with installed package atop

Unfortunately the packagers do not see it as a bug. Nothing I can do in that case, except adding a link to the bug referencing this dicussion.