Bug 29867

Summary: Cannot install breezy due to bad rpms error
Product: Mageia Reporter: Kristoffer Grundström <lovaren>
Component: RPM PackagesAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: Normal CC: davidwhodgins, lewyssmith
Version: 8   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: breezy CVE:
Status comment:

Description Kristoffer Grundström 2022-01-11 01:01:16 CET
Description of problem: I wanted to install breezy to use the bzr command and as I ran urpmi breezy I got this as a result:

[kristoffer@ip2-133 ~]$ sudo urpmi --test breezy --auto
[sudo] password for kristoffer: 


    http://ftp.acc.umu.se/mirror/mageia/distrib/8/x86_64/media/core/release/breezy-3.1.0-1.mga8.x86_64.rpm
Installation failed, bad rpms:                                                                                                                                         
    http://ftp.acc.umu.se/mirror/mageia/distrib/8/x86_64/media/core/release/breezy-3.1.0-1.mga8.x86_64.rpm

Note that I did run urpmi.update -a before that and I got no error.

Medias I have and they're all active is:

Core Release
Core Release Debug
Core Updates
Core Updates Debug
Core 32bit Release
Core 32bit Updates
Nonfree 32bit Release
Nonfree 32bit Updates

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

How reproducible: All the time.

Steps to Reproduce:
1. Open a terminal window.
2. Type sudo urpmi breezy --auto
3. Breezy cannot be installed due to bad rpms.
Comment 1 Kristoffer Grundström 2022-01-11 01:01:35 CET
I have rebuilt the rpm database as well.
Comment 2 Dave Hodgins 2022-01-11 02:32:37 CET
Run "urpmi --clean" and try again. I downloaded the rpm from that link and
it installed cleanly

# urpmi ./breezy-3.1.0-1.mga8.x86_64.rpm        
To satisfy dependencies, the following packages are going to be installed:
  Package                        Version      Release       Arch    
(medium "Core Release (distrib1)")
  python3-certifi                2020.6.20    1.mga8        noarch  
  python3-dulwich                0.20.14      1.mga8        x86_64  
  python3-fastimport             0.9.8        3.mga8        noarch  
  python3-patiencediff           0.2.1        1.mga8        x86_64  
(command line)
  breezy                         3.1.0        1.mga8        x86_64  
31MB of additional disk space will be used.
6.5MB of packages will be retrieved.
Proceed with the installation of the 5 packages? (Y/n) 


installing /var/cache/urpmi/rpms/python3-fastimport-0.9.8-3.mga8.noarch.rpm
/var/cache/urpmi/rpms/python3-dulwich-0.20.14-1.mga8.x86_64.rpm
/var/cache/urpmi/rpms/python3-patiencediff-0.2.1-1.mga8.x86_64.rpm
./breezy-3.1.0-1.mga8.x86_64.rpm
/var/cache/urpmi/rpms/python3-certifi-2020.6.20-1.mga8.noarch.rpm
Preparing...                     ###############################################################################################################################################################################
      1/5: python3-certifi       ###############################################################################################################################################################################
      2/5: python3-dulwich       ###############################################################################################################################################################################
      3/5: python3-patiencediff  ###############################################################################################################################################################################
      4/5: python3-fastimport    ###############################################################################################################################################################################
      5/5: breezy                ###############################################################################################################################################################################

Closing as invalid since this appears to be corruption during download, not
a problem with the package on the mirror.

Status: NEW => RESOLVED
Resolution: (none) => INVALID
CC: (none) => davidwhodgins

Comment 3 Kristoffer Grundström 2022-01-12 20:04:36 CET
I had the downloader in edit-urpm-sources.pl set to use curl instead of wget so that caused the problem. I rebuilt the curl src.rpm from Cauldron and installed that and switched back to use curl and I can still reproduce the issue with curl.

Any ideas?

REOPENING and awaiting new solutions for curl.

Resolution: INVALID => (none)
Status: RESOLVED => REOPENED

Comment 4 sturmvogel 2022-01-14 17:37:41 CET
Read Bug #24362
Comment 5 sturmvogel 2022-01-14 17:40:30 CET
And it's in errata https://wiki.mageia.org/en/Mageia_8_Errata#Downloading_software
Comment 6 Lewis Smith 2022-02-12 20:26:37 CET
@Kristoffer
Sorry to have left you.
That bug 24362 is worth a look.
The essential is that using 'wget' as the downloader is the best bet if you currently have 'curl' or 'aria2'.
Can you say
- whether this specific download still fails?
- if so, do others?
- with what downloader?
- if not already 'wget', change to that; does it still fail?

CC: (none) => lewyssmith

Comment 7 Kristoffer Grundström 2022-02-12 21:09:07 CET
(In reply to Lewis Smith from comment #6)
> @Kristoffer
> Sorry to have left you.
> That bug 24362 is worth a look.
> The essential is that using 'wget' as the downloader is the best bet if you
> currently have 'curl' or 'aria2'.
> Can you say
> - whether this specific download still fails?
> - if so, do others?
> - with what downloader?
> - if not already 'wget', change to that; does it still fail?

Package is already installed so closing as WORKSFORME.

Status: REOPENED => RESOLVED
Resolution: (none) => WORKSFORME