Bug 28203 - DNF finds the package only if urpmi has installed it already
Summary: DNF finds the package only if urpmi has installed it already
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 8
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Neal Gompa
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-23 18:47 CET by christian barranco
Modified: 2021-01-24 21:24 CET (History)
1 user (show)

See Also:
Source RPM:
CVE:
Status comment:


Attachments

Description christian barranco 2021-01-23 18:47:12 CET
Description of problem:
dnf search or dnf install don't find a package 
urpmi package   installs the package
dnf search or dnf install then can find the package !

Version-Release number of selected component (if applicable): mageia 8


How reproducible: always and for all packages I have tested so far


Steps to Reproduce:

Here are the setps for the package lib64glade2.0_0 but I have the exact same behavior for inxi or jbigkit. I don't have a comprehensive list but I am under the impression it is valid for many.

$ sudo dnf search lib64glade2.0_0
Last metadata expiration check: 3:39:16 ago on sam. 23 janv. 2021 14:59:35.
No matches found.

$ sudo dnf install lib64glade2.0_0
Last metadata expiration check: 3:39:23 ago on sam. 23 janv. 2021 14:59:35.
No match for argument: lib64glade2.0_0
Error: Unable to find a match: lib64glade2.0_0

$ sudo urpmi lib64glade2.0_0


    $MIRRORLIST: media/core/release/lib64glade2.0_0-2.6.4-15.mga8.x86_64.rpm
installing lib64glade2.0_0-2.6.4-15.mga8.x86_64.rpm from /var/cache/urpmi/rpms                                                                         
Preparing...                     #####################################################################################################################
      1/1: lib64glade2.0_0       #####################################################################################################################

sudo dnf search lib64glade2.0_0
Last metadata expiration check: 3:39:51 ago on sam. 23 janv. 2021 14:59:35.
======================================================== Name Exactly Matched: lib64glade2.0_0 =========================================================
lib64glade2.0_0.x86_64 : Library for dynamically loading GLADE interface files
Comment 1 Lewis Smith 2021-01-23 21:56:19 CET
The title is not universally true. On my M8 system:

 $ rpm -q grisbi
 package grisbi is not installed

 $ sudo dnf search grisbi
Mageia Cauldron - x86_64 - Updates               42  B/s | 136  B     00:03    
Errors during downloading metadata for repository 'cauldron-updates-x86_64':
  - At least one of the zchunk checksums doesn't match in ftp://ftp.free.fr/mirrors/mageia.org/distrib/cauldron/x86_64/media/core/updates/repodata/eb0e1b28d39394c1e512824bb33d07dca6b4451fbdc1584c24974558f067885c-primary.xml.zck
Error: Failed to download metadata for repo 'cauldron-updates-x86_64': Checksum error /var/cache/dnf/cauldron-updates-x86_64-7e1fcdfdaf44a85f/repodata/eb0e1b28d39394c1e512824bb33d07dca6b4451fbdc1584c24974558f067885c-primary.xml.zck: Unable to validate zchunk checksums
Mageia 8 - x86_64                               141  B/s |  51  B     00:00    
Error: Failed to download metadata for repo 'mageia-x86_64': Cannot prepare internal mirrorlist: No URLs in mirrorlist
Mageia 8 - x86_64 - Updates                     162  B/s |  51  B     00:00    
Error: Failed to download metadata for repo 'updates-x86_64': Cannot prepare internal mirrorlist: No URLs in mirrorlist
Ignoring repositories: cauldron-updates-x86_64, mageia-x86_64, updates-x86_64
Last metadata expiration check: 1:53:52 ago on Dydd Sadwrn 23 mis Ionawr 2021 19:45:46 CET.
========================= Name Exactly Matched: grisbi =========================
grisbi.x86_64 : Personal finance manager

I tried for other packages, similar result:
 $ rpm -q pitivi
 package pitivi is not installed
 $ sudo dnf search pitivi
...
======================== Name & Summary Matched: pitivi ========================
pitivi.x86_64 : Pitivi non linear video editor under Linux

