Package conflict in Discover when upgrading

Hello Fedora community,
I’m running Fedora 42 with KDE Plasma, and I’m seeing a package-conflict error in Discover every time I try to apply updates. I’m not sure how to proceed and would appreciate any advice.
I opened Discover to apply system updates. Discover keeps reporting different versions of the same conflict:


I’ve tried restarting discover and running sudo dnf upgrade from the terminal. Despite this, the GUI update still fails, and I’m uncertain which package I should remove or how to resolve the duplication.
Any guidance on next steps would be very much appreciated.

Thank you in advance for your help.

Please share the output of dnf list NetworkManager-vpnc and rpm -qa NetworkManager-vpnc.

❯ dnf list NetworkManager-vpnc
Updating and loading repositories:
 Beekeeper Studio Repository                                                                                                                               100% |   6.5 KiB/s |   3.0 KiB |  00m00s
 Copr repo for wezterm-nightly owned by wezfurlong                                                                                                         100% |   1.2 KiB/s |   1.5 KiB |  00m01s
 PostgreSQL common RPMs for Fedora 42 - x86_64                                                                                                             100% |  10.7 KiB/s |   3.0 KiB |  00m00s
 RPM Fusion for Fedora 42 - Free - Updates                                                                                                                 100% |  18.3 KiB/s |  11.8 KiB |  00m01s
 PostgreSQL 17 for Fedora 42 - x86_64                                                                                                                      100% |   8.6 KiB/s |   3.5 KiB |  00m00s
 PostgreSQL 16 for Fedora 42 - x86_64                                                                                                                      100% |  15.8 KiB/s |   3.5 KiB |  00m00s
 PostgreSQL 15 for Fedora 42 - x86_64                                                                                                                      100% |   6.1 KiB/s |   3.5 KiB |  00m01s
 PostgreSQL 14 for Fedora 42 - x86_64                                                                                                                      100% |   8.5 KiB/s |   3.5 KiB |  00m00s
 PostgreSQL 13 for Fedora 42 - x86_64                                                                                                                      100% |  16.0 KiB/s |   3.5 KiB |  00m00s
 RPM Fusion for Fedora 42 - Nonfree - Updates                                                                                                              100% |  27.0 KiB/s |  15.4 KiB |  00m01s
 download.vscodium.com                                                                                                                                     100% |   5.6 KiB/s |   3.0 KiB |  00m01s
Repositories loaded.
Installed packages
NetworkManager-vpnc.x86_64 1:1.4.0-2.fc42 fedora
❯ rpm -qa NetworkManager-vpnc
NetworkManager-vpnc-1.4.0-2.fc42.x86_64
❯

I was expecting to see in the output of dnf list also the package from the updates repo. It’s possible that some repos (specifically updates) are disabled. What is the output of dnf repolist?

❯ dnf repolist
repo id                                                                                 repo name
beekeeper-studio                                                                        Beekeeper Studio Repository
copr:copr.fedorainfracloud.org:wezfurlong:wezterm-nightly                               Copr repo for wezterm-nightly owned by wezfurlong
fedora                                                                                  fedora
fedora-cisco-openh264                                                                   Fedora 42 openh264 (From Cisco) - x86_64
gitlab.com_paulcarroty_vscodium_repo                                                    download.vscodium.com
pgdg13                                                                                  PostgreSQL 13 for Fedora 42 - x86_64
pgdg14                                                                                  PostgreSQL 14 for Fedora 42 - x86_64
pgdg15                                                                                  PostgreSQL 15 for Fedora 42 - x86_64
pgdg16                                                                                  PostgreSQL 16 for Fedora 42 - x86_64
pgdg17                                                                                  PostgreSQL 17 for Fedora 42 - x86_64
pgdg-common                                                                             PostgreSQL common RPMs for Fedora 42 - x86_64
rpmfusion-free                                                                          RPM Fusion for Fedora 42 - Free
rpmfusion-free-updates                                                                  RPM Fusion for Fedora 42 - Free - Updates
rpmfusion-nonfree                                                                       RPM Fusion for Fedora 42 - Nonfree
rpmfusion-nonfree-updates                                                               RPM Fusion for Fedora 42 - Nonfree - Updates
updates                                                                                 updates

