Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 2070123 - DNF fails during installation with non-C locale when the requested packages are already present in the cache
Summary: DNF fails during installation with non-C locale when the requested packages a...
Keywords:
Status: CLOSED DUPLICATE of bug 2024527
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
Assignee: rpm-software-management
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-03-30 12:52 UTC by Frantisek Sumsal
Modified: 2022-03-31 07:36 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-03-31 07:36:41 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Frantisek Sumsal 2022-03-30 12:52:18 UTC
Description of problem:
When using a non-C locale (anything else than LANG=C) dnf reports an error when the requested packages are already present in the local cache.

Version-Release number of selected component (if applicable):
dnf-4.11.1-1.fc37.noarch

How reproducible:
always

Steps to Reproduce:
# dnf clean all
# LANG=pl_PL.UTF-8 dnf -y --downloadonly install vim
# echo $?
# LANG=pl_PL.UTF-8 dnf -y install vim
# echo $?

Actual results:
# LANG=pl_PL.UTF-8 dnf -y --downloadonly install vim
Fedora rawhide openh264 (From Cisco) - x86_64                            1.6 kB/s | 2.5 kB     00:01    
Fedora - Rawhide - Developmental packages for the next Fedora release    3.1 MB/s |  64 MB     00:20    
Fedora - Modular Rawhide - Developmental packages for the next Fedora re 590 kB/s | 1.7 MB     00:02    
Rozwiązano zależności.
=========================================================================================================
 Pakiet                     Architektura       Wersja                          Repozytorium        Rozm.
=========================================================================================================
Instalowanie:
 vim-enhanced               x86_64             2:8.2.4621-1.fc37               rawhide             1.9 M
Instalowanie zależności:
 gpm-libs                   x86_64             1.20.7-40.fc36                  rawhide              21 k
 libsodium                  x86_64             1.0.18-9.fc36                   rawhide             163 k
 vim-common                 x86_64             2:8.2.4621-1.fc37               rawhide             6.9 M
 vim-filesystem             noarch             2:8.2.4621-1.fc37               rawhide              22 k
 which                      x86_64             2.21-33.fc37                    rawhide              42 k

Podsumowanie transakcji
=========================================================================================================
Instalacja  6 pakietów

Całkowity rozmiar pobierania: 9.1 M
Rozmiar po zainstalowaniu: 37 M
DNF tylko pobierze pakiety dla transakcji.
Pobieranie pakietów:
(1/6): gpm-libs-1.20.7-40.fc36.x86_64.rpm                                246 kB/s |  21 kB     00:00    
(2/6): libsodium-1.0.18-9.fc36.x86_64.rpm                                892 kB/s | 163 kB     00:00    
(3/6): vim-filesystem-8.2.4621-1.fc37.noarch.rpm                         825 kB/s |  22 kB     00:00    
(4/6): which-2.21-33.fc37.x86_64.rpm                                     753 kB/s |  42 kB     00:00    
(5/6): vim-enhanced-8.2.4621-1.fc37.x86_64.rpm                           1.6 MB/s | 1.9 MB     00:01    
(6/6): vim-common-8.2.4621-1.fc37.x86_64.rpm                             2.5 MB/s | 6.9 MB     00:02    
---------------------------------------------------------------------------------------------------------
Razem                                                                    3.1 MB/s | 9.1 MB     00:02     
Ukończono.
Pobrane pakiety zostały zapisane w pamięci podręcznej do czasu następnej pomyślnej transakcji.
Można usunąć pakiety z pamięci podręcznej wykonując polecenie „dnf clean packages”.
# echo $?
0
# LANG=pl_PL.UTF-8 dnf -y install vim
Ostatnio sprawdzono ważność metadanych: 0:01:56 temu w dniu śro, 30 mar 2022, 12:49:24.
Rozwiązano zależności.
=========================================================================================================
 Pakiet                     Architektura       Wersja                          Repozytorium        Rozm.
=========================================================================================================
Instalowanie:
 vim-enhanced               x86_64             2:8.2.4621-1.fc37               rawhide             1.9 M