I wonder whether this has anything to do with the recent mirror problems you had.

Assigning to Neal for his opinion.

Ever confirmed: 1 => 0
Status: NEW => UNCONFIRMED
Assignee: bugsquad => ngompa13
CC: (none) => lewyssmith

Comment 2 Thomas Backlund 2021-01-24 00:52:20 CET
it most likely is due to the repodata generation failure on the server that is fixed now
Comment 3 Lewis Smith 2021-01-24 14:51:30 CET
Thanks Thomas.

$ rpm -q grisbi
package grisbi is not installed
$ sudo dnf search grisbi
Mageia 7 - x86_64 - Backports                   159 kB/s | 628 kB     00:03    
Last metadata expiration check: 0:00:03 ago on Dydd Sul 24 mis Ionawr 2021 14:46:52 CET.
========================= Name Exactly Matched: grisbi =========================
grisbi.x86_64 : Personal finance manager

Without all the mess shown in comment 1. The issue really looks fixed.

@christian : Please re-try. If it looks OK now, please close this bug 'fixed'.
Comment 4 christian barranco 2021-01-24 21:24:31 CET
Hi
Just did a fresh install with MGA8 beta2 iso on a VM.
I have now again the metadata download error https://bugs.mageia.org/show_bug.cgi?id=28186

but lib64glade2.0_0 installed worked with DNF:

#dnf install lib64glade2.0_0

determining the fastest mirror (5 hosts).. done. B/s |   0  B     --:-- ETA
Mageia Cauldron - x86_64 - Updates           23 kB/s |  48 kB     00:02    
Errors during downloading metadata for repository 'cauldron-updates-x86_64':
  - Zchunk header checksum didn't match expected checksum
  - Interrupted by header callback: FTP server reports size: 30434 via 213 code, but expected size is: 1
Error: Failed to download metadata for repo 'cauldron-updates-x86_64': Checksum error /var/cache/dnf/cauldron-updates-x86_64-7e1fcdfdaf44a85f/repodata/bc1b03b9b3649f8ba94988949e0704d5257fe1efbecb8a92ffcf206b9f1ee66c-filelists.xml.zck: Unable to read zchunk lead
Mageia 8 - x86_64                           573  B/s |  51  B     00:00    
Error: Failed to download metadata for repo 'mageia-x86_64': Cannot prepare internal mirrorlist: No URLs in mirrorlist
Mageia 8 - x86_64 - Updates                 568  B/s |  51  B     00:00    
Error: Failed to download metadata for repo 'updates-x86_64': Cannot prepare internal mirrorlist: No URLs in mirrorlist
Ignoring repositories: cauldron-updates-x86_64, mageia-x86_64, updates-x86_64
Last metadata expiration check: 0:00:31 ago on Sun 24 Jan 2021 09:20:02 PM CET.
Dependencies resolved.
============================================================================
 Package             Arch       Version           Repository           Size
============================================================================
Installing:
 lib64glade2.0_0     x86_64     2.6.4-15.mga8     cauldron-x86_64      78 k

Transaction Summary
============================================================================
Install  1 Package

Total download size: 78 k
Installed size: 232 k
Is this ok [y/N]: y
Downloading Packages:
determining the fastest mirror (1 hosts).. done. B/s |   0  B     --:-- ETA
lib64glade2.0_0-2.6.4-15.mga8.x86_64.rpm    371 kB/s |  78 kB     00:00    
----------------------------------------------------------------------------
Total                                       102 kB/s |  78 kB     00:00     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                    1/1 
  Installing       : lib64glade2.0_0-2.6.4-15.mga8.x86_64               1/1 
  Verifying        : lib64glade2.0_0-2.6.4-15.mga8.x86_64               1/1 

Installed:
  lib64glade2.0_0-2.6.4-15.mga8.x86_64                                      

Complete!


I close the bug. 

dnf behavior seems a bit erratic. I will check again with the RC.

Status: UNCONFIRMED => RESOLVED
Resolution: (none) => FIXED


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