It acts as if the updates repo is not being refreshed. Also, the description of the repo is not what I was expecting.

Please run also the following:

$ dnf list NetworkManager-vpnc --refresh --showduplicates
$ dnf list NetworkManager-vpnc --refresh --showduplicates --releasever=42
$ cat /etc/yum.repos.d/fedora-updates.repo
$ head -3 /etc/os-release
❯ dnf list NetworkManager-vpnc --refresh --showduplicates
Updating and loading repositories:
 Fedora 42 openh264 (From Cisco) - x86_64                                                                                                                  100% | 460.0   B/s | 989.0   B |  00m02s
 Copr repo for wezterm-nightly owned by wezfurlong                                                                                                         100% | 975.0   B/s |   1.5 KiB |  00m02s
 Beekeeper Studio Repository                                                                                                                               100% |   6.8 KiB/s |   3.0 KiB |  00m00s
 PostgreSQL common RPMs for Fedora 42 - x86_64                                                                                                             100% |  10.3 KiB/s |   3.0 KiB |  00m00s
 RPM Fusion for Fedora 42 - Free                                                                                                                           100% |  13.4 KiB/s |  13.5 KiB |  00m01s
 RPM Fusion for Fedora 42 - Free - Updates                                                                                                                 100% |  19.2 KiB/s |  12.0 KiB |  00m01s
 PostgreSQL 17 for Fedora 42 - x86_64                                                                                                                      100% |  19.7 KiB/s |   3.5 KiB |  00m00s
 PostgreSQL 16 for Fedora 42 - x86_64                                                                                                                      100% |   9.8 KiB/s |   3.5 KiB |  00m00s
 PostgreSQL 15 for Fedora 42 - x86_64                                                                                                                      100% |   8.7 KiB/s |   3.5 KiB |  00m00s
 PostgreSQL 14 for Fedora 42 - x86_64                                                                                                                      100% |  16.0 KiB/s |   3.5 KiB |  00m00s
 PostgreSQL 13 for Fedora 42 - x86_64                                                                                                                      100% |  14.6 KiB/s |   3.5 KiB |  00m00s
 RPM Fusion for Fedora 42 - Nonfree - Updates                                                                                                              100% |  17.4 KiB/s |  15.6 KiB |  00m01s
 RPM Fusion for Fedora 42 - Nonfree                                                                                                                        100% |  29.6 KiB/s |  17.2 KiB |  00m01s
 download.vscodium.com                                                                                                                                     100% |   5.6 KiB/s |   3.0 KiB |  00m01s
Repositories loaded.
Installed packages
NetworkManager-vpnc.x86_64 1:1.4.0-2.fc42 fedora
❯ dnf list NetworkManager-vpnc --refresh --showduplicates --releasever=42
Updating and loading repositories:
 Beekeeper Studio Repository                                                                                                                               100% |   7.7 KiB/s |   3.0 KiB |  00m00s
 Copr repo for wezterm-nightly owned by wezfurlong                                                                                                         100% |   1.3 KiB/s |   1.5 KiB |  00m01s
 Fedora 42 openh264 (From Cisco) - x86_64                                                                                                                  100% | 276.0   B/s | 989.0   B |  00m04s
 PostgreSQL common RPMs for Fedora 42 - x86_64                                                                                                             100% |   5.1 KiB/s |   3.0 KiB |  00m01s
 RPM Fusion for Fedora 42 - Free                                                                                                                           100% |  13.7 KiB/s |  13.5 KiB |  00m01s
 RPM Fusion for Fedora 42 - Free - Updates                                                                                                                 100% |  13.5 KiB/s |  12.0 KiB |  00m01s
 PostgreSQL 17 for Fedora 42 - x86_64                                                                                                                      100% |  14.3 KiB/s |   3.5 KiB |  00m00s
 PostgreSQL 16 for Fedora 42 - x86_64                                                                                                                      100% |  19.9 KiB/s |   3.5 KiB |  00m00s
 PostgreSQL 15 for Fedora 42 - x86_64                                                                                                                      100% |  19.9 KiB/s |   3.5 KiB |  00m00s
 PostgreSQL 14 for Fedora 42 - x86_64                                                                                                                      100% |  15.3 KiB/s |   3.5 KiB |  00m00s
 PostgreSQL 13 for Fedora 42 - x86_64                                                                                                                      100% |   3.8 KiB/s |   3.5 KiB |  00m01s
 RPM Fusion for Fedora 42 - Nonfree - Updates                                                                                                              100% |  16.7 KiB/s |  15.6 KiB |  00m01s
 RPM Fusion for Fedora 42 - Nonfree                                                                                                                        100% |  30.6 KiB/s |  17.2 KiB |  00m01s
 download.vscodium.com                                                                                                                                     100% |   5.4 KiB/s |   3.0 KiB |  00m01s