Instalowanie zależności:
 gpm-libs                   x86_64             1.20.7-40.fc36                  rawhide              21 k
 libsodium                  x86_64             1.0.18-9.fc36                   rawhide             163 k
 vim-common                 x86_64             2:8.2.4621-1.fc37               rawhide             6.9 M
 vim-filesystem             noarch             2:8.2.4621-1.fc37               rawhide              22 k
 which                      x86_64             2.21-33.fc37                    rawhide              42 k

Podsumowanie transakcji
=========================================================================================================
Instalacja  6 pakietów

Całkowity rozmiar: 9.1 M
Rozmiar po zainstalowaniu: 37 M
Pobieranie pakietów:
[SKIPPED] gpm-libs-1.20.7-40.fc36.x86_64.rpm: Already downloaded                                        
[SKIPPED] libsodium-1.0.18-9.fc36.x86_64.rpm: Already downloaded                                        
[SKIPPED] vim-common-8.2.4621-1.fc37.x86_64.rpm: Already downloaded                                     
[SKIPPED] vim-enhanced-8.2.4621-1.fc37.x86_64.rpm: Already downloaded                                   
[SKIPPED] vim-filesystem-8.2.4621-1.fc37.noarch.rpm: Already downloaded                                 
[SKIPPED] which-2.21-33.fc37.x86_64.rpm: Already downloaded                                             

Pobrane pakiety zostały zapisane w pamięci podręcznej do czasu następnej pomyślnej transakcji.
Można usunąć pakiety z pamięci podręcznej wykonując polecenie „dnf clean packages”.
Błąd: Błąd podczas pobierania pakietów:
  gpm-libs-1.20.7-40.fc36.x86_64: Already downloaded
  libsodium-1.0.18-9.fc36.x86_64: Already downloaded
  vim-common-2:8.2.4621-1.fc37.x86_64: Already downloaded
  vim-enhanced-2:8.2.4621-1.fc37.x86_64: Already downloaded
  vim-filesystem-2:8.2.4621-1.fc37.noarch: Already downloaded
  which-2.21-33.fc37.x86_64: Already downloaded
# echo $?
1

Expected results:
# LANG=C.UTF-8 dnf -y --downloadonly install vim
Fedora rawhide openh264 (From Cisco) - x86_64                            581  B/s | 2.5 kB     00:04    
Fedora - Rawhide - Developmental packages for the next Fedora release    3.2 MB/s |  64 MB     00:20    
Fedora - Modular Rawhide - Developmental packages for the next Fedora re 984 kB/s | 1.7 MB     00:01    
Dependencies resolved.
=========================================================================================================
 Package                    Architecture       Version                         Repository           Size
=========================================================================================================
Installing:
 vim-enhanced               x86_64             2:8.2.4621-1.fc37               rawhide             1.9 M
Installing dependencies:
 gpm-libs                   x86_64             1.20.7-40.fc36                  rawhide              21 k
 libsodium                  x86_64             1.0.18-9.fc36                   rawhide             163 k
 vim-common                 x86_64             2:8.2.4621-1.fc37               rawhide             6.9 M
 vim-filesystem             noarch             2:8.2.4621-1.fc37               rawhide              22 k
 which                      x86_64             2.21-33.fc37                    rawhide              42 k

Transaction Summary
=========================================================================================================
Install  6 Packages

