DNF5 Warnings/Errors after Fedora 40 Upgrade for python3-googleapis-common-protos

Hi All,

Successfully upgraded my Fedora 39 laptop to 40. The upgrade went very smoothly and I booted into my system.

I then ran the following command in Fedora 40

sudo dnf5 upgrade --refresh -y && sudo dnf5 install dnf-plugin-system-upgrade -y

But I get some errors in the output.

Updating and loading repositories: 
 Fedora 40 - x86_64                                                                                                                              100% | 103.5 KiB/s | 20.2 KiB | 00m00s 
 Fedora 40 - x86_64 - Updates                                                                                                                    100% | 51.5 KiB/s | 20.6 KiB | 00m00s 
 1Password Stable Channel                                                                                                                        100% | 35.3 KiB/s |  3.0 KiB | 00m00s 
 Fedora 40 openh264 (From Cisco) - x86_64                                                                                                        100% |  8.3 KiB/s | 989.0  B | 00m00s 
 Copr repo for rendezvous owned by peterwu                                                                                                       100% |  7.3 KiB/s |  1.5 KiB | 00m00s 
 Dropbox Repository                                                                                                                              100% |  4.2 KiB/s |  1.5 KiB | 00m00s 
 google-chrome                                                                                                                                   100% | 11.4 KiB/s |  1.3 KiB | 00m00s 
 RPM Fusion for Fedora 40 - Nonfree - Steam                                                                                                      100% | 42.1 KiB/s |  6.2 KiB | 00m00s 
 RPM Fusion for Fedora 40 - Nonfree - NVIDIA Driver                                                                                              100% | 51.2 KiB/s |  6.4 KiB | 00m00s 
 RPM Fusion for Fedora 40 - Free                                                                                                                 100% | 47.2 KiB/s |  6.6 KiB | 00m00s 
 Terra 40                                                                                                                                        100% | 20.3 KiB/s |  6.3 KiB | 00m00s 
 Visual Studio Code                                                                                                                              100% | 12.7 KiB/s |  1.5 KiB | 00m00s 
 RPM Fusion for Fedora 40 - Nonfree                                                                                                              100% | 53.2 KiB/s |  6.7 KiB | 00m00s 
 created by dnf config-manager from https://rpm.opera.com/rpm                                                                                    100% |  4.0 KiB/s |  3.0 KiB | 00m01s 
 WineHQ packages                                                                                                                                 100% | 21.8 KiB/s |  3.0 KiB | 00m00s 
 vivaldi                                                                                                                                         100% | 24.7 KiB/s |  3.0 KiB | 00m00s 
 RPM Fusion for Fedora 40 - Free - Updates                                                                                                       100% | 45.1 KiB/s |  6.0 KiB | 00m00s 
 TablePlus - x86_64 - Stable                                                                                                                     100% |  5.7 KiB/s |  3.0 KiB | 00m01s 
 RPM Fusion for Fedora 40 - Nonfree - Updates                                                                                                    100% | 45.5 KiB/s |  6.1 KiB | 00m00s 
Repositories loaded. 
Problem: package python3-googleapis-common-protos-1.63.0-1.fc40.noarch requires ((python3.12dist(protobuf) < 3.20 or python3.12dist(protobuf) > 3.20) with (python3.12dist(protobuf) < 3.2
0.1 or python3.12dist(protobuf) > 3.20.1) with (python3.12dist(protobuf) < 4.21.1 or python3.12dist(protobuf) > 4.21.1) with (python3.12dist(protobuf) < 4.21.2 or python3.12dist(protobuf
) > 4.21.2) with (python3.12dist(protobuf) < 4.21.3 or python3.12dist(protobuf) > 4.21.3) with (python3.12dist(protobuf) < 4.21.4 or python3.12dist(protobuf) > 4.21.4) with (python3.12di
st(protobuf) < 4.21.5 or python3.12dist(protobuf) > 4.21.5) with python3.12dist(protobuf) < 5~~dev0 with python3.12dist(protobuf) >= 3.19.5), but none of the providers can be installed 
 - cannot install both python3-protobuf-3.19.6-8.fc40.x86_64 and python3-protobuf-5.26.1-1.fc40.x86_64 
 - cannot install the best update candidate for package python3-protobuf-3.19.6-8.fc40.x86_64 
 - cannot install the best update candidate for package python3-googleapis-common-protos-1.63.0-1.fc40.noarch 
 
Nothing to do. 
Updating and loading repositories: 
Repositories loaded. 
Package "dnf-plugins-core-4.6.0-1.fc40.noarch" is already installed. 
 
Nothing to do.

I’n not sure what has happened or what I can do?

You could add --alowerasing to the dnf command.

