Bug 24438 - urpmi.addmedia --distrib adds repositories with "Core 32bit Release" and "Core 32bit Updates" disabled while Nonfree/Tainted 32bit are enabled, causing problems when updating 32bit packages
Summary: urpmi.addmedia --distrib adds repositories with "Core 32bit Release" and "Cor...
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: Release (media or process) (show other bugs)
Version: 6
Hardware: All Linux
Priority: High critical
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: mga6-64-ok
Keywords: advisory, validated_update
: 25571 (view as bug list)
Depends on:
Blocks: 25528
  Show dependency treegraph
 
Reported: 2019-02-27 20:58 CET by PC LX
Modified: 2019-10-23 23:08 CEST (History)
11 users (show)

See Also:
Source RPM: urpmi-8.110-2.mga6
CVE:
Status comment:


Attachments
Patch to enable 32-bit media if required (4.44 KB, text/plain)
2019-09-28 15:25 CEST, Martin Whitaker
Details
cherry-picked patch #1 needed for mga6 (1.41 KB, text/plain)
2019-10-05 16:38 CEST, Martin Whitaker
Details
cherry-picked patch #2 needed for mga6 (3.01 KB, text/plain)
2019-10-05 16:39 CEST, Martin Whitaker
Details
media.pm with debug (67.01 KB, text/plain)
2019-10-21 16:16 CEST, Martin Whitaker
Details
improved media.pm (67.02 KB, text/plain)
2019-10-21 17:45 CEST, Martin Whitaker
Details

Description PC LX 2019-02-27 20:58:41 CET
Description of problem:

As the summary says, cauldron repositories have "ignored by default" the repositories "Core 32bit Release" and "Core 32bit Updates".
This causes problems when updating 32bit packages.

This issue does not happen when setting up the Mageia 6 repositories.


$ urpmi.addmedia --distrib http://ftp.free.fr/mirrors/mageia.org/distrib/cauldron/x86_64/
adding medium "Core Release"
adding medium "Core Release Debug" (ignored by default)
adding medium "Core Updates"
adding medium "Core Updates Debug" (ignored by default)
adding medium "Core Updates Testing" (ignored by default)
adding medium "Core Updates Testing Debug" (ignored by default)
adding medium "Core Backports" (ignored by default)
adding medium "Core Backports Debug" (ignored by default)
adding medium "Core Backports Testing" (ignored by default)
adding medium "Core Backports Testing Debug" (ignored by default)
adding medium "Nonfree Release"
adding medium "Nonfree Release Debug" (ignored by default)
adding medium "Nonfree Updates"
adding medium "Nonfree Updates Debug" (ignored by default)
adding medium "Nonfree Updates Testing" (ignored by default)
adding medium "Nonfree Updates Testing Debug" (ignored by default)
adding medium "Nonfree Backports" (ignored by default)
adding medium "Nonfree Backports Debug" (ignored by default)
adding medium "Nonfree Backports Testing" (ignored by default)
adding medium "Nonfree Backports Testing Debug" (ignored by default)
adding medium "Tainted Release"
adding medium "Tainted Release Debug" (ignored by default)
adding medium "Tainted Updates"
adding medium "Tainted Updates Debug" (ignored by default)
adding medium "Tainted Updates Testing" (ignored by default)
adding medium "Tainted Updates Testing Debug" (ignored by default)
adding medium "Tainted Backports" (ignored by default)
adding medium "Tainted Backports Debug" (ignored by default)
adding medium "Tainted Backports Testing" (ignored by default)
adding medium "Tainted Backports Testing Debug" (ignored by default)
adding medium "Core 32bit Release" (ignored by default)
adding medium "Core 32bit Updates" (ignored by default)
adding medium "Core 32bit Updates Testing" (ignored by default)
adding medium "Core 32bit Backports" (ignored by default)
adding medium "Core 32bit Backports Testing" (ignored by default)
adding medium "Nonfree 32bit Release"
adding medium "Nonfree 32bit Updates"
adding medium "Nonfree 32bit Updates Testing" (ignored by default)
adding medium "Nonfree 32bit Backports" (ignored by default)
adding medium "Nonfree 32bit Backports Testing" (ignored by default)
adding medium "Tainted 32bit Release"
adding medium "Tainted 32bit Updates"
adding medium "Tainted 32bit Updates Testing" (ignored by default)
adding medium "Tainted 32bit Backports" (ignored by default)
adding medium "Tainted 32bit Backports Testing" (ignored by default)
    http://ftp.free.fr/mirrors/mageia.org/distrib/cauldron/x86_64/media/core/release/media_info/20190227-193350-synthesis.hdlist.cz
    http://ftp.free.fr/mirrors/mageia.org/distrib/cauldron/x86_64/media/core/updates/media_info/20180118-182314-synthesis.hdlist.cz                                                                              
    http://ftp.free.fr/mirrors/mageia.org/distrib/cauldron/x86_64/media/nonfree/release/media_info/20190227-171547-synthesis.hdlist.cz                                                                           
    http://ftp.free.fr/mirrors/mageia.org/distrib/cauldron/x86_64/media/nonfree/updates/media_info/20180118-182300-synthesis.hdlist.cz                                                                           
    http://ftp.free.fr/mirrors/mageia.org/distrib/cauldron/x86_64/media/tainted/release/media_info/20190226-191341-synthesis.hdlist.cz                                                                           
    http://ftp.free.fr/mirrors/mageia.org/distrib/cauldron/x86_64/media/tainted/updates/media_info/20180118-182241-synthesis.hdlist.cz                                                                           
    http://ftp.free.fr/mirrors/mageia.org/distrib/cauldron/i586/media/nonfree/release/media_info/20190227-171546-synthesis.hdlist.cz                                                                             
    http://ftp.free.fr/mirrors/mageia.org/distrib/cauldron/i586/media/nonfree/updates/media_info/20180118-182300-synthesis.hdlist.cz                                                                             
    http://ftp.free.fr/mirrors/mageia.org/distrib/cauldron/i586/media/tainted/release/media_info/20190226-191338-synthesis.hdlist.cz                                                                             
    http://ftp.free.fr/mirrors/mageia.org/distrib/cauldron/i586/media/tainted/updates/media_info/20180118-182241-synthesis.hdlist.cz                                                                             



