Bug 31321 - mcc: add 'replace mirrror' option for the case that some Mageia 9 mirrors not synced correctly
Summary: mcc: add 'replace mirrror' option for the case that some Mageia 9 mirrors not...
Status: RESOLVED INVALID
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-25 17:38 CET by Elmar Stellnberger
Modified: 2022-12-28 14:12 CET (History)
1 user (show)

See Also:
Source RPM: urpmi-8.128-1.mga9.src.rpm
CVE:
Status comment:


Attachments
screen log setting tuxinator mirror and urpmi --auto-updating (14.28 KB, text/plain)
2022-12-26 17:22 CET, Elmar Stellnberger
Details
configure media sources for install and updates (55.92 KB, image/jpeg)
2022-12-27 09:59 CET, Elmar Stellnberger
Details

Description Elmar Stellnberger 2022-12-25 17:38:19 CET
Using urpmi --auto-update I do now get "aria2 failed: exited with 3". Reading the man page of aria2c exit code 3 means resource not found. However the files at the URLs that urpmi --auto-update prints can all be downloaded without error by aria2c:

# urpmi --auto-update
    http://mirrors.mageia.org/api/mageia.9.i586.list: media/core/release/media_info/20221225-031439-synthesis.hdlist.cz
...retrieving failed: aria2 failed: exited with 3
problem reading synthesis file of medium "Core Release"
    http://mirrors.mageia.org/api/mageia.9.i586.list: media/debug/core/release/media_info/20221225-034409-synthesis.hdlist.cz
...retrieving failed: aria2 failed: exited with 3
problem reading synthesis file of medium "Core Release Debug"
medium "Core Updates" is up-to-date
medium "Core Updates Debug" is up-to-date
medium "Nonfree Release" is up-to-date
medium "Nonfree Updates" is up-to-date
Packages are up to date
[root@localhost ritchel]# aria2c http://mirrors.mageia.org/api/mageia.9.i586.list; echo $?

12/26 00:28:08 [NOTICE] Downloading 1 item(s)

12/26 00:28:08 [NOTICE] Download complete: /home/ritchel/mageia.9.i586.list

Download Results:
gid   |stat|avg speed  |path/URI
======+====+===========+=======================================================
568f66|OK  |   391KiB/s|/home/ritchel/mageia.9.i586.list

Status Legend:
(OK):download completed.
0

   Just a minutes before I have updated my system with urpmi --auto-update and there no error was returned by urpmi. This may indicate that the problem is not an unreachable server in the internet but some local error, maybe with perl-URPM-5.224-1.mga9, a package which has been updated just before running urpmi --auto-update.
Comment 1 sturmvogel 2022-12-25 18:25:12 CET
You are using mirrorlist instead of a fixed server.  Mirrorlist picks automatically the nearest/fastest server for you, but this server can be out of sync with the source/tier 1 mirror. So you had bad luck and had a not properly synced mirror.

For cauldron/Mageia 9 it is highly recommended to pick a defined server instead of using mirrorlist. As the frequency of package updates for cauldron is really high it is recommended to use a tier 1 mirror.

Always have a look for the status of a server:
https://mirrors.mageia.org/status
https://wiki.mageia.org/en/Mirror_List

Recommendation for cauldron and specific mirror:
https://wiki.mageia.org/en/Cauldron#How_to_install_Mageia_Cauldron

Hint for specific mirror:
https://wiki.mageia.org/en/Installing_and_removing_software#Adding_a_specific_Media_Mirror

Thus closing INVALID.

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

Comment 2 Elmar Stellnberger 2022-12-25 19:26:43 CET
I have added the (de)tuxinator2 mirror and it worked for the updates repo but not for the core release 9 repo. After that I have also tried the (de)stud-fh-esslingen and the (de)ftp5.gwdg.de mirror but the core repo currently appears to work with none. As it seems there may be a problem with multiple mirrors at the time.

Resolution: INVALID => (none)
Summary: strange error: aria2 failed: exited with 3 => multiple Mageia 9 mirrors not synced correctly
Status: RESOLVED => REOPENED

Comment 3 sturmvogel 2022-12-25 19:41:44 CET
Nope. Remove all your mirrors and add a clean set. Works flawlessly with your mentioned mirror.

