Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dnf5 update misses --best --allowerasing hint #1768

Open
Germano0 opened this issue Oct 9, 2024 · 3 comments
Open

dnf5 update misses --best --allowerasing hint #1768

Germano0 opened this issue Oct 9, 2024 · 3 comments
Labels
Priority: MEDIUM Triaged Someone on the DNF 5 team has read the issue and determined the next steps to take

Comments

@Germano0
Copy link

Germano0 commented Oct 9, 2024

On Fedora 40, during a dnf5 update I am currently experiencing a package conflict so the update is not even starting. Instead according to old dnf-4.21.1 the problem can be fixed by using --best --allowerasing, but the new dnf5 did not mention that.
dnf 4 output:

# dnf update breez*
Ultima verifica della scadenza dei metadati: 3:03:37 fa il mer 9 ott 2024, 12:24:17.
Dipendenze risolte.

 Problema: package breeze-icon-theme-rcc-6.3.0-1.fc40.x86_64 from @System requires breeze-icon-theme = 6.3.0-1.fc40, but none of the providers can be installed
  - cannot install both breeze-icon-theme-6.6.0-1.fc40.noarch from updates and breeze-icon-theme-6.3.0-1.fc40.x86_64 from @System
  - package breeze-icon-theme-6.6.0-1.fc40.noarch from updates obsoletes breeze-icon-theme < 6.3.0-2 provided by breeze-icon-theme-6.3.0-1.fc40.x86_64 from @System
  - cannot install both breeze-icon-theme-6.6.0-1.fc40.noarch from updates and breeze-icon-theme-6.3.0-1.fc40.i686 from updates
  - package breeze-icon-theme-6.6.0-1.fc40.noarch from updates obsoletes breeze-icon-theme < 6.3.0-2 provided by breeze-icon-theme-6.3.0-1.fc40.i686 from updates
  - cannot install both breeze-icon-theme-6.6.0-1.fc40.noarch from updates and breeze-icon-theme-6.3.0-1.fc40.x86_64 from updates
  - package breeze-icon-theme-6.6.0-1.fc40.noarch from updates obsoletes breeze-icon-theme < 6.3.0-2 provided by breeze-icon-theme-6.3.0-1.fc40.x86_64 from updates
  - cannot install the best update candidate for package breeze-icon-theme-rcc-6.3.0-1.fc40.x86_64
  - cannot install the best update candidate for package breeze-icon-theme-6.3.0-1.fc40.x86_64
=====================================================================================================================================================================================
 Package                                           Architecture                           Version                                      Repository                               Size