How reproducible:

Always.



Steps to Reproduce:
1. Run "urpmi.addmedia --distrib http://ftp.free.fr/mirrors/mageia.org/distrib/cauldron/x86_64/"
2. Look at the lines:
      adding medium "Core 32bit Release" (ignored by default)
      adding medium "Core 32bit Updates" (ignored by default)
Comment 1 Marja Van Waes 2019-02-28 19:25:57 CET
_All_ 32bit repositories should now be ignored by default for 64bit installs. If you need 32bit packages, you must manually enable the matching repositories

I'm not sure why this was changed, but I think it is a good idea because I've seen too many users getting in trouble with mixed 32bit/64bit systems

There's bug 24376 for the nonfree 32bit repositories that are still enabled. I just added to it that you showed that the tainted repos are still enabled, too.

Leaving this report open until it has been confirmed that this new behaviour has been added to the release notes for Mageia 7.

@ docteam

I hope you don't mind my assigning this report to you for that.

CC: (none) => marja11
Assignee: bugsquad => doc-bugs

Comment 2 PC LX 2019-02-28 20:33:59 CET
(In reply to Marja Van Waes from comment #1)
> _All_ 32bit repositories should now be ignored by default for 64bit
> installs.

Some of the 32bit repositories were NOT "ignored by default" so there is an issue either way.

> If you need 32bit packages, you must manually enable the matching
> repositories

The "steam" package was the one that caused me to notice this issue.

Don't know how common "steam" usage is, or more generally, or common is the usage of 64bit packages that depend on 32bit packages but having the 32bit repositories disabled may also cause trouble for users of those packages.

$ rpm -qi steam | egrep 'Name|Version|Release|Arch'
Name        : steam
Version     : 1.0.0.59
Release     : 1.mga7.nonfree
Architecture: x86_64
$ rpm -q --requires steam
gnu-free-mono-fonts
libcurl4
libdbus-glib1_2
libfreetype6
libmesagl1
libmesaglu1
libstdc++6
libudev1
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsXz) <= 5.2-1
steam-udevrules
xz
zenity


> I'm not sure why this was changed, but I think it is a good idea because
> I've seen too many users getting in trouble with mixed 32bit/64bit systems
> 
> There's bug 24376 for the nonfree 32bit repositories that are still enabled.
> I just added to it that you showed that the tainted repos are still enabled,
> too.

Yes, in my tests, the nonfree and tainted 32bit were auto enabled.
Comment 3 Frank Griffin 2019-03-27 03:16:55 CET
Just noticed this myself.  It bites people in the ass because the Adobe Reader rpms can no longer be installed since they use the i586 versions of libxml2 and with this "enlightened" change those packages can no longer be found.  This is also the case for a number of non-MGA popular rpms to be found on the internet which require i586 support.

At the very least, this needs a prominent error notice complete with instructions for re-enabling the i586 repositories if they are wanted.  Preferably, this change should be reverted.

CC: (none) => ftg

Comment 4 Frank Griffin 2019-03-27 04:22:35 CET
Worse still, the lib64 versions of libxml2 apparently provide the dependencies that the Adobe rpm requires, so the rpm installs without error.  It fails silently when invoked via a GUI, and you only get errors you can deal with when you try to invoke "acroread" from a command line.

It's unclear whether these dependency errors are rooted in the Adobe rpm or the various MGA rpms.

This isn't just libxml2; libgdk-pixbuf and libgtk-x11 are also involved.
Rémi Verschelde 2019-09-08 12:10:32 CEST

Summary: Cauldron repositories have "ignored by default" set for the repositories "Core 32bit Release" and "Core 32bit Updates", causing problems when updating 32bit packages when doing "urpmi.addmedia --distrib URL_CAULDRON". => urpmi.addmedia --distrib adds repositories with "Core 32bit Release" and "Core 32bit Updates" disabled while Nonfree/Tainted 32bit are enabled, causing problems when updating 32bit packages

Comment 5 Rémi Verschelde 2019-09-08 12:14:39 CEST
I've seen this bug too upgrading a Mageia 6 to Mageia 7 manually, following the release notes instructions for urpmi upgrades.

`urpmi.addmedia --distrib --mirrorlist 'http://mirrors.mageia.org/api/mageia.7.$ARCH.list'` added all repos but did not enable Core 32bit Release and Updates, while it enabled Nonfree and Tained 32bit Release/Updates.

I fixed that before attempting the upgrade, but IMO this could cause upgrade failures for people using 32bit packages like Steam.

Several recent bug reports about people who could no longer use Steam after a Mesa upgrade on Mageia 7 showed that those users had Core 32bit Release and Updates disabled without being aware of it.

Raising priority accordingly and assigning to draktools team.

Assignee: doc-bugs => mageiatools
Priority: Normal => High
Whiteboard: (none) => MGA7TOO MGA6TOO
CC: (none) => thierry.vignaud, tmb
Severity: normal => critical

Comment 6 Rémi Verschelde 2019-09-20 10:43:04 CEST
Relevant code / recent change around this: http://gitweb.mageia.org/software/rpm/urpmi/commit/?id=3dfb4c7f7cb5d33cbc15f12041dc5d3ef4153294 which was meant to fix bug 24376.

As this reads, this commit might actually fix this issue by disabling Nonfree and Tainted 32bit, so it should possibly be backported for Mageia 6's urpmi? CC Martin.

Assuming that commit works as expected, I guess this bug is now specific to Mageia 6 as it should have been fixed in urpmi 8.116 (Mageia 7 has 8.118).

It's still a problem that it would automatically ignore 32bit even if you have 64bit packages with 32bit dependencies installed like steam or wine.