[root@localhost ~]# LC_ALL=C urpmi.addmedia --distrib 'http://mirror2.tuxinator.org/mageia/distrib/9/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"
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://mirror2.tuxinator.org/mageia/distrib/9/x86_64/media/core/release/media_info/20221225-165708-synthesis.hdlist.cz
    http://mirror2.tuxinator.org/mageia/distrib/9/x86_64/media/core/updates/media_info/20220402-205512-synthesis.hdlist.cz                                                          
    http://mirror2.tuxinator.org/mageia/distrib/9/x86_64/media/nonfree/release/media_info/20221224-220303-synthesis.hdlist.cz                                                       
    http://mirror2.tuxinator.org/mageia/distrib/9/x86_64/media/nonfree/updates/media_info/20220402-205356-synthesis.hdlist.cz                                                       
    http://mirror2.tuxinator.org/mageia/distrib/9/x86_64/media/tainted/release/media_info/20221223-151631-synthesis.hdlist.cz                                                       
    http://mirror2.tuxinator.org/mageia/distrib/9/x86_64/media/tainted/updates/media_info/20220402-205102-synthesis.hdlist.cz                                                       
    http://mirror2.tuxinator.org/mageia/distrib/9/i586/media/core/release/media_info/20221225-170227-synthesis.hdlist.cz                                                            
    http://mirror2.tuxinator.org/mageia/distrib/9/i586/media/core/updates/media_info/20220402-205512-synthesis.hdlist.cz                                                            
    http://mirror2.tuxinator.org/mageia/distrib/9/i586/media/nonfree/release/media_info/20221224-083550-synthesis.hdlist.cz                                                         
    http://mirror2.tuxinator.org/mageia/distrib/9/i586/media/nonfree/updates/media_info/20220402-205356-synthesis.hdlist.cz                                                         
    http://mirror2.tuxinator.org/mageia/distrib/9/i586/media/tainted/release/media_info/20221223-151633-synthesis.hdlist.cz                                                         
    http://mirror2.tuxinator.org/mageia/distrib/9/i586/media/tainted/updates/media_info/20220402-205102-synthesis.hdlist.cz                                                         
[root@localhost ~]# urpmi --auto-update                                                                                                                                             
Medium »Core Release« ist auf dem aktuellen Stand
Medium »Core Updates« ist auf dem aktuellen Stand
Medium »Nonfree Release« ist auf dem aktuellen Stand
Medium »Nonfree Updates« ist auf dem aktuellen Stand
Medium »Tainted Release« ist auf dem aktuellen Stand
Medium »Tainted Updates« ist auf dem aktuellen Stand
Medium »Core 32bit Release« ist auf dem aktuellen Stand
Medium »Core 32bit Updates« ist auf dem aktuellen Stand
Medium »Nonfree 32bit Release« ist auf dem aktuellen Stand
Medium »Nonfree 32bit Updates« ist auf dem aktuellen Stand
Medium »Tainted 32bit Release« ist auf dem aktuellen Stand
Medium »Tainted 32bit Updates« ist auf dem aktuellen Stand
Die Pakete sind auf dem aktuellen Stand
[root@localhost ~]#

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

Comment 4 sturmvogel 2022-12-25 19:47:18 CET
Same for i586:

[root@localhost ~]# LC_ALL=C urpmi.addmedia --distrib 'http://mirror2.tuxinator.org/mageia/distrib/9/i586/' 
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)
    http://mirror2.tuxinator.org/mageia/distrib/9/i586/media/core/release/media_info/20221225-170227-synthesis.hdlist.cz
    http://mirror2.tuxinator.org/mageia/distrib/9/i586/media/core/updates/media_info/20220402-205512-synthesis.hdlist.cz                                                            
    http://mirror2.tuxinator.org/mageia/distrib/9/i586/media/nonfree/release/media_info/20221224-083550-synthesis.hdlist.cz                                                         
    http://mirror2.tuxinator.org/mageia/distrib/9/i586/media/nonfree/updates/media_info/20220402-205356-synthesis.hdlist.cz                                                         
    http://mirror2.tuxinator.org/mageia/distrib/9/i586/media/tainted/release/media_info/20221223-151633-synthesis.hdlist.cz                                                         
    http://mirror2.tuxinator.org/mageia/distrib/9/i586/media/tainted/updates/media_info/20220402-205102-synthesis.hdlist.cz                                                         
