[Rawhide][apr-util] `dnf update` cannot install `apr-util(x86-64) = 1.6.3-11.fc40` required by `apr-util-lmdb-1.6.3-11.fc40.x86_64`

Hello, I am trying to dnf update and get the following “Cannot install both” problem:

nebula-dual@fedora:~$ sudo dnf update
Last metadata expiration check: 0:04:46 ago on Sun 05 Nov 2023 06:45:37 PM EST.
Dependencies resolved.

 Problem: cannot install both apr-util-1.6.3-12.fc40.x86_64 from rawhide and apr-util-1.6.3-11.fc40.x86_64 from @System
  - package apr-util-lmdb-1.6.3-11.fc40.x86_64 from @System requires apr-util(x86-64) = 1.6.3-11.fc40, but none of the providers can be installed
  - cannot install the best update candidate for package apr-util-1.6.3-11.fc40.x86_64
  - problem with installed package apr-util-lmdb-1.6.3-11.fc40.x86_64
...
Skipping packages with conflicts:
(add '--best --allowerasing' to command line to force their upgrade):
 apr-util                                                x86_64           1.6.3-12.fc40                                        rawhide              96 k

Looking at apr-util - Fedora Packages, it seems the Rawhide repo has apr-util-1.6.3-12.fc40 instead of apr-uril-1.6.3-11.fc40.

Is the issue that the newest apr-util in the repo is “too new” for apr-util-lmdb? If so, is the solution to bump apr-util-lmdb? I couldn’t find the RPM spec files so I am not sure.


Full logs:

nebula-dual@fedora:~$ sudo dnf update
Last metadata expiration check: 0:04:46 ago on Sun 05 Nov 2023 06:45:37 PM EST.
Dependencies resolved.

 Problem: cannot install both apr-util-1.6.3-12.fc40.x86_64 from rawhide and apr-util-1.6.3-11.fc40.x86_64 from @System
  - package apr-util-lmdb-1.6.3-11.fc40.x86_64 from @System requires apr-util(x86-64) = 1.6.3-11.fc40, but none of the providers can be installed
  - cannot install the best update candidate for package apr-util-1.6.3-11.fc40.x86_64
  - problem with installed package apr-util-lmdb-1.6.3-11.fc40.x86_64
=========================================================================================================================================================
 Package                                                 Architecture     Version                                              Repository           Size
=========================================================================================================================================================
Installing:
 kernel                                                  x86_64           6.7.0-0.rc0.20231104git90b0c2b2edd1.7.fc40           rawhide             147 k