CC: (none) => mageia
Whiteboard: MGA7TOO MGA6TOO => (none)
Version: Cauldron => 6

Comment 7 Martin Whitaker 2019-09-20 23:41:57 CEST
(In reply to Rémi Verschelde from comment #6)
> Relevant code / recent change around this:
> http://gitweb.mageia.org/software/rpm/urpmi/commit/
> ?id=3dfb4c7f7cb5d33cbc15f12041dc5d3ef4153294 which was meant to fix bug
> 24376.
> 
> As this reads, this commit might actually fix this issue by disabling
> Nonfree and Tainted 32bit, so it should possibly be backported for Mageia
> 6's urpmi? CC Martin.

If backported, it would need to be made a bit more clever. When adding Mageia 6 media, where Core 32bit is still automatically enabled by the repo media.cfg, you'd still want the old behaviour.
Comment 8 Rémi Verschelde 2019-09-26 08:31:32 CEST
Do you think you could prepare a patchset for this?

IMO this has potential for breaking upgrade paths so a significant part of users (at least those using Wine or Steam) -- it should hopefully not brick the upgrade, but it will leave the updated system in a hard to debug situation with out of sync core and nonfree/tainted 32-bit packages.
Comment 9 Dave Hodgins 2019-09-27 05:11:16 CEST
Ping. If 32bit repos were enabled on Mageia 6, then after upgrade they should
be enabled on Mageia 7.

In my latest test, tainted and nonfree 32 bit repos were enabled, but not
core.

This bug must be fixed before upgrading using mgaapplet can be enabled.

During my test, at the end of an otherwise clean upgrade I manually enabled
the core 32 bit repos and installed the updates just before rebooting. No
other problems in the upgrade occurred.

CC: (none) => davidwhodgins

Comment 10 Martin Whitaker 2019-09-28 15:25:23 CEST
Created attachment 11291 [details]
Patch to enable 32-bit media if required

Try this. I've tested it on a mga7 system with urpmi.addmedia, but not with mgaapplet. With it, 32-bit media should be enabled on a 64-bit system after 'urpmi.addmedia --distrib' if any of the following are true:

1. The 'Core 32bit Release' medium is not flagged as 'noauto' in the repo media.cfg file.

2. The system already has any i?86 packages installed.

3. The system has a 32-bit UEFI BIOS.
Rolf Pedersen 2019-10-05 14:47:02 CEST

CC: (none) => rolfpedersen

Rémi Verschelde 2019-10-05 14:47:58 CEST

Blocks: (none) => 25476

Rémi Verschelde 2019-10-05 14:48:57 CEST

Blocks: 25476 => 25528

Comment 11 Martin Whitaker 2019-10-05 16:38:59 CEST
Created attachment 11298 [details]
cherry-picked patch #1 needed for mga6
Comment 12 Martin Whitaker 2019-10-05 16:39:27 CEST
Created attachment 11299 [details]
cherry-picked patch #2 needed for mga6
Comment 13 Martin Whitaker 2019-10-05 16:44:24 CEST
For testing on a mga6 system., you'll first need to apply the two cherry-picked patches I've just attached.

There's an inconsistency in the mga6 urpmi version. On a mga6 system I have urpmi-8.110-2, but in subversion the spec file in updates/6 is for 8.110-1.
Comment 14 Martin Whitaker 2019-10-05 18:27:05 CEST
I have now tested these patches in a mga6 VM, using mgaapplet to upgrade to mga7. In a system with 32-bit packages installed (wine), the 32-bit repos were enabled during and after upgrade. In a system without 32-bit packages installed, they were not. So the patches are working as intended. I saw no other upgrade issues, apart from bug 25511, but was left with ~220 mga6 packages that weren't upgraded. All but a handful were removed by 'urpme --auto-orphans'.
Comment 15 Thomas Backlund 2019-10-05 18:49:03 CEST
(In reply to Martin Whitaker from comment #13)
> For testing on a mga6 system., you'll first need to apply the two
> cherry-picked patches I've just attached.
> 
> There's an inconsistency in the mga6 urpmi version. On a mga6 system I have
> urpmi-8.110-2, but in subversion the spec file in updates/6 is for 8.110-1.

Looks like a screwup at Mga 6 release time.

I pushed translation updates as 8.110-1 but forgot to tag git, so remi tagged it with here: http://gitweb.mageia.org/software/rpm/urpmi/commit/?id=47be347d65e30c8f0b80d1d1ed66295fd9a4dbe3

in order to add the:
workaround a segfault in gurpmi (mga#21167) in mga 6 

But for some reason it failed to get picked up at svn branching.

So if someone do a new urpmi release, it  must be ensured that it's based of the real tagged 8.110 to not loose that fix
Comment 16 Morgan Leijström 2019-10-15 12:11:16 CEST
(In reply to Thomas Backlund from comment #15)
> So if someone do a new urpmi release, it  must be ensured that it's based of
> the real tagged 8.110 to not loose that fix

-> Bug 25571 - urpmi @ new version, do not forget to base on 8.110

CC: (none) => fri

Comment 17 Lewis Smith 2019-10-15 21:34:18 CEST
FWIW my M7 system has urpmi-8.118-1.mga7.src.rpm
Comment 18 Morgan Leijström 2019-10-15 21:52:41 CEST
*** Bug 25571 has been marked as a duplicate of this bug. ***
Comment 19 Martin Whitaker 2019-10-19 21:09:34 CEST
Suggested Advisory
==================

This update changes the behaviour of the Mageia tools that configure software media on a 64-bit system. When adding a new set of distribution media, they will now enable the additional 32-bit media if there are any 32-bit packages already installed on the system. This fixes a problem seen when upgrading from Mageia 6 to Mageia 7, where those 32-bit packages don't get upgraded (mga#24438).

Test Procedure
==============

Remove existing media (using 'urpmi.removemedia -a' or MCC) and add a new set of distribution media (using 'urpmi.addmedia --distrib' or MCC).

When adding the Mageia 6 distribution media, the additional 32-bit media will always be enabled by default. However, if you add the Mageia 7 distribution media, preparatory to doing a system upgrade, e.g. by

  urpmi.addmedia --distrib --mirrorlist http://mirrors.mageia.org/api/mageia.7.x86_64.list

then if you have no 32-bit packages installed, all the additional 32-bit media should be disabled by default. If you have any 32-bit packages installed, at a minimum the Core 32-bit media should be enabled by default. Nonfree and Tainted 32-bit media should also be enabled if the corresponding 64-bit Nonfree and Tainted media are enabled.

Apart from that, check for regressions in basic urpmi/rpmdrake functionality.

SRPMS
=====
urpmi-8.110.1-1.mga6.src.rpm

RPMS
====
gurpmi-8.110.1-1.mga6.noarch.rpm
urpmi-8.110.1-1.mga6.noarch.rpm
urpmi-ldap-8.110.1-1.mga6.noarch.rpm
urpmi-parallel-ka-run-8.110.1-1.mga6.noarch.rpm
urpmi-parallel-ssh-8.110.1-1.mga6.noarch.rpm

Status: NEW => ASSIGNED
Assignee: mageiatools => qa-bugs
Source RPM: (none) => urpmi-8.110-2.mga6

Martin Whitaker 2019-10-19 21:15:59 CEST

See Also: (none) => https://bugs.mageia.org/show_bug.cgi?id=25590

Comment 20 Len Lawrence 2019-10-20 12:45:44 CEST
Reporting this from Mageia 7, x86_64 after a completely successful and problem free upgrade from Mageia 6.  Congratulations Martin and everybody else involved.

Followed the instructions to the letter and upgraded from the Mageia7.1 classic iso on a USB pendrive using http://ftp.fi.muni.cz repository.

Installed inxi.
$ inxi -b
System:
  Host: canopus Kernel: 5.3.6-desktop-2.mga7 x86_64 bits: 64 
  Desktop: MATE 1.22.1 Distro: Mageia 7 mga7 
Machine:
  Type: Desktop Mobo: ASUSTeK model: TUF X299 MARK 2 v: Rev 1.xx 
  serial: <root required> UEFI: American Megatrends v: 1401 date: 05/21/2018 
CPU:
  10-Core: Intel Core i9-7900X type: MT MCP speed: 3545 MHz 
  min/max: 1200/4400 MHz 
Graphics:
  Device-1: NVIDIA GP102 [GeForce GTX 1080 Ti] driver: nvidia v: 430.50 
  Display: x11 server: Mageia X.org 1.20.4 driver: nvidia,v4l 
  resolution: 2560x1440~60Hz 
  OpenGL: renderer: GeForce GTX 1080 Ti/PCIe/SSE2 v: 4.6.0 NVIDIA 430.50 
Network:
  Device-1: Intel Ethernet I219-V driver: e1000e 
Drives:
  Local Storage: total: 5.23 TiB used: 2.36 TiB (45.1%) 
Info:
  Processes: 369 Uptime: 7m Memory: 31.05 GiB used: 1.26 GiB (4.1%) 
  Shell: bash inxi: 3.0.33

CC: (none) => tarazed25

Comment 21 claire robinson 2019-10-21 14:57:50 CEST
Before:

MGA6:
# urpmq --list-media active
Core Release
Core Updates
Nonfree Release
Nonfree Updates
Tainted Release
Tainted Updates
Core 32bit Release
Core 32bit Updates
Nonfree 32bit Release
Nonfree 32bit Updates
Tainted 32bit Release
Tainted 32bit Updates

# urpmi.removemedia -a 
# urpmi.addmedia --distrib --mirrorlist

# urpmq --list-media active                                               
Core Release
Core Updates
Nonfree Release
Nonfree Updates
Tainted Release
Tainted Updates
Core 32bit Release
Core 32bit Updates
Nonfree 32bit Release
Nonfree 32bit Updates
Tainted 32bit Release
Tainted 32bit Updates


After:
# drakrpm-edit-media --expert
added the updates tick to testing media again.

# rpm -qa *urpmi
urpmi-8.110.1-1.mga6
gurpmi-8.110.1-1.mga6

MageiaUpdate starts normally.

# urpmq --list-media active
Core Release
Core Updates
Nonfree Release
Nonfree Updates
Tainted Release
Tainted Updates
Core 32bit Release
Core 32bit Updates
Nonfree 32bit Release
Nonfree 32bit Updates
Tainted 32bit Release
Tainted 32bit Updates

# urpmi.removemedia -a 
# urpmi.addmedia --distrib --mirrorlist

# urpmq --list-media active                                               
Core Release
Core Updates
Nonfree Release
Nonfree Updates
Tainted Release
Tainted Updates
Core 32bit Release
Core 32bit Updates
Nonfree 32bit Release
Nonfree 32bit Updates
Tainted 32bit Release
Tainted 32bit Updates

Used rpmdrake to install inxi.

Will be testing mga6 -> 7 upgrade.
Comment 22 claire robinson 2019-10-21 15:04:48 CEST
Possibly still a problem here Martin. Upgrade postponed.

# urpmi.addmedia --distrib --mirrorlist http://mirrors.mageia.org/api/mageia.7.x86_64.list
adding medium "Core Release"
adding medium "Core Release Debug" (ignored by default)
adding medium "Core Updates"
adding medium "Core Updates Debug" (ignored by default)
adding medium "Core Updates Testing" (ignored by default)
adding medium "Core Updates Testing Debug" (ignored by default)
adding medium "Core Backports" (ignored by default)
adding medium "Core Backports Debug" (ignored by default)
adding medium "Core Backports Testing" (ignored by default)
adding medium "Core Backports Testing Debug" (ignored by default)
adding medium "Nonfree Release"
adding medium "Nonfree Release Debug" (ignored by default)
adding medium "Nonfree Updates"
adding medium "Nonfree Updates Debug" (ignored by default)
adding medium "Nonfree Updates Testing" (ignored by default)
adding medium "Nonfree Updates Testing Debug" (ignored by default)
adding medium "Nonfree Backports" (ignored by default)
adding medium "Nonfree Backports Debug" (ignored by default)
adding medium "Nonfree Backports Testing" (ignored by default)
adding medium "Nonfree Backports Testing Debug" (ignored by default)
adding medium "Tainted Release"
adding medium "Tainted Release Debug" (ignored by default)
adding medium "Tainted Updates"
adding medium "Tainted Updates Debug" (ignored by default)
adding medium "Tainted Updates Testing" (ignored by default)
adding medium "Tainted Updates Testing Debug" (ignored by default)
adding medium "Tainted Backports" (ignored by default)
adding medium "Tainted Backports Debug" (ignored by default)
adding medium "Tainted Backports Testing" (ignored by default)
adding medium "Tainted Backports Testing Debug" (ignored by default)
adding medium "Core 32bit Release" (ignored by default)
adding medium "Core 32bit Updates" (ignored by default)
adding medium "Core 32bit Updates Testing" (ignored by default)
adding medium "Core 32bit Backports" (ignored by default)
adding medium "Core 32bit Backports Testing" (ignored by default)
adding medium "Nonfree 32bit Release" (ignored by default)
adding medium "Nonfree 32bit Updates" (ignored by default)
adding medium "Nonfree 32bit Updates Testing" (ignored by default)
adding medium "Nonfree 32bit Backports" (ignored by default)
adding medium "Nonfree 32bit Backports Testing" (ignored by default)
adding medium "Tainted 32bit Release" (ignored by default)
adding medium "Tainted 32bit Updates" (ignored by default)
adding medium "Tainted 32bit Updates Testing" (ignored by default)
adding medium "Tainted 32bit Backports" (ignored by default)
adding medium "Tainted 32bit Backports Testing" (ignored by default)
    http://mirrors.mageia.org/api/mageia.7.x86_64.list: media/core/release/media_info/20190627-235351-synthesis.hdlist.cz
    http://mirrors.mageia.org/api/mageia.7.x86_64.list: media/core/updates/media_info/20191020-150631-synthesis.hdlist.cz
    http://mirrors.mageia.org/api/mageia.7.x86_64.list: media/nonfree/release/media_info/20190628-001219-synthesis.hdlist.cz
    http://mirrors.mageia.org/api/mageia.7.x86_64.list: media/nonfree/updates/media_info/20191016-222103-synthesis.hdlist.cz
    http://mirrors.mageia.org/api/mageia.7.x86_64.list: media/tainted/release/media_info/20190628-001348-synthesis.hdlist.cz
    http://mirrors.mageia.org/api/mageia.7.x86_64.list: media/tainted/updates/media_info/20190927-193203-synthesis.hdlist.cz


# urpmq --list-media active
Core Release
Core Updates
Nonfree Release
Nonfree Updates
Tainted Release
Tainted Updates


Similar when added as a specific mirror..

# urpmi.addmedia --distrib https://www.mirrorservice.org/sites/mageia.org/pub/mageia/distrib/7/x86_64

# urpmq --list-media active
Core Release
Core Updates
Nonfree Release
Nonfree Updates
Tainted Release
Tainted Updates

Whiteboard: (none) => feedback

Comment 23 Martin Whitaker 2019-10-21 15:15:50 CEST
Claire, what is the output of

rpm -qa --qf '%{NAME} %{ARCH}\n' | grep i586
Comment 24 claire robinson 2019-10-21 15:25:23 CEST
There are some libreoffice etc in amongst these but..

# rpm -qa | grep ^lib[a-z] | wc -l
304

and

# rpm -qa | grep ^lib[a-z] | grep tainted | wc -l
23
Comment 25 claire robinson 2019-10-21 15:25:46 CEST
Mid air collision:

Rather alot..

# rpm -qa --qf '%{NAME} %{ARCH}\n' | grep i586
libxau6 i586
libdbus-glib1_2 i586
libfontconfig1 i586
libsqlite3_0 i586
libavfilter6 i586
libmesaegl1 i586
libtxc-dxtn i586
libsndfile1 i586
libSDL1.2_0 i586
libxrandr2 i586
libtheoradec1 i586
libasyncns0 i586
libpng16_16 i586
liborc0.4_0 i586
libslang2 i586
libxfixes3 i586
libxavs1 i586
libpciaccess0 i586
libudev1 i586
libusb1.0_0 i586
libgraphite2_3 i586
libllvm3.9 i586
libavahi-common3 i586
libxcb1 i586
libxft2 i586
libxcb-glx0 i586
libwebp6 i586
libtiff5 i586
libraw1394_11 i586
libaa1 i586
libx11-xcb1 i586
libpixman1_0 i586
libopenjpeg5 i586
libcdio16 i586
libncurses6 i586
libreadline6 i586
libjpeg8 i586
libwayland-server0 i586
libssh2_1 i586
libpulsecommon10.0 i586
libxtst6 i586
libtwolame0 i586
libxxf86dga1 i586
libopencl1 i586
libldap2.4_2 i586
libgdbm4 i586
libflac8 i586
libggi2 i586
librtmp1 i586
libjpeg62 i586
libpython2.7 i586
libelfutils1 i586
libass9 i586
libxcb-render0 i586
libavutil55 i586
libdrm_intel1 i586
libncursesw6 i586
libgsm1 i586
libxml2_2 i586
libbsd0 i586
libgpg-error0 i586
libavformat57 i586
libx264_148 i586
libxvidcore4 i586
libgii1 i586
libglapi0 i586
libswscaler4 i586
libblkid1 i586
libintl8 i586
libx11_6 i586
libopencv_core2.4 i586
libffi6 i586
libxxf86vm1 i586
libsdl2.0_0 i586
libnut0 i586
libpng12_0 i586
libverto1 i586
libharfbuzz0 i586
libdri-drivers i586
libcelt0_2 i586
libmount1 i586
libdc1394_22 i586
libwayland-client0 i586
libdb5.3 i586
libfribidi0 i586
libjack0 i586
libglib2.0_0 i586
libpcre1 i586
libcairo2 i586
libgbm1 i586
libopencore-amr0 i586
libsm6 i586
libp11-kit0 i586
libsamplerate0 i586
libopenssl1.0.0 i586
libunistring2 i586
libvorbisenc2 i586
libmp3lame0 i586
libpostproc54 i586
libdbus1_3 i586
libx265_102 i586
libopencv_imgproc2.4 i586
libfreetype6 i586
libxext6 i586
liblzma5 i586
libxdamage1 i586
libglib-networking-gnutls i586
libdrm_nouveau2 i586
libzstd1 i586
libpango1.0_0 i586
libv4l0 i586
libvo-amrwbenc0 i586
libicu58 i586
libffmpegthumbnailer4 i586
libvpx3 i586
libxdmcp6 i586
libgmp10 i586
libxcb-present0 i586
libspeex1 i586
libdrm_radeon1 i586
libsasl2_3 i586
libnettle6 i586
libatk1.0_0 i586
libmesagl1 i586
libmodplug1 i586
libtasn1_6 i586
libvorbis0 i586
libcdio-paranoia2 i586
libgdk_pixbuf2.0_0 i586
libopenssl-engines1.0.0 i586
libxcb-xfixes0 i586
libxcursor1 i586
libgcrypt20 i586
libavahi-client3 i586
libpulseaudio0 i586
libgio2.0_0 i586
libogg0 i586
libxcomposite1 i586
libxcb-sync1 i586
ffmpegthumbnailer i586
libopus0 i586
libxinerama1 i586
libvdpau1 i586
libexpat1 i586
libbzip2_1 i586
libjasper1 i586
libxcb-shape0 i586
libxi6 i586
libxcb-dri2_0 i586
libavresample3 i586
libgnutls30 i586
libcups2 i586
libpython2.7-stdlib i586
libgpm2 i586
libtheoraenc1 i586
libxshmfence1 i586
libavcodec57 i586
libdrm_amdgpu1 i586
libdatrie1 i586
libwrap0 i586
libuuid1 i586
libxrender1 i586
libcurl4 i586
libgtk+2.0_0 i586
libxcb-shm0 i586
libkrb53 i586
libalsa2 i586
libmesaglu1 i586
libext2fs2 i586
libjbig1 i586
libswresample2 i586
libdrm2 i586
libnghttp2_14 i586
libva1 i586
libice6 i586
libsystemd0 i586
libschroedinger1.0_0 i586
libthai0 i586
libhogweed4 i586
libalsa-plugins-pulseaudio i586
libzlib1 i586
libxcb-dri3_0 i586
libgtk+-x11-2.0_0 i586
Comment 26 Martin Whitaker 2019-10-21 16:16:11 CEST
Created attachment 11329 [details]
media.pm with debug

Claire, could you copy the attached file to /usr/lib/perl5/vendor_perl/5.22.3/urpm/media.pm (after saving a copy of the original), then rerun the urpmi.removemedia and urpmi.addmedia. There should then be some extra lines printed at the start of urpmi.addmedia, like this:

# urpmi.addmedia --distrib --mirrorlist http://mirrors.mageia.org/api/mageia.7.x86_64.list
counted 124 32-bit packages
counted 2234 64-bit packages
add32bit flag is 1

What does is show on your system?
Comment 27 claire robinson 2019-10-21 17:35:56 CEST
# urpmi.addmedia --distrib --mirrorlist http://mirrors.mageia.org/api/mageia.7.x86_64.list
counted  32-bit packages
counted 59 64-bit packages
add32bit flag is 
adding medium "Core Release"
adding medium "Core Release Debug" (ignored by default)
adding medium "Core Updates"
adding medium "Core Updates Debug" (ignored by default)
adding medium "Core Updates Testing" (ignored by default)
adding medium "Core Updates Testing Debug" (ignored by default)
adding medium "Core Backports" (ignored by default)
adding medium "Core Backports Debug" (ignored by default)
adding medium "Core Backports Testing" (ignored by default)
adding medium "Core Backports Testing Debug" (ignored by default)
adding medium "Nonfree Release"
adding medium "Nonfree Release Debug" (ignored by default)
adding medium "Nonfree Updates"
adding medium "Nonfree Updates Debug" (ignored by default)
adding medium "Nonfree Updates Testing" (ignored by default)
adding medium "Nonfree Updates Testing Debug" (ignored by default)
adding medium "Nonfree Backports" (ignored by default)
adding medium "Nonfree Backports Debug" (ignored by default)
adding medium "Nonfree Backports Testing" (ignored by default)
adding medium "Nonfree Backports Testing Debug" (ignored by default)
adding medium "Tainted Release"
adding medium "Tainted Release Debug" (ignored by default)
adding medium "Tainted Updates"
adding medium "Tainted Updates Debug" (ignored by default)
adding medium "Tainted Updates Testing" (ignored by default)
adding medium "Tainted Updates Testing Debug" (ignored by default)
adding medium "Tainted Backports" (ignored by default)
adding medium "Tainted Backports Debug" (ignored by default)
adding medium "Tainted Backports Testing" (ignored by default)
adding medium "Tainted Backports Testing Debug" (ignored by default)
adding medium "Core 32bit Release" (ignored by default)
adding medium "Core 32bit Updates" (ignored by default)
adding medium "Core 32bit Updates Testing" (ignored by default)
adding medium "Core 32bit Backports" (ignored by default)
adding medium "Core 32bit Backports Testing" (ignored by default)
adding medium "Nonfree 32bit Release" (ignored by default)
adding medium "Nonfree 32bit Updates" (ignored by default)
adding medium "Nonfree 32bit Updates Testing" (ignored by default)
adding medium "Nonfree 32bit Backports" (ignored by default)
adding medium "Nonfree 32bit Backports Testing" (ignored by default)
adding medium "Tainted 32bit Release" (ignored by default)
adding medium "Tainted 32bit Updates" (ignored by default)
adding medium "Tainted 32bit Updates Testing" (ignored by default)
adding medium "Tainted 32bit Backports" (ignored by default)
adding medium "Tainted 32bit Backports Testing" (ignored by default)
    http://mirrors.mageia.org/api/mageia.7.x86_64.list: media/core/release/media_info/20190627-235351-synthesis.hdlist.cz
    http://mirrors.mageia.org/api/mageia.7.x86_64.list: media/core/updates/media_info/20191020-150631-synthesis.hdlist.cz
    http://mirrors.mageia.org/api/mageia.7.x86_64.list: media/nonfree/release/media_info/20190628-001219-synthesis.hdlist.cz
    http://mirrors.mageia.org/api/mageia.7.x86_64.list: media/nonfree/updates/media_info/20191016-222103-synthesis.hdlist.cz
    http://mirrors.mageia.org/api/mageia.7.x86_64.list: media/tainted/release/media_info/20190628-001348-synthesis.hdlist.cz
    http://mirrors.mageia.org/api/mageia.7.x86_64.list: media/tainted/updates/media_info/20190927-193203-synthesis.hdlist.cz
Comment 28 claire robinson 2019-10-21 17:40:47 CEST
The same is true for mga6 medias..

# urpmi.addmedia --distrib --mirrorlist
counted  32-bit packages
counted 59 64-bit packages
add32bit flag is
Comment 29 Martin Whitaker 2019-10-21 17:45:15 CEST
Created attachment 11330 [details]
improved media.pm

I think I've spotted the problem. Could you try this version.
Comment 30 claire robinson 2019-10-21 17:52:21 CEST
That does seem to fix the problem, but the count is still obviously wrong.

mga6 medias:

# urpmi.addmedia --distrib --mirrorlist     
counted 1 32-bit packages
counted 86 64-bit packages
add32bit flag is 1

# urpmq --list-media active 
Core Release
Core Updates
Nonfree Release
Nonfree Updates
Tainted Release
Tainted Updates
Core 32bit Release
Core 32bit Updates
Nonfree 32bit Release
Nonfree 32bit Updates
Tainted 32bit Release
Tainted 32bit Updates


Mga7 medias:

# urpmi.addmedia --distrib --mirrorlist http://mirrors.mageia.org/api/mageia.7.x86_64.list
counted 1 32-bit packages
counted 86 64-bit packages
add32bit flag is 1
adding medium "Core Release"
adding medium "Core Release Debug" (ignored by default)
adding medium "Core Updates"
adding medium "Core Updates Debug" (ignored by default)
adding medium "Core Updates Testing" (ignored by default)
adding medium "Core Updates Testing Debug" (ignored by default)
adding medium "Core Backports" (ignored by default)
adding medium "Core Backports Debug" (ignored by default)
adding medium "Core Backports Testing" (ignored by default)
adding medium "Core Backports Testing Debug" (ignored by default)
adding medium "Nonfree Release"
adding medium "Nonfree Release Debug" (ignored by default)
adding medium "Nonfree Updates"
adding medium "Nonfree Updates Debug" (ignored by default)
adding medium "Nonfree Updates Testing" (ignored by default)
adding medium "Nonfree Updates Testing Debug" (ignored by default)
adding medium "Nonfree Backports" (ignored by default)
adding medium "Nonfree Backports Debug" (ignored by default)
adding medium "Nonfree Backports Testing" (ignored by default)
adding medium "Nonfree Backports Testing Debug" (ignored by default)
adding medium "Tainted Release"
adding medium "Tainted Release Debug" (ignored by default)
adding medium "Tainted Updates"
adding medium "Tainted Updates Debug" (ignored by default)
adding medium "Tainted Updates Testing" (ignored by default)
adding medium "Tainted Updates Testing Debug" (ignored by default)
adding medium "Tainted Backports" (ignored by default)
adding medium "Tainted Backports Debug" (ignored by default)
adding medium "Tainted Backports Testing" (ignored by default)
adding medium "Tainted Backports Testing Debug" (ignored by default)
adding medium "Core 32bit Release"
adding medium "Core 32bit Updates"
adding medium "Core 32bit Updates Testing" (ignored by default)
adding medium "Core 32bit Backports" (ignored by default)
adding medium "Core 32bit Backports Testing" (ignored by default)
adding medium "Nonfree 32bit Release"
adding medium "Nonfree 32bit Updates"
adding medium "Nonfree 32bit Updates Testing" (ignored by default)
adding medium "Nonfree 32bit Backports" (ignored by default)
adding medium "Nonfree 32bit Backports Testing" (ignored by default)
adding medium "Tainted 32bit Release"
adding medium "Tainted 32bit Updates"
adding medium "Tainted 32bit Updates Testing" (ignored by default)
adding medium "Tainted 32bit Backports" (ignored by default)
adding medium "Tainted 32bit Backports Testing" (ignored by default)
    http://mirrors.mageia.org/api/mageia.7.x86_64.list: media/core/release/media_info/20190627-235351-synthesis.hdlist.cz
    http://mirrors.mageia.org/api/mageia.7.x86_64.list: media/core/updates/media_info/20191020-150631-synthesis.hdlist.cz
    http://mirrors.mageia.org/api/mageia.7.x86_64.list: media/nonfree/release/media_info/20190628-001219-synthesis.hdlist.cz
    http://mirrors.mageia.org/api/mageia.7.x86_64.list: media/nonfree/updates/media_info/20191016-222103-synthesis.hdlist.cz
    http://mirrors.mageia.org/api/mageia.7.x86_64.list: media/tainted/release/media_info/20190628-001348-synthesis.hdlist.cz
    http://mirrors.mageia.org/api/mageia.7.x86_64.list: media/tainted/updates/media_info/20190927-193203-synthesis.hdlist.cz
    http://mirrors.mageia.org/api/mageia.7.x86_64.list: media/../../i586/media/core/release/media_info/20190627-234746-synthesis.hdlist.cz
    http://mirrors.mageia.org/api/mageia.7.x86_64.list: media/../../i586/media/core/updates/media_info/20191020-150414-synthesis.hdlist.cz
    http://mirrors.mageia.org/api/mageia.7.x86_64.list: media/../../i586/media/nonfree/release/media_info/20190628-001215-synthesis.hdlist.cz
    http://mirrors.mageia.org/api/mageia.7.x86_64.list: media/../../i586/media/nonfree/updates/media_info/20191016-222052-synthesis.hdlist.cz
    http://mirrors.mageia.org/api/mageia.7.x86_64.list: media/../../i586/media/tainted/release/media_info/20190628-001342-synthesis.hdlist.cz
    http://mirrors.mageia.org/api/mageia.7.x86_64.list: media/../../i586/media/tainted/updates/media_info/20190927-193145-synthesis.hdlist.cz

# urpmq --list-media active
Core Release
Core Updates
Nonfree Release
Nonfree Updates
Tainted Release
Tainted Updates
Core 32bit Release
Core 32bit Updates
Nonfree 32bit Release
Nonfree 32bit Updates
Tainted 32bit Release
Tainted 32bit Updates
Comment 31 Martin Whitaker 2019-10-21 18:02:53 CEST
Yes, what I'd missed was that the search early-terminates. Originally it was just looking for nonfree and tainted packages, so stopped looking when it found at least one of each. When I tested it, I got "lucky" and it found a 32-bit package before it found the others.

I'll start preparing a new version. Thanks for catching this!
Comment 32 claire robinson 2019-10-21 18:05:35 CEST
I'll be around most of today to test it, if you're able, not so much tomorrow.
Comment 33 Martin Whitaker 2019-10-21 19:34:17 CEST
New RPMs are built and mirroring out:

SRPMS
=====
urpmi-8.110.2-1.mga6.src.rpm

RPMS
====
gurpmi-8.110.2-1.mga6.noarch.rpm
urpmi-8.110.2-1.mga6.noarch.rpm
urpmi-ldap-8.110.2-1.mga6.noarch.rpm
urpmi-parallel-ka-run-8.110.2-1.mga6.noarch.rpm
urpmi-parallel-ssh-8.110.2-1.mga6.noarch.rpm

Whiteboard: feedback => (none)

Comment 34 claire robinson 2019-10-21 22:03:55 CEST
Testing mga6 64, looks like a good fix Martin, thanks for your work. 
Upgrade rescheduled for after mga7 rpm has been tested and pushed.

# rpm -qa *urpmi*
urpmi-8.110.2-1.mga6
gurpmi-8.110.2-1.mga6

Mga6 Medias:

# urpmi.removemedia -a
# urpmi.addmedia --distrib --mirrorlist

# urpmq --list-media active                                                                
Core Release
Core Updates
Nonfree Release
Nonfree Updates
Tainted Release
Tainted Updates
Core 32bit Release
Core 32bit Updates
Nonfree 32bit Release
Nonfree 32bit Updates
Tainted 32bit Release
Tainted 32bit Updates


Mga7 Medias:

# urpmi.removemedia -a
# urpmi.addmedia --distrib --mirrorlist http://mirrors.mageia.org/api/mageia.7.x86_64.list

# urpmq --list-media active
Core Release
Core Updates
Nonfree Release
Nonfree Updates
Tainted Release
Tainted Updates
Core 32bit Release
Core 32bit Updates
Nonfree 32bit Release
Nonfree 32bit Updates
Tainted 32bit Release
Tainted 32bit Updates


Using MCC:

Selected and removed all medias. Added medias again.

# urpmq --list-media active
Core Release (distrib1)
Core Updates (distrib3)
Nonfree Release (distrib11)
Nonfree Updates (distrib13)
Tainted Release (distrib21)
Tainted Updates (distrib23)
Core 32bit Release (distrib31)
Core 32bit Updates (distrib32)
Nonfree 32bit Release (distrib36)
Nonfree 32bit Updates (distrib37)
Tainted 32bit Release (distrib41)
Tainted 32bit Updates (distrib42)


These are standard mga6 medias, confirmed with urpmq --list-urls

Removed them all again and added a custom medium called mga7 and selected to create medias for the whole distribution. HTTP mirror given as https://www.mirrorservice.org/sites/mageia.org/pub/mageia/distrib/7/x86_64

# urpmq --list-media active
Core Release (mga71)
Core Updates (mga73)
Nonfree Release (mga711)
Nonfree Updates (mga713)
Tainted Release (mga721)
Tainted Updates (mga723)
Core 32bit Release (mga731)
Core 32bit Updates (mga732)
Nonfree 32bit Release (mga736)
Nonfree 32bit Updates (mga737)
Tainted 32bit Release (mga741)
Tainted 32bit Updates (mga742)

# urpmq --list-url         
Core Release (mga71) https://www.mirrorservice.org/sites/mageia.org/pub/mageia/distrib/7/x86_64/media/core/release
Core Release Debug (mga72) https://www.mirrorservice.org/sites/mageia.org/pub/mageia/distrib/7/x86_64/media/debug/core/release
...etc

Whiteboard: (none) => mga6-64-ok

Comment 35 Herman Viaene 2019-10-22 11:04:28 CEST
MGA6-64 Plasma on Lenovo B50
No installation issues, noticed that the packages mentioned in bug 25476 are drawn in.
Tested MGA6 stuff as above Comment 34, got the same result.
I'll try to find time to backup this installation and try an upgrade.

CC: (none) => herman.viaene

Thomas Backlund 2019-10-23 21:38:18 CEST

Keywords: (none) => advisory, validated_update

Comment 36 Mageia Robot 2019-10-23 23:08:02 CEST
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGAA-2019-0167.html

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


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