[root@localhost ~]# LC_ALL=C urpmi --auto-update
medium "Core Release" is up-to-date
medium "Core Updates" is up-to-date
medium "Nonfree Release" is up-to-date
medium "Nonfree Updates" is up-to-date
medium "Tainted Release" is up-to-date
medium "Tainted Updates" is up-to-date
Packages are up to date
[root@localhost ~]#
Comment 5 Elmar Stellnberger 2022-12-26 17:22:52 CET
Created attachment 13595 [details]
screen log setting tuxinator mirror and urpmi --auto-updating

Same errors as yesterday. Something fails here and that not just with one of the mirrors. Urpmi still works quite well in spite of the errors. It has just installed mutt and now some updates (log). However if things are like this I do not really dare to install x11-driver-video-nvidia390 for bug 30568 since I need to be able to remove the nvidia driver if it should not work to replace it by nouveau again. If I invoke aria2 on the printed url it works, like yesterday. Why does it not have a fallback to the generic url for the repo index? Downloading packages like mutt works from tuxinator2 and other mirrors.
Comment 6 sturmvogel 2022-12-26 17:32:05 CET
You only added mirrors without removing the not working ones. This can be seen in your output as you have over 70!!! mirrors in your list. And thats why you again, and again get this error. You need to remoev your broken set of mirrors first.

Remove all mirrors:
urpmi.removemedia -a

Add a new set:
urpmi.addmedia --distrib 'http://mirror2.tuxinator.org/mageia/distrib/9/i586/'

Have a look at urpmi commands:
https://wiki.mageia.org/en/URPMI
Comment 7 Elmar Stellnberger 2022-12-26 19:00:23 CET
Thanks, that has helped now. Perhaps add an option 'replace mirrors' to MCC instead of just adding another mirror since deleting non-working mirrors is essential. Reopening since I wanna put that for consideration.

Summary: multiple Mageia 9 mirrors not synced correctly => mcc: add 'replace mirrror' option for the case that some Mageia 9 mirrors not synced correctly
Status: RESOLVED => REOPENED
Resolution: INVALID => (none)

Comment 8 sturmvogel 2022-12-26 19:16:16 CET
This function is already there. It is called "Delete" on the right hand side of software management. Mark the mirror/repo and hit delete. Easy.
https://doc.mageia.org/mcc/8/en/content/software-management.html#drakrpm-edit-media

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

Comment 9 sturmvogel 2022-12-26 19:17:32 CET
I meant it is called "Remove" as seen in the MCC documentation.
Comment 10 Elmar Stellnberger 2022-12-27 09:59:52 CET
Created attachment 13604 [details]
configure media sources for install and updates

I don't see here any mirror list where you could delete existing mirrors. The only thing you can do here is select and unselect repositories within the currently configured mirrors.
Comment 11 Elmar Stellnberger 2022-12-27 10:02:18 CET
Reopening since the given functionality does not seem to be implemented within the gui. The only thing that needs to be done is change 'add mirror' to 'replace mirrors' in the File menu or add a menu entry 'delete all mirrors'.

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

Comment 12 sturmvogel 2022-12-27 11:04:01 CET
Bugzilla is unfortunately not the place to learn how a tool works. I recommend to use the extensive Mailinglists and Forums if you need some education how different Mageia tools are designed and are working.

(In reply to Elmar Stellnberger from comment #11)
> The only thing that needs to be done is change 'add mirror'
> to 'replace mirrors' in the File menu..
This functionality isn't implemented in any linux distribution. You only add and delete repositories but never "replace" them.


(In reply to Elmar Stellnberger from comment #11)
> or add a menu entry 'delete all mirrors'.
Did you read and understand the documentation which i pointed you to? Did you even have a look into MCC and tried this? This is already implemeted! You left-click on a repository (or shift click in case you want to mark several repos at once) and hit "Remove" on the right side.

Please refrain from opening this bug mindlessly over and over again for no real reason, because you haven't dealt with the tools or don't understand them.
Comment 13 sturmvogel 2022-12-27 11:04:18 CET
...

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

Comment 14 Elmar Stellnberger 2022-12-28 10:15:25 CET
There are two different things to configure: 
a.) mirrors
b.) repoositories