Upgrading:
 NetworkManager                                          x86_64           1:1.44.2-2.fc40                                      rawhide             2.2 M
 NetworkManager-adsl                                     x86_64           1:1.44.2-2.fc40                                      rawhide              27 k
 NetworkManager-bluetooth                                x86_64           1:1.44.2-2.fc40                                      rawhide              53 k
 NetworkManager-config-connectivity-fedora               noarch           1:1.44.2-2.fc40                                      rawhide              13 k
 NetworkManager-libnm                                    x86_64           1:1.44.2-2.fc40                                      rawhide             1.8 M
 NetworkManager-ppp                                      x86_64           1:1.44.2-2.fc40                                      rawhide              36 k
 NetworkManager-team                                     x86_64           1:1.44.2-2.fc40                                      rawhide              32 k
 NetworkManager-wifi                                     x86_64           1:1.44.2-2.fc40                                      rawhide             133 k
 NetworkManager-wwan                                     x86_64           1:1.44.2-2.fc40                                      rawhide              59 k
 audit                                                   x86_64           3.1.2-5.fc40                                         rawhide             267 k
 audit-libs                                              x86_64           3.1.2-5.fc40                                         rawhide             117 k
 clang-libs                                              x86_64           17.0.4-1.fc40                                        rawhide              23 M
 clang-resource-filesystem                               noarch           17.0.4-1.fc40                                        rawhide              14 k
 compiler-rt                                             x86_64           17.0.4-1.fc40                                        rawhide             2.3 M
 cups                                                    x86_64           1:2.4.7-2.fc40                                       rawhide             1.5 M
 cups-client                                             x86_64           1:2.4.7-2.fc40                                       rawhide              73 k
 cups-filesystem                                         noarch           1:2.4.7-2.fc40                                       rawhide              13 k
 cups-ipptool                                            x86_64           1:2.4.7-2.fc40                                       rawhide             3.9 M
 cups-libs                                               x86_64           1:2.4.7-2.fc40                                       rawhide             269 k
 fastfetch                                               x86_64           2.2.1-1.fc40                                         rawhide             496 k
 google-noto-fonts-common                                noarch           20230801-4.fc40                                      rawhide              17 k
 google-noto-naskh-arabic-vf-fonts                       noarch           20230801-4.fc40                                      rawhide             119 k
 google-noto-sans-arabic-vf-fonts                        noarch           20230801-4.fc40                                      rawhide             254 k
 google-noto-sans-armenian-vf-fonts                      noarch           20230801-4.fc40                                      rawhide              30 k
 google-noto-sans-bengali-vf-fonts                       noarch           20230801-4.fc40                                      rawhide             217 k
 google-noto-sans-canadian-aboriginal-vf-fonts           noarch           20230801-4.fc40                                      rawhide              56 k
 google-noto-sans-cherokee-vf-fonts                      noarch           20230801-4.fc40                                      rawhide              87 k
 google-noto-sans-devanagari-vf-fonts                    noarch           20230801-4.fc40                                      rawhide             110 k
 google-noto-sans-ethiopic-vf-fonts                      noarch           20230801-4.fc40                                      rawhide             185 k
 google-noto-sans-georgian-vf-fonts                      noarch           20230801-4.fc40                                      rawhide             100 k
 google-noto-sans-gujarati-vf-fonts                      noarch           20230801-4.fc40                                      rawhide              86 k
 google-noto-sans-gurmukhi-vf-fonts                      noarch           20230801-4.fc40                                      rawhide              38 k
 google-noto-sans-hebrew-vf-fonts                        noarch           20230801-4.fc40                                      rawhide              39 k
 google-noto-sans-kannada-vf-fonts                       noarch           20230801-4.fc40                                      rawhide              72 k
 google-noto-sans-khmer-vf-fonts                         noarch           20230801-4.fc40                                      rawhide             102 k
 google-noto-sans-lao-vf-fonts                           noarch           20230801-4.fc40                                      rawhide              30 k
 google-noto-sans-math-fonts                             noarch           20230801-4.fc40                                      rawhide             419 k
 google-noto-sans-mono-vf-fonts                          noarch           20230801-4.fc40                                      rawhide             275 k
 google-noto-sans-oriya-vf-fonts                         noarch           20230801-4.fc40                                      rawhide              89 k
 google-noto-sans-sinhala-vf-fonts                       noarch           20230801-4.fc40                                      rawhide              99 k
 google-noto-sans-symbols-vf-fonts                       noarch           20230801-4.fc40                                      rawhide             125 k
 google-noto-sans-symbols2-fonts                         noarch           20230801-4.fc40                                      rawhide             281 k
 google-noto-sans-tamil-vf-fonts                         noarch           20230801-4.fc40                                      rawhide              50 k
 google-noto-sans-telugu-vf-fonts                        noarch           20230801-4.fc40                                      rawhide              92 k
 google-noto-sans-thaana-vf-fonts                        noarch           20230801-4.fc40                                      rawhide              29 k
 google-noto-sans-thai-vf-fonts                          noarch           20230801-4.fc40                                      rawhide              54 k
 google-noto-sans-vf-fonts                               noarch           20230801-4.fc40                                      rawhide             583 k
 google-noto-serif-armenian-vf-fonts                     noarch           20230801-4.fc40                                      rawhide              31 k
 google-noto-serif-bengali-vf-fonts                      noarch           20230801-4.fc40                                      rawhide             365 k
 google-noto-serif-devanagari-vf-fonts                   noarch           20230801-4.fc40                                      rawhide             122 k
 google-noto-serif-georgian-vf-fonts                     noarch           20230801-4.fc40                                      rawhide             117 k
 google-noto-serif-gujarati-vf-fonts                     noarch           20230801-4.fc40                                      rawhide              86 k
 google-noto-serif-gurmukhi-vf-fonts                     noarch           20230801-4.fc40                                      rawhide              40 k
 google-noto-serif-hebrew-vf-fonts                       noarch           20230801-4.fc40                                      rawhide              50 k
 google-noto-serif-kannada-vf-fonts                      noarch           20230801-4.fc40                                      rawhide              88 k
 google-noto-serif-khmer-vf-fonts                        noarch           20230801-4.fc40                                      rawhide             138 k
 google-noto-serif-lao-vf-fonts                          noarch           20230801-4.fc40                                      rawhide              34 k
 google-noto-serif-oriya-vf-fonts                        noarch           20230801-4.fc40                                      rawhide              94 k
 google-noto-serif-sinhala-vf-fonts                      noarch           20230801-4.fc40                                      rawhide              85 k
 google-noto-serif-tamil-vf-fonts                        noarch           20230801-4.fc40                                      rawhide              89 k
 google-noto-serif-telugu-vf-fonts                       noarch           20230801-4.fc40                                      rawhide              93 k
 google-noto-serif-thai-vf-fonts                         noarch           20230801-4.fc40                                      rawhide              64 k
 google-noto-serif-vf-fonts                              noarch           20230801-4.fc40                                      rawhide             629 k
 gperftools-libs                                         x86_64           2.13-1.fc40                                          rawhide             302 k
 gssdp                                                   x86_64           1.6.3-1.fc40                                         rawhide              58 k
 libcbor                                                 x86_64           0.10.2-3.fc40                                        rawhide              33 k
 libomp                                                  x86_64           17.0.4-1.fc40                                        rawhide             624 k
 libomp-devel                                            x86_64           17.0.4-1.fc40                                        rawhide             320 k
 libopenmpt                                              x86_64           0.6.12-1.fc40                                        rawhide             636 k
 libproxy                                                x86_64           0.5.3-3.fc40                                         rawhide              48 k
 libuv                                                   x86_64           1:1.46.0-5.fc40                                      rawhide             248 k
 llvm-libs                                               x86_64           17.0.4-1.fc40                                        rawhide              27 M
 mesa-dri-drivers                                        x86_64           23.3.0~rc2-2.fc40                                    rawhide              25 M
 mesa-filesystem                                         x86_64           23.3.0~rc2-2.fc40                                    rawhide              18 k
 mesa-libEGL                                             x86_64           23.3.0~rc2-2.fc40                                    rawhide             133 k
 mesa-libGL                                              x86_64           23.3.0~rc2-2.fc40                                    rawhide             175 k
 mesa-libgbm                                             x86_64           23.3.0~rc2-2.fc40                                    rawhide              45 k
 mesa-libglapi                                           x86_64           23.3.0~rc2-2.fc40                                    rawhide              51 k
 mesa-libxatracker                                       x86_64           23.3.0~rc2-2.fc40                                    rawhide             2.7 M
 mesa-va-drivers                                         x86_64           23.3.0~rc2-2.fc40                                    rawhide             3.8 M
 mesa-vulkan-drivers                                     x86_64           23.3.0~rc2-2.fc40                                    rawhide              13 M
 opus                                                    x86_64           1.4-1.fc40                                           rawhide             212 k
 pam                                                     x86_64           1.5.3-6.fc40                                         rawhide             548 k
 pam-libs                                                x86_64           1.5.3-6.fc40                                         rawhide              57 k
 pipewire                                                x86_64           0.3.84-1.fc40                                        rawhide             113 k
 pipewire-alsa                                           x86_64           0.3.84-1.fc40                                        rawhide              64 k
 pipewire-gstreamer                                      x86_64           0.3.84-1.fc40                                        rawhide              64 k
 pipewire-libs                                           x86_64           0.3.84-1.fc40                                        rawhide             1.8 M
 pipewire-pulseaudio                                     x86_64           0.3.84-1.fc40                                        rawhide             174 k
 pipewire-utils                                          x86_64           0.3.84-1.fc40                                        rawhide             354 k
 python3-audit                                           x86_64           3.1.2-5.fc40                                         rawhide              87 k
 python3-lxml                                            x86_64           4.9.3-3.fc40                                         rawhide             1.4 M
 qpdf-libs                                               x86_64           11.6.3-1.fc40                                        rawhide             927 k
 sqlite                                                  x86_64           3.44.0-1.fc40                                        rawhide             844 k
 sqlite-libs                                             x86_64           3.44.0-1.fc40                                        rawhide             692 k
 tigervnc-license                                        noarch           1.13.1-6.fc40                                        rawhide              15 k
 tigervnc-server-minimal                                 x86_64           1.13.1-6.fc40                                        rawhide             1.1 M
 vapoursynth-libs                                        x86_64           65-1.fc40                                            rawhide             567 k
