| Summary: | The order of /usr/bin and /usr/sbin are sometimes swapped in PATH variable | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | papoteur <yvesbrungard> |
| Component: | RPM Packages | Assignee: | Mageia tools maintainers <mageiatools> |
| Status: | NEW --- | QA Contact: | |
| Severity: | major | ||
| Priority: | Normal | CC: | fri, guillaume.royer, surfzoid |
| Version: | 9 | Keywords: | IN_ERRATA9 |
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| See Also: | https://bugs.mageia.org/show_bug.cgi?id=32382 | ||
| Whiteboard: | |||
| Source RPM: | urpmi, mgaonline | CVE: | |
| Status comment: | |||
|
Description
papoteur
2023-10-02 13:23:20 CEST
Is it possible that PATH could be different between Mageia systems unless altered by user? Could else cause Bug 32350 - No updates offered by mgaapplet Assignee:
bugsquad =>
mageiatools (In reply to Morgan Leijström from comment #1) > Is it possible that PATH could be different between Mageia systems unless > altered by user? The PATH can be altered in the user space, this is the case where the problem has been found. Perhaps by anaconda installation. But in any case, the system should not be fragile to be not working because of not prohibited settings. > > Could else cause Bug 32350 - No updates offered by mgaapplet Yes, the effect of this problem is that the metadata files of urpmi are never updated, thus no updates are seen. As third option, we can modify this line: https://gitweb.mageia.org/software/mgaonline/tree/mgaapplet-update-checker#n55 if (!run_program::run('urpmi.update', $media, if_($root, "--urpmi-root=$root"))) { to add the absolute path to the command. It seems that if GNOME is installed, path gets modified so it does not work. So also when running Plasma on same system, updates do not get announced. Workaround is modifying the path. See Bug 32350#c29 Keywords:
(none) =>
FOR_ERRATA9
papoteur
2023-10-13 09:40:57 CEST
See Also:
(none) =>
https://bugs.mageia.org/show_bug.cgi?id=32382 I have opened another report for an update of magaonline. I change this one to follow the problem of the PATH being wrongly set. Summary:
urpmi.update is provided in /usr/bin and /usr/sbin and doesn't behave the same according to how PATH is defined =>
/usr/bin and /usr/sbin are sometimes inverted in PATH variable
papoteur
2023-10-13 09:54:39 CEST
CC:
(none) =>
guillaume.royer
Morgan Leijström
2023-10-13 17:58:05 CEST
Summary:
/usr/bin and /usr/sbin are sometimes inverted in PATH variable =>
The order of /usr/bin and /usr/sbin are sometimes swapped in PATH variable |