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 2134013

Summary: DNF fails on none English systems
Product: Red Hat Enterprise Linux 9 Reporter: Frank Büttner <bugzilla>
Component: dnfAssignee: Marek Blaha <mblaha>
Status: CLOSED DUPLICATE QA Contact: swm-qe
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 9.0CC: james.antill, mblaha
Target Milestone: rcKeywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-11-09 07:57:37 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Frank Büttner 2022-10-12 06:56:51 UTC
Description of problem:
On systems using none English LANG environment, the install/update of pre downloaded packages fails.

Version-Release number of selected component (if applicable):
dnf-4.10.0-5.el9_0.noarch

How reproducible:
Every time

Steps to Reproduce:
1. wait until packages are downloaded (for example via dnf-automatic)
2. try to install the updates via dnf update

Actual results:
The updates fails with:
Die heruntergeladenen Pakete wurden bis zur nächsten erfolgreichen Transaktion im Zwischenspeicher abgelegt.
Sie können zwischengespeicherte Pakete mit dem Befehl »dnf clean packages« entfernen.
Fehler: Fehler beim Herunterladen der Pakete:
  puppet-agent-7.20.0-1.el9.x86_64: Already downloaded

Expected results:
Working updates

Additional info:
Call the same with an English LANG environment will work. 
Sample:
 echo $LANG;dnf update
de_DE.UTF-8
Puppet 7 Repository el 9 - x86_64                                                                                                                                                                             1.1 kB/s | 819  B     00:00    
Abhängigkeiten sind aufgelöst.
==============================================================================================================================================================================================================================================
 Package                                                     Architecture                                          Version                                                        Repository                                             Size
==============================================================================================================================================================================================================================================
Aktualisieren:
 puppet-agent                                                x86_64                                                7.20.0-1.el9                                                   puppet                                                 23 M

Transaktionsübersicht
==============================================================================================================================================================================================================================================
Aktualisieren  1 Paket

Gesamtgröße: 23 M
Ist dies in Ordnung? [j/N]: j
Pakete werden heruntergeladen:
[SKIPPED] puppet-agent-7.20.0-1.el9.x86_64.rpm: Already downloaded                                                                                                                                                                           

Die heruntergeladenen Pakete wurden bis zur nächsten erfolgreichen Transaktion im Zwischenspeicher abgelegt.
Sie können zwischengespeicherte Pakete mit dem Befehl »dnf clean packages« entfernen.
Fehler: Fehler beim Herunterladen der Pakete:
  puppet-agent-7.20.0-1.el9.x86_64: Already downloaded


 LANG=C.UTF-8;echo $LANG;dnf update
C.UTF-8
Last metadata expiration check: 0:00:16 ago on Wed Oct 12 08:54:39 2022.
Dependencies resolved.
==============================================================================================================================================================================================================================================
 Package                                                     Architecture                                          Version                                                        Repository                                             Size
==============================================================================================================================================================================================================================================
Upgrading:
 puppet-agent                                                x86_64                                                7.20.0-1.el9                                                   puppet                                                 23 M

Transaction Summary
==============================================================================================================================================================================================================================================
Upgrade  1 Package

Total size: 23 M
Is this ok [y/N]: y
Downloading Packages:
[SKIPPED] puppet-agent-7.20.0-1.el9.x86_64.rpm: Already downloaded                                                                                                                                                                           
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                                                                                      1/1 
  Running scriptlet: puppet-agent-7.20.0-1.el9.x86_64                                                                                                                                                                                     1/2 
  Upgrading        : puppet-agent-7.20.0-1.el9.x86_64                                                                                                                                                                                     1/2 
  Running scriptlet: puppet-agent-7.20.0-1.el9.x86_64                                                                                                                                                                                     1/2 
  Running scriptlet: puppet-agent-7.19.0-1.el9.x86_64                                                                                                                                                                                     2/2 
  Cleanup          : puppet-agent-7.19.0-1.el9.x86_64                                                                                                                                                                                     2/2 
  Running scriptlet: puppet-agent-7.19.0-1.el9.x86_64                                                                                                                                                                                     2/2 
Failed to set unit properties on puppet.service: Unit puppet.service is masked.

  Running scriptlet: puppet-agent-7.20.0-1.el9.x86_64                                                                                                                                                                                     2/2 
  Running scriptlet: puppet-agent-7.19.0-1.el9.x86_64                                                                                                                                                                                     2/2 
  Verifying        : puppet-agent-7.20.0-1.el9.x86_64                                                                                                                                                                                     1/2 
  Verifying        : puppet-agent-7.19.0-1.el9.x86_64                                                                                                                                                                                     2/2 

Upgraded:
  puppet-agent-7.20.0-1.el9.x86_64                                                                                                                                                                                                            

Complete!

Comment 2 Marek Blaha 2022-11-09 07:57:37 UTC

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