Repositories loaded.
Installed packages
NetworkManager-vpnc.x86_64 1:1.4.0-2.fc42 fedora
❯ cat /etc/yum.repos.d/fedora-updates.repo
[updates]
name=Fedora $releasever - $basearch - Updates
#baseurl=http://download.example/pub/fedora/linux/updates/$releasever/Everything/$basearch/
metalink=https://mirrors.fedoraproject.org/metalink?repo=updates-released-f$releasever&arch=$basearch
enabled=1
countme=1
repo_gpgcheck=0
type=rpm
gpgcheck=1
metadata_expire=6h
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch
skip_if_unavailable=False

[updates-debuginfo]
name=Fedora $releasever - $basearch - Updates - Debug
#baseurl=http://download.example/pub/fedora/linux/updates/$releasever/Everything/$basearch/debug/
metalink=https://mirrors.fedoraproject.org/metalink?repo=updates-released-debug-f$releasever&arch=$basearch
enabled=0
repo_gpgcheck=0
type=rpm
gpgcheck=1
metadata_expire=6h
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch
skip_if_unavailable=False

[updates-source]
name=Fedora $releasever - Updates Source
#baseurl=http://download.example/pub/fedora/linux/updates/$releasever/Everything/SRPMS/
metalink=https://mirrors.fedoraproject.org/metalink?repo=updates-released-source-f$releasever&arch=$basearch
enabled=0
repo_gpgcheck=0
type=rpm
gpgcheck=1
metadata_expire=6h
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch
skip_if_unavailable=False

❯ head -3 /etc/os-release
NAME="Fedora Linux"
VERSION="42 (Adams)"
RELEASE_TYPE=stable

The --refresh flag of dnf should have presented the fedora and updates repos, which even though seem to be enabled, are not sent to the output. For the same reason the package NetworkManager-vpnc with version1.4.0-3.fc42 is not found by the command.

Is there anything relevant about your system, that might cause this outcome? Upgrade from a previous release, tweaks of the dnf repos etc.

Or maybe an issue with the mirrors?

What is the output of dnf5 repolist --all and dnf5 repo info updates?

EDIT: What about dnf4 config-manager --dump-variables?

The output for dnf5 repolist --all is a bit big. But here’s the output for dnf5 repo into updates and dnf4 config-manager --dump-variables.

❯ dnf5 repo info updates
Updating and loading repositories:
Repositories loaded.
Repo ID              : updates
Name                 : updates
Status               : enabled
Priority             : 5
Cost                 : 1000
Type                 : available
Metadata expire      : 21600 seconds (last: unknown)
Skip if unavailable  : true
Config file          : /etc/dnf/dnf.conf
URLs                 :
OpenPGP              :
  Verify repodata    : false
  Verify packages    : true
Repodata info        :
  Available packages : 0
  Total packages     : 0
  Size               : 0.0   B
  Revision           :
  Updated            : 1970-01-01 00:00:00

❯ dnf4 config-manager --dump-variables
Invalid configuration value: installonly_limit=1 in /etc/dnf/dnf.conf; value 1 is not allowed
Repository 'updates' is missing name in configuration, using id.
Repository 'fedora' is missing name in configuration, using id.
Repository fedora is listed more than once in the configuration
Repository updates is listed more than once in the configuration
arch = x86_64
basearch = x86_64
releasever = 42
releasever_major = 42
releasever_minor =

The dnf repo info updates, as well as the last command show that the fedora and updates repos are wrong.