The main area of the window is about configuring repositories and the buttons on the right belong to the main area, i.e. they add/edit/remove repositories.
 
My request is about deleting non-working mirrors. Mirrors can be added via the File menu, but there is no way to view installed mirrors or to remove them. 

As you see my question is still unanswered and thus the bug needs to stay open until it is answered.

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

Comment 15 Dave Hodgins 2022-12-28 13:22:15 CET
(In reply to Elmar Stellnberger from comment #14)
> There are two different things to configure: 
> a.) mirrors
> b.) repoositories

The mirrors are web accessible sites that store the repositories.

What's stored on Mageia installations are references to repositories on
mirrors identified either by mirrorlist or a specific url.

You could have core release from one mirror, and core updates from another.
In /etc/urpmi/urpmi.cfg, core release, using the princeton mirror is
identified as

Core\ Release\ (distrib1) http://mirrors.kernel.org/mageia/distrib/8/x86_64/media/core/release {
  key-ids: 80420f66
}

While it's called adding a mirror in many places, it's adding a set of
references to individual repositories on the mirror.

Removal of the references is what's already available. The only difference
between that and what you are suggesting is "select all", which you can
already do my left clicking on the first repository, then holding down
the shift key and left clicking on the last one, then selecting remove.

Please do not use bugzilla for learning how to use the tools. Use the discuss
maling list, or the forums.

CC: (none) => davidwhodgins

Comment 16 sturmvogel 2022-12-28 13:28:03 CET
You are spamming bugzilla and abusing a Mageia service with that. You are deliberately ignoring information you have already received.


You still did not take the chance to educate and inform yourself with the documentation provided.
https://doc.mageia.org/mcc/8/en/content/software-management.html#drakrpm-edit-media
This official document describes in clear and easy words what you need to know.

And there seems to be a basic lack of understandig of mirror/repo terms. Lets use easy words for you from https://wiki.mageia.org/en/Software_management
"The first thing to do after an install is to add software sources (a.k.a. repositories, media, mirrors)."
You deliberately try to find a difference between mirror/repo."

A mirror(server) hosts linux repositories. That means by adding this link via MCC you have add repositories hosted on a mirror/(server). If you delete the link via MCC you lose the path to this mirror/repository and you need to add an other one.

View installed mirrors/repositories:
Mark a repo and hit "Edit". You can see the URL from the mirror. If it has "mirrorlist" in it you don't use a specific mirror (can also be seen on the main site if you use mirrorlist). You can also manually change/exchange the URL there.

Remove installed mirrors/repositories:
Mark a repo and hit "Remove". When you remove a repository you remove the link to the mirror. Thats is connected. 

(In reply to Elmar Stellnberger from comment #14)
> My request is about deleting non-working mirrors. Mirrors can be added via
> the File menu, but there is no way to view installed mirrors or to remove
As i answered this question several times, now a last time in really easy words:

View a mirror: Mark repo -> Edit (you see which URL/mirror is used)
Remove mirror: Mark repo (which is hosted on that mirror) -> "remove"



BTW: It's all the same for advanced linux distributions which use graphic installers (e.g. Yast2-software from openSUSE). You have three buttons "ADD, edit, Remove" and thats it for the basic user. If you are a advanced and informed user you have more specific ways how to do things via GUI menu or command line.




Again: Bugzilla is not for user education. You can use the Mailinglists or the forum if you have basic questions about how linux works.


Finaly changing this bug to INVALID as there is no technical problem, issue or bug. Only an understanding problem.

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

Comment 17 Elmar Stellnberger 2022-12-28 14:12:54 CET
 It should be possible to replace the mirrors without touching the repository selection, i.e. whether you have debug or backport repos enabled.

  These two commands have done what I want:
urpmi.removemedia -a
urpmi.addmedia --distrib 'http://mirror2.tuxinator.org/mageia/distrib/9/i586/'

  If an experienced user and developer like me can not use that GUI, not even with the documentation you have pointed me at, then there is something wrong here.

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