Total download size: 9.1 M
Installed size: 37 M
DNF will only download packages for the transaction.
Downloading Packages:
(1/6): gpm-libs-1.20.7-40.fc36.x86_64.rpm                                242 kB/s |  21 kB     00:00    
(2/6): libsodium-1.0.18-9.fc36.x86_64.rpm                                1.0 MB/s | 163 kB     00:00    
(3/6): vim-filesystem-8.2.4621-1.fc37.noarch.rpm                         577 kB/s |  22 kB     00:00    
(4/6): which-2.21-33.fc37.x86_64.rpm                                     706 kB/s |  42 kB     00:00    
(5/6): vim-enhanced-8.2.4621-1.fc37.x86_64.rpm                           1.8 MB/s | 1.9 MB     00:01    
(6/6): vim-common-8.2.4621-1.fc37.x86_64.rpm                             2.5 MB/s | 6.9 MB     00:02    
---------------------------------------------------------------------------------------------------------
Total                                                                    1.9 MB/s | 9.1 MB     00:04     
Complete!
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
# echo $?
0
# LANG=C.UTF-8 dnf -y install vim
Fedora - Rawhide - Developmental packages for the next Fedora release     89 kB/s |  17 kB     00:00    
Dependencies resolved.
=========================================================================================================
 Package                    Architecture       Version                         Repository           Size
=========================================================================================================
Installing:
 vim-enhanced               x86_64             2:8.2.4621-1.fc37               rawhide             1.9 M
Installing dependencies:
 gpm-libs                   x86_64             1.20.7-40.fc36                  rawhide              21 k
 libsodium                  x86_64             1.0.18-9.fc36                   rawhide             163 k
 vim-common                 x86_64             2:8.2.4621-1.fc37               rawhide             6.9 M
 vim-filesystem             noarch             2:8.2.4621-1.fc37               rawhide              22 k
 which                      x86_64             2.21-33.fc37                    rawhide              42 k

Transaction Summary
=========================================================================================================
Install  6 Packages

Total size: 9.1 M
Installed size: 37 M
Downloading Packages:
[SKIPPED] gpm-libs-1.20.7-40.fc36.x86_64.rpm: Already downloaded                                        
[SKIPPED] libsodium-1.0.18-9.fc36.x86_64.rpm: Already downloaded                                        
[SKIPPED] vim-common-8.2.4621-1.fc37.x86_64.rpm: Already downloaded                                     
[SKIPPED] vim-enhanced-8.2.4621-1.fc37.x86_64.rpm: Already downloaded                                   
[SKIPPED] vim-filesystem-8.2.4621-1.fc37.noarch.rpm: Already downloaded                                 
[SKIPPED] which-2.21-33.fc37.x86_64.rpm: Already downloaded                                             
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                 1/1 
  Installing       : which-2.21-33.fc37.x86_64                                                       1/6 
  Installing       : vim-filesystem-2:8.2.4621-1.fc37.noarch                                         2/6 
  Installing       : vim-common-2:8.2.4621-1.fc37.x86_64                                             3/6 
  Installing       : libsodium-1.0.18-9.fc36.x86_64                                                  4/6 
  Installing       : gpm-libs-1.20.7-40.fc36.x86_64                                                  5/6 
  Installing       : vim-enhanced-2:8.2.4621-1.fc37.x86_64                                           6/6 
  Running scriptlet: vim-enhanced-2:8.2.4621-1.fc37.x86_64                                           6/6 
  Verifying        : gpm-libs-1.20.7-40.fc36.x86_64                                                  1/6 
  Verifying        : libsodium-1.0.18-9.fc36.x86_64                                                  2/6 
  Verifying        : vim-common-2:8.2.4621-1.fc37.x86_64                                             3/6 
  Verifying        : vim-enhanced-2:8.2.4621-1.fc37.x86_64                                           4/6 
  Verifying        : vim-filesystem-2:8.2.4621-1.fc37.noarch                                         5/6 
  Verifying        : which-2.21-33.fc37.x86_64                                                       6/6 

Installed:
  gpm-libs-1.20.7-40.fc36.x86_64                       libsodium-1.0.18-9.fc36.x86_64                    
  vim-common-2:8.2.4621-1.fc37.x86_64                  vim-enhanced-2:8.2.4621-1.fc37.x86_64             
  vim-filesystem-2:8.2.4621-1.fc37.noarch              which-2.21-33.fc37.x86_64                         

Complete!
# echo $?
0

Comment 1 Marek Blaha 2022-03-31 07:36:41 UTC

*** This bug has been marked as a duplicate of bug 2024527 ***


Note You need to log in before you can comment on or make changes to this bug.