Thanks Stephen, I tried that but no difference I’m sorry to say.

sudo dnf5 upgrade --refresh -y --allowerasing

Updating and loading repositories:
 TablePlus - x86_64 - Stable                                                                                                                      100% |   6.3 KiB/s |   3.0 KiB |  00m00s
 Terra 40                                                                                                                                         100% |  23.6 KiB/s |   6.3 KiB |  00m00s
 Copr repo for rendezvous owned by peterwu                                                                                                        100% |   2.7 KiB/s |   1.5 KiB |  00m01s
 1Password Stable Channel                                                                                                                         100% |  31.9 KiB/s |   3.0 KiB |  00m00s
 Fedora 40 openh264 (From Cisco) - x86_64                                                                                                         100% |   1.6 KiB/s | 989.0   B |  00m01s
 Dropbox Repository                                                                                                                               100% |   3.3 KiB/s |   1.5 KiB |  00m00s
 RPM Fusion for Fedora 40 - Free                                                                                                                  100% |  42.3 KiB/s |   6.6 KiB |  00m00s
 vivaldi                                                                                                                                          100% |  28.4 KiB/s |   3.0 KiB |  00m00s
 google-chrome                                                                                                                                    100% |  12.9 KiB/s |   1.3 KiB |  00m00s
 Fedora 40 - x86_64 - Updates                                                                                                                     100% |  29.1 KiB/s |  20.6 KiB |  00m01s
 created by dnf config-manager from https://rpm.opera.com/rpm                                                                                     100% |   4.9 KiB/s |   3.0 KiB |  00m01s
 RPM Fusion for Fedora 40 - Free - Updates                                                                                                        100% |  46.1 KiB/s |   6.0 KiB |  00m00s
 RPM Fusion for Fedora 40 - Nonfree                                                                                                               100% |  52.8 KiB/s |   6.7 KiB |  00m00s
 Visual Studio Code                                                                                                                               100% |   9.2 KiB/s |   1.5 KiB |  00m00s
 RPM Fusion for Fedora 40 - Nonfree - NVIDIA Driver                                                                                               100% |  47.4 KiB/s |   6.4 KiB |  00m00s
 RPM Fusion for Fedora 40 - Nonfree - Updates                                                                                                     100% |  44.5 KiB/s |   6.1 KiB |  00m00s
 Fedora 40 - x86_64                                                                                                                               100% |  46.7 KiB/s |  20.2 KiB |  00m00s
 RPM Fusion for Fedora 40 - Nonfree - Steam                                                                                                       100% |  48.7 KiB/s |   6.2 KiB |  00m00s
 WineHQ packages                                                                                                                                  100% |  23.3 KiB/s |   3.0 KiB |  00m00s
Repositories loaded.
Problem: cannot install the best update candidate for package python3-googleapis-common-protos-1.63.0-1.fc40.noarch
  - problem with installed package 
  - package python3-googleapis-common-protos-1.63.0-1.fc40.noarch requires ((python3.12dist(protobuf) < 3.20 or python3.12dist(protobuf) > 3.20) with (python3.12dist(protobuf) < 3.20.1 or python3.12dist(protobuf) > 3.20.1) with (python3.12dist(protobuf) < 4.21.1 or python3.12dist(protobuf) > 4.21.1) with (python3.12dist(protobuf) < 4.21.2 or python3.12dist(protobuf) > 4.21.2) with (python3.12dist(protobuf) < 4.21.3 or python3.12dist(protobuf) > 4.21.3) with (python3.12dist(protobuf) < 4.21.4 or python3.12dist(protobuf) > 4.21.4) with (python3.12dist(protobuf) < 4.21.5 or python3.12dist(protobuf) > 4.21.5) with python3.12dist(protobuf) < 5~~dev0 with python3.12dist(protobuf) >= 3.19.5), but none of the providers can be installed
  - cannot install the best update candidate for package python3-protobuf-3.19.6-8.fc40.x86_64
  - cannot install both python3-protobuf-3.19.6-8.fc40.x86_64 and python3-protobuf-5.26.1-1.fc40.x86_64

You could remove the
package python3-googleapis-common-protos-1.63.0-1.fc40.noarch
that is causing the update to fail. Do the update, then reinstall it.

Thanks again, I did the following.

sudo dnf remove python3-googleapis-common-protos-1.63.0-1.fc40.noarch -y

Then I ran

sudo dnf5 upgrade --refresh -y && sudo dnf5 install dnf-plugin-system-upgrade -y

Both those worked and no errors etc

I then re-installed using

sudo dnf install python3-googleapis-common-protos -y

This appeared to install properly

Last metadata expiration check: 0:21:33 ago on Tue 23 Apr 2024 17:43:08 BST.
Dependencies resolved.
==========================================================================================================================================================================================
 Package                                                       Architecture                        Version                                      Repository                           Size