The updates repo certainly should not point to the /etc/dnf/dnf.conf file. Do you remember tweaking your system around this issue?

The dnf repo info updates should have an output similar to this one:

$ dnf repo info updates
Updating and loading repositories:
Repositories loaded.
Repo ID              : updates
Name                 : Fedora 42 - aarch64 - Updates
Status               : enabled
Priority             : 99
Cost                 : 1000
Type                 : available
Metadata expire      : 21600 seconds (last: 2025-05-15 13:13:57)
Skip if unavailable  : false
Config file          : /etc/yum.repos.d/fedora-updates.repo
URLs                 : 
  Base URL           : https://mirror.group.one/fedora/updates/42/Everything/aarch64/ (73 more)
  Metalink           : https://mirrors.fedoraproject.org/metalink?repo=updates-released-f42&arch=aarch64
OpenPGP              : 
  Keys               : file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-42-aarch64
  Verify repodata    : false
  Verify packages    : true
Repodata info        : 
  Available packages : 9604
  Total packages     : 9604
  Size               : 24.8 GiB
  Revision           : 1747268953
  Updated            : 2025-05-15 01:47:19

Notice that the Config file variable points to the correct repo file.

Your system currently has no reference to the packages from the fedora and updates repos. If you could remember what actions did change these settings, there might be an easier fix available.

I do remember tweaking my /etc/dnf/dnf.conf file a few weeks back. Let me check it.

How would I make updates point to the right file?

What is the output of cat /etc/dnf/dnf.conf?

❯ cat /etc/dnf/dnf.conf
# see `man dnf.conf` for defaults and possible options

[main]
gpgcheck=True
localpkg_gpgcheck=True
clean_requirements_on_remove=True
installonly_limit=1
max_parallel_downloads=10
deltarpm=True
deltarpm_percentage=75
metadata_expire=6h
skip_if_unavailable=True
retries=5
timeout=60
minrate=5000
fastestmirror=True
assumeyes=False
defaultyes=False
keepcache=True
logfile=/var/log/dnf.log

[updates]
priority=5

[fedora]
priority=10

Delete the [fedora] and [updates] sections with their values and then please post the output of dnf repo info updates.

dnf probably considers these as custom repos and overrides the ones from /etc/yum.repos.d/.

Okay.
Do I need to reboot after deleting the [fedora] and [updates] sections with their values?

Depends on the output of dnf repo info updates. What is it?

❯ dnf repo info updates
Updating and loading repositories:
 Fedora 42 - x86_64 - Updates                                                                                                                              100% |   2.2 KiB/s |  52.1 KiB |  00m24s
 Fedora 42 - x86_64                                                                                                                                        100% |   7.2 KiB/s |  64.7 KiB |  00m09s
 Fedora 42 - x86_64 - Updates                                                                                                                              100% | 475.4 KiB/s |   3.1 MiB |  00m07s
 Fedora 42 - x86_64                                                                                                                                        100% |  85.5 KiB/s | 346.0 KiB |  00m04s
Repositories loaded.
Repo ID              : updates
Name                 : Fedora 42 - x86_64 - Updates
Status               : enabled
Priority             : 99
Cost                 : 1000
Type                 : available
Metadata expire      : 21600 seconds (last: 2025-05-15 14:34:03)
Skip if unavailable  : false
Config file          : /etc/yum.repos.d/fedora-updates.repo
URLs                 :
  Base URL           : http://fedora.mirror.liquidtelecom.com/fedora/linux/updates/42/Everything/x86_64/ (304 more)
  Metalink           : https://mirrors.fedoraproject.org/metalink?repo=updates-released-f42&arch=x86_64
OpenPGP              :
  Keys               : file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-42-x86_64
  Verify repodata    : false
  Verify packages    : true
Repodata info        :
  Available packages : 11355
  Total packages     : 11355
  Size               : 28.4 GiB
  Revision           : 1747268954
  Updated            : 2025-05-15 01:47:29

Now that’s something!

I guess you should be fine. Feel free to reboot if you consider.

Then run a sudo dnf upgrade --refresh and check if the packages (including NetworkManager-vpnc) are being proposed for updates.

Let me reboot and run the upgrade.

1 Like