Description of problem: immediately after install of alpha iso, no updates yet. i use urpmi.addmedia in console, and there were alot of errors. after updating, i used XFdrake to save for nvidia driver, and the save step has alot of perl errors too. (argument "2-n2" is not numeric) and that sort of warnings Reproducible: Steps to Reproduce:
it was "2\n2"
could you paste the complete error message please ? also, running urpmi with the --debug switch would probably help urpmi maintainers to understand whatâs going on
Keywords: (none) => NEEDINFOCC: (none) => shikamaru
Created attachment 62 [details] the exact perl error
Created attachment 63 [details] urpmi --debug ssh 2> urpmi_output.log
CC: (none) => thierry.vignaudComponent: Installation => RPM PackagesSource RPM: (none) => urpmi
The log in comment#4 says: Argument "2\n2" isn't numeric in numeric ge (>=) at /usr/lib/perl5/vendor_perl/5.12.2/MDV/Distribconf.pm line 532, <$URLS> line 1. Cauldron is on perl-5.12.3 now; does this issue still happen with latest cauldron?
Component: RPM Packages => Installation
perl version is irrelevant: $ rpm -qpl /mageia/media/core/release/perl-MDV-Distribconf-4.02-5.mga1.noarch.rpm | head -2 /usr/lib/perl5/vendor_perl/5.12.2/MDV/Distribconf /usr/lib/perl5/vendor_perl/5.12.2/MDV/Distribconf.pm
Right. However -6.mga1 is available in the repos since today.
which doesn't solve the problem
i traced the problem to 2 things: 1. the media.cfg file i have seems to be doubled for some reason? how did this happen? 2. the default mediacfg version should be '4.02', but somehow media.cfg files are shipped with version 2 ? is that correct? possibly 3 fixes: - find out why media.cfg is doubled and fix - check if version=2 is correct? shouldn't it be 4? - if it _IS_ duplicated, get only the first or last one. attached duplicated media.cfg and patch for fix 3
Created attachment 92 [details] duplicated media.cfg
Created attachment 93 [details] patch for MDV::Distribconf i took the first value, but maybe it should be the last, i don't know.
Component: Installation => RPM Packages
still present on mageia 1 alpha 2 during upgrade, so i'm blocking the upgrade tracker
Blocks: (none) => 56
Assignee: bugsquad => dmorganecSource RPM: urpmi => perl-MDV-Distribconf
can someone apply patch on /soft ?
CC: (none) => mageia
we need to import MDV-DistribConf in soft before :).
well, then i'll just patch it in the package
is it a blocker bug ? does it break features ?
it gives ugly messages with urpmi (but you don't have to ask twice :-) ) why do you ask? it's a small patch that doens't do anything major at all.
I guess it is better to give errors, since duplicated media.cfg is certainly not valid ?
CC: (none) => anssi.hannula
Created attachment 177 [details] new patch for MDV::Distribconf Ok, after some more investigations it looks like /etc/urpmi/mediacfg.d/Cauldron-1-x86_64/media.cfg (for a reason which is likely my own fault) has duplicated content, or in particular dual [media_info] sections with each a mediacfg_version=2 section. This new patch disables the perl warnings in such a case and displays a warning message instead, but only 1 time, so at least urpmq is functional.
Priority: Normal => LowCC: (none) => miscBlocks: 56 => (none)Summary: urpmi perl warnings => show error on invalid media.cfgSeverity: minor => enhancement
@ AL13N Is this solved in current cauldron?
CC: (none) => m.van.waes
afaik, it isn't. no response from maintainers about this patch, if it's wanted or not.
Keywords: (none) => PATCH
Jérôme, something for you ?
CC: (none) => jquelin
no, this is about urpmi internals - so it's more for thierry. that would be me if there was a packaging problem.
Ah ok sorry.
Keywords: NEEDINFO => (none)CC: jquelin => (none)
Created attachment 1446 [details] /etc/urpmi/mediacfg.d/Official-1-x86_64/media.cfg
I have the same problem, i.e: # urpmi --auto-update Argument "2\n2" isn't numeric in numeric lt (<) at /usr/lib/perl5/vendor_perl/5.12.3/MDV/Distribconf.pm line 265. Argument "2\n2" isn't numeric in numeric ge (>=) at /usr/lib/perl5/vendor_perl/5.12.3/MDV/Distribconf.pm line 532, <$URLS> line 1. Argument "2\n2" isn't numeric in numeric ge (>=) at /usr/lib/perl5/vendor_perl/5.12.3/MDV/Distribconf.pm line 532, <$URLS> line 1. Argument "2\n2" isn't numeric in numeric ge (>=) at /usr/lib/perl5/vendor_perl/5.12.3/MDV/Distribconf.pm line 532, <$URLS> line 1. etc, etc same if i call drakrpm The only unusual thing i remember i have done is i once remove all media and then added them again (this time pointing to my urpmi-proxy machine) This is on mga1, so it is probably on both mga1 and cauldron according to above, but i refrain from adding a separate bug for now. I attached my /etc/urpmi/mediacfg.d/Official-1-x86_64/media.cfg
CC: (none) => fri
As you can see in the attachment. there are 2 [media_info] sections. This is due to having 2 sources listed in urpmi-proxy. atm this is still unsupported. The fallback mechanism isn't good yet. So people using urpmi-proxy, please read https://wiki.mageia.org/en/Urpmi-proxy and not configure 2 sources atm. The patch I made in comment 20 would show a better warning, but it's still not applied... So Morgan, for now you'll have to just use only 1 source, until i find some time to implement dual source fallback. in the mean time, i'd like it if this patch would be applied...
Thanks AL13N I apparently forgot to change sources on this client while i removed them from urpmi-proxy config. Removed all, added all i wanted made it OK :) Yes better warning will be nice.
Bump. Would be nice to get the existing patch in before next beta.
Hi, This bug was filed against cauldron, but we do not have cauldron at the moment. Please report whether this bug is still valid for Mageia 2. Thanks :) Cheers, marja
Keywords: (none) => NEEDINFO
Keywords: NEEDINFO => (none)
@thierry @dmorgan can this patch be applied?
Assignee: dmorganec => thierry.vignaud
No. urpmi-proxy should be fixed instead.
CC: (none) => alienSource RPM: perl-MDV-Distribconf => perl-MDV-Distribconf, urpmi-proxy
Attachment 93 is obsolete: 0 => 1
This is not a perl-MDV-Distribconf issue
Source RPM: perl-MDV-Distribconf, urpmi-proxy => urpmi-proxy
Attachment 177 is obsolete: 0 => 1
Keywords: PATCH => (none)
(In reply to Thierry Vignaud from comment #34) > This is not a perl-MDV-Distribconf issue And you're not the urpmi-proxy maintainer, so reassigning ;-)
Assignee: thierry.vignaud => mageiatools