==========================================================================================================================================================================================
Installing:
 python3-googleapis-common-protos                              noarch                              1.63.0-1.fc40                                fedora                              227 k
Installing dependencies:
 python3-protobuf                                              x86_64                              3.19.6-8.fc40                                fedora                              411 k

Transaction Summary
==========================================================================================================================================================================================
Install  2 Packages

Total download size: 638 k
Installed size: 2.6 M
Downloading Packages:
(1/2): python3-googleapis-common-protos-1.63.0-1.fc40.noarch.rpm                                                                                          910 kB/s | 227 kB     00:00    
(2/2): python3-protobuf-3.19.6-8.fc40.x86_64.rpm                                                                                                          1.4 MB/s | 411 kB     00:00    
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                     569 kB/s | 638 kB     00:01     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                                  1/1 
  Installing       : python3-protobuf-3.19.6-8.fc40.x86_64                                                                                                                            1/2 
  Installing       : python3-googleapis-common-protos-1.63.0-1.fc40.noarch                                                                                                            2/2 
  Running scriptlet: python3-googleapis-common-protos-1.63.0-1.fc40.noarch                                                                                                            2/2 
Scanning processes...                                                                                                                                                                     
Scanning candidates...                                                                                                                                                                    
Scanning processor microcode...                                                                                                                                                           
Scanning linux images...                                                                                                                                                                  

Running kernel seems to be up-to-date.

The processor microcode seems to be up-to-date.

No services need to be restarted.

No containers need to be restarted.

User sessions running outdated binaries:
 darkufo @ user manager service: systemd[24344]

No VM guests are running outdated hypervisor (qemu) binaries on this host.

Installed:
  python3-googleapis-common-protos-1.63.0-1.fc40.noarch                                               python3-protobuf-3.19.6-8.fc40.x86_64                                              

Complete!

However when I then do a

sudo dnf5 upgrade --refresh -y

I get the same issue again

Repositories loaded.
Problem: package python3-googleapis-common-protos-1.63.0-1.fc40.noarch requires ((python3.12dist(protobuf) < 3.20 or python3.12dist(protobuf) > 3.20) with (python3.12dist(protobuf) < 3.20.1 or python3.12dist(protobuf) > 3.20.1) with (python3.12dist(protobuf) < 4.21.1 or python3.12dist(protobuf) > 4.21.1) with (python3.12dist(protobuf) < 4.21.2 or python3.12dist(protobuf) > 4.21.2) with (python3.12dist(protobuf) < 4.21.3 or python3.12dist(protobuf) > 4.21.3) with (python3.12dist(protobuf) < 4.21.4 or python3.12dist(protobuf) > 4.21.4) with (python3.12dist(protobuf) < 4.21.5 or python3.12dist(protobuf) > 4.21.5) with python3.12dist(protobuf) < 5~~dev0 with python3.12dist(protobuf) >= 3.19.5), but none of the providers can be installed
  - cannot install both python3-protobuf-3.19.6-8.fc40.x86_64 and python3-protobuf-5.26.1-1.fc40.x86_64
  - cannot install the best update candidate for package python3-protobuf-3.19.6-8.fc40.x86_64
  - cannot install the best update candidate for package python3-googleapis-common-protos-1.63.0-1.fc40.noarch

This package appears to be coming from one of your third-party repositories, and seems to be the origin of the conflict. We are trying to work out all the compatibility issues to ship a current version of protobuf in Fedora 41, but there is no python3-protobuf-5.26.1 in Fedora 40 or even in Rawhide right now.

1 Like

(I maintain python-googleapis-common-protos in Fedora, and I’m familiar with the protobuf package. If there is a problem in Fedora proper, I can fix it. I probably can’t do anything about what appears to be a conflicting third-party package.)

1 Like

Thank you Benjamin, that’s very helpful.

I’ve remove the 3rd party repo and everything is working.

Thanks everyone

2 Likes

Note that dnf5 is not fully ready, but is more of a beta stage right now. Not all that works with dnf will work with dnf5 as yet. (dnf and dnf4 both use dnf-3 as the actual tool in use). Also note that dnf5 is not installed as yet by default even on f40.

$ ls -l /usr/bin/dnf*
lrwxrwxrwx. 1 root root    5 Mar 28 19:00 /usr/bin/dnf -> dnf-3
-rwxr-xr-x. 1 root root 2092 Mar 28 19:00 /usr/bin/dnf-3
lrwxrwxrwx. 1 root root    5 Mar 28 19:00 /usr/bin/dnf4 -> dnf-3

Thanks @computersavvy , that’s very helpful to know. Many thanks.