Installing dependencies:
 kernel-core                                             x86_64           6.7.0-0.rc0.20231104git90b0c2b2edd1.7.fc40           rawhide              16 M
 kernel-modules                                          x86_64           6.7.0-0.rc0.20231104git90b0c2b2edd1.7.fc40           rawhide              58 M
 kernel-modules-core                                     x86_64           6.7.0-0.rc0.20231104git90b0c2b2edd1.7.fc40           rawhide              33 M
 kernel-modules-extra                                    x86_64           6.7.0-0.rc0.20231104git90b0c2b2edd1.7.fc40           rawhide             2.6 M
Installing weak dependencies:
 kernel-devel                                            x86_64           6.7.0-0.rc0.20231104git90b0c2b2edd1.7.fc40           rawhide              20 M
Removing:
 kernel                                                  x86_64           6.5.6-300.fc39                                       @anaconda             0  
 kernel-core                                             x86_64           6.5.6-300.fc39                                       @anaconda            65 M
 kernel-modules                                          x86_64           6.5.6-300.fc39                                       @anaconda            56 M
 kernel-modules-core                                     x86_64           6.5.6-300.fc39                                       @anaconda            30 M
 kernel-modules-extra                                    x86_64           6.5.6-300.fc39                                       @anaconda           2.4 M