=====================================================================================================================================================================================
Esclusione dei pacchetti con conflitti:
(aggiungere '--best --allowerasing' alla linea di comando per forzarne l'aggiornamento):
 breeze-icon-theme                                 i686                                   6.3.0-1.fc40                                 updates                                  12 M
 breeze-icon-theme                                 noarch                                 6.6.0-1.fc40                                 updates                                 9.6 M

Riepilogo della transazione
=====================================================================================================================================================================================
Ignorati  2 pacchetti

Nessuna operazione da compiere.
Fatto!

dnf 5 output:

# dnf5 update breez*
Updating and loading repositories:
 Copr repo for rocclr owned by germano                                                                                                       100% |  11.5 KiB/s |   1.5 KiB |  00m00s
Repositories loaded.
Problem: package breeze-icon-theme-rcc-6.3.0-1.fc40.x86_64 requires breeze-icon-theme = 6.3.0-1.fc40, but none of the providers can be installed
  - cannot install both breeze-icon-theme-6.3.0-1.fc40.x86_64 and breeze-icon-theme-6.6.0-1.fc40.noarch
  - package breeze-icon-theme-6.6.0-1.fc40.noarch obsoletes breeze-icon-theme < 6.3.0-2 provided by breeze-icon-theme-6.3.0-1.fc40.x86_64
  - cannot install both breeze-icon-theme-6.3.0-1.fc40.i686 and breeze-icon-theme-6.6.0-1.fc40.noarch
  - package breeze-icon-theme-6.6.0-1.fc40.noarch obsoletes breeze-icon-theme < 6.3.0-2 provided by breeze-icon-theme-6.3.0-1.fc40.i686
  - cannot install the best update candidate for package breeze-icon-theme-rcc-6.3.0-1.fc40.x86_64
  - cannot install the best update candidate for package breeze-icon-theme-6.3.0-1.fc40.x86_64

Nothing to do.

And finally I solved the problem by using --best --allowerasing on dnf5

# dnf5 update breez* --best --allowerasing
Updating and loading repositories:
Repositories loaded.
Package                                                      Arch           Version                                                       Repository                             Size
Removing dependent packages:                                                                                                                                                         
 breeze-icon-theme-rcc                                       x86_64         6.3.0-1.fc40                                                  updates                            20.4 MiB
 kexi                                                        x86_64         3.2.0-10.fc40                                                 <unknown>                           6.9 MiB
 kexi-libs                                                   x86_64         3.2.0-10.fc40                                                 <unknown>                           6.6 MiB
Upgrading:                                                                                                                                                                           
 breeze-icon-theme                                           noarch         6.6.0-1.fc40                                                  updates                            26.9 MiB
   replacing breeze-icon-theme                               x86_64         6.3.0-1.fc40                                                  updates                            46.5 MiB
Installing dependencies:                                                                                                                                                             
 kf6-breeze-icons                                            x86_64         6.6.0-1.fc40                                                  updates                            20.9 MiB

Transaction Summary:
 Installing:        1 packages
 Upgrading:         1 packages
 Replacing:         1 packages
 Removing:          3 packages

Total size of inbound packages is 13 MiB. Need to download 13 MiB.
After this operation 33 MiB will be freed (install 48 MiB, remove 80 MiB).
Is this ok [y/N]: y
[1/2] kf6-breeze-icons-0:6.6.0-1.fc40.x86_64                                                                                                 100% |   3.7 MiB/s |   3.0 MiB |  00m01s
[2/2] breeze-icon-theme-0:6.6.0-1.fc40.noarch                                                                                                100% |   6.1 MiB/s |   9.6 MiB |  00m02s
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[2/2] Total                                                                                                                                  100% |   6.2 MiB/s |  12.6 MiB |  00m02s
Running transaction
[1/8] Verify package files                                                                                                                   100% |  47.0   B/s |   2.0   B |  00m00s
[2/8] Prepare transaction                                                                                                                    100% |   3.0   B/s |   6.0   B |  00m02s
[3/8] Upgrading breeze-icon-theme-0:6.6.0-1.fc40.noarch                                                                                      100% |   2.3 MiB/s |  32.4 MiB |  00m14s
[4/8] Installing kf6-breeze-icons-0:6.6.0-1.fc40.x86_64                                                                                      100% | 255.2 MiB/s |  20.9 MiB |  00m00s
[5/8] Erasing kexi-0:3.2.0-10.fc40.x86_64                                                                                                    100% | 512.0   B/s | 231.0   B |  00m00s
[6/8] Erasing breeze-icon-theme-rcc-0:6.3.0-1.fc40.x86_64                                                                                    100% |  14.0   B/s |   1.0   B |  00m00s
[7/8] Erasing breeze-icon-theme-0:6.3.0-1.fc40.x86_64                                                                                        100% |  71.0 KiB/s |  31.0 KiB |  00m00s
[8/8] Erasing kexi-libs-0:3.2.0-10.fc40.x86_64                                                                                               100% |  13.0   B/s | 103.0   B |  00m08s
>>> Running trigger-install scriptlet: glibc-common-0:2.39-22.fc40.x86_64
>>> Stop trigger-install scriptlet: glibc-common-0:2.39-22.fc40.x86_64
>>> Running trigger-post-uninstall scriptlet: hicolor-icon-theme-0:0.17-18.fc40.noarch
>>> Stop trigger-post-uninstall scriptlet: hicolor-icon-theme-0:0.17-18.fc40.noarch
>>> Running trigger-post-uninstall scriptlet: desktop-file-utils-0:0.26-12.fc40.x86_64
>>> Stop trigger-post-uninstall scriptlet: desktop-file-utils-0:0.26-12.fc40.x86_64
>>> Running trigger-post-uninstall scriptlet: breeze-icon-theme-0:6.6.0-1.fc40.noarch
>>> Stop trigger-post-uninstall scriptlet: breeze-icon-theme-0:6.6.0-1.fc40.noarch
>>> Running trigger-post-uninstall scriptlet: breeze-icon-theme-0:6.6.0-1.fc40.noarch
>>> Stop trigger-post-uninstall scriptlet: breeze-icon-theme-0:6.6.0-1.fc40.noarch
>>> Running trigger-install scriptlet: breeze-icon-theme-0:6.6.0-1.fc40.noarch
>>> Stop trigger-install scriptlet: breeze-icon-theme-0:6.6.0-1.fc40.noarch
>>> Running trigger-install scriptlet: breeze-icon-theme-0:6.6.0-1.fc40.noarch
>>> Stop trigger-install scriptlet: breeze-icon-theme-0:6.6.0-1.fc40.noarch

@kontura
Copy link
Contributor

kontura commented Oct 10, 2024

What version of dnf5 do you have?
Can you try to reproduce with newest version? Its available in our nightly copr: https://copr.fedorainfracloud.org/coprs/rpmsoftwaremanagement/dnf-nightly/.

I think this should be already resolved by #1328.

@Germano0
Copy link
Author

dnf5-5.1.17-2.fc40
At the moment I don't have the opportunity to reproduce a package conflict to trigger --best --allowerasing hint with latest nightly dnf5

@kontura
Copy link
Contributor

kontura commented Oct 10, 2024

Ok, that version already contains the mentioned commit.

I have created a test that reproduces it: kontura/ci-dnf-stack@635f50a.

This confirms the issue.

@kontura kontura added Triaged Someone on the DNF 5 team has read the issue and determined the next steps to take Priority: MEDIUM labels Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: MEDIUM Triaged Someone on the DNF 5 team has read the issue and determined the next steps to take
Projects
None yet
Development

No branches or pull requests

2 participants