Skipping packages with conflicts:
(add '--best --allowerasing' to command line to force their upgrade):
 apr-util                                                x86_64           1.6.3-12.fc40                                        rawhide              96 k

Transaction Summary
=========================================================================================================================================================
Install   6 Packages
Upgrade  98 Packages
Remove    5 Packages
Skip      1 Package

Total size: 254 M
Is this ok [y/N]: n
Operation aborted.
nebula-dual@fedora:~1$ 

The spec is here: Tree - rpms/apr-util - src.fedoraproject.org

I think you need to remove apr-util-lmdb. That subpackage was created 11 days ago and then temporarily dropped a week later.

I’m not sure whether this should be considered a bug or if Rawhide users are just expected to deal with stuff like this.

1 Like

I guess the latter.

See target audience for Rawhide: Rawhide :: Fedora Docs

Note that this also hit F39’s updates-testing for a time window until the update got unpushed. Some of us enabled that repo during the freeze. The solution is the same (dnf remove apr-util-lmdb).

1 Like

Was it announced somewhere that the solution is to dnf remove apr-util-lmdb? Why not, say, follow dnf’s recommendation to add --best --allowerasing? It seems to do something similar (if not the exact same):

Removing dependent packages:
 apr-util-lmdb                         x86_64 1.6.3-11.fc40     @fedora    15 k

The only difference I can think of is skipping the (potentially undesirable) intermediate state of the system where apr-util hasn’t been updated yet to the version that expects apr-util-lmdb to have been dropped.


Well… I agree that Rawhide users are expected to “face” certain situations. But I am not sure if Rawhide users are expected to manually “deal” with such situations. I just don’t know enough about dnf to know if this is technically a bug (but whether it is worth the effort is another story).

Is there a technical reason why dnf update didn’t automatically detect that apt-util-lmdb has been dropped and suggest removing it? Is this basically what --best --allowerasing does?

I know that for this particular situation the recommendation of --best --allowerasing is sound. But looking at Reddit - Is it safe to update with “–best” “allowerasing” command : r/Fedora I don’t know if I should default to --best allowerasing for similar errors in the future.

With

I know that dnf will do that and just that. It’s not as if you’re system’s gonna break because apr-util is not updated for a few seconds. It is about getting it into a state from which normal updates work.

But really, rawhide is to iron out these issues, and it’s for users who are prepared to do so. I mentioned F39 because more users than the typical rawhide crowd might be affected here, and they’re not necessarily prepared to deal with that, and neither with possible consequences of --allow-erasing.

Makes sense. Though, ideally, I’d expect dnf operations to be atomic (as close as possible, not necessarily as perfect as Silverblue). For this case, apr-util being slightly outdated may not be an issue, but I’m more discussing resolving this behavior (cannot install both) in general.

I agree. And, really, that’s why I’m using Rawhide. I opened this discussion as an opportunity to look under the hood of dnf and shine light on a potential issue.


From this discussion, I am not sure which of the following is true:

  1. This behavior is expected in Rawhide/Beta and a non-issue
  2. This issue has already been fixed (or a fix is already in-progress)
  3. This issue hasn’t been fixed yet

Rawhide is a development/testing environment. Possible problems may crop up and be exposed, then require a fix. As a result I would not necessarily think this is a bug but a development hiccup that, in this case, seems to have already been ironed out.

Because rawhide is a test bed environment it is important that users of rawhide do report such issues so the developers & packagers know such issues occur and can then provide the fixes. Since rawhide is development and not released, the developers do not necessarily see what is posted on the Ask Fedora forum, The reports should be made either to the testing mailing list or reported as a bug against rawhide.

Could you elaborate on what shows that this has already been ironed out? Is it the “Dropped RPMs: apr-util-lmdb” in the mailing list?

Is it an expectation that I manually remove dropped rpm’s?

Looking back at Discussing Rawhide, you’re right that Discourse isn’t one of the listed communication channels.

I worry that if I always immediately report in bugzilla or the test mailing list I might clutter them as I don’t know what the expectations are. Over time, I will be more likely to immediately report as opposed to, say, first going to Ask Fedora/Discord for a sanity check. I also feel that Ask Fedora is more search engine friendly.

My conclusion so far is that I should manually remove dropped RPMs. If this happens again, I might try to figure IRC out and ask there.

Thx everyone for the help!

The below shows at least a workaround. Quoted from post 5 above.
Other comments here show that package has indeed been removed from the requirements.