Bug 30268

Summary: Installing chrome-gnome-shell failed to preset unit as it already exists and is a symbolic link
Product: Mageia Reporter: Kristoffer Grundström <lovaren>
Component: RPM PackagesAssignee: All Packagers <pkg-bugs>
Status: RESOLVED OLD QA Contact:
Severity: minor    
Priority: Low CC: davidwhodgins
Version: 8   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: chrome-gnome-shell CVE:
Status comment:

Description Kristoffer Grundström 2022-04-10 01:27:16 CEST
Description of problem: When installing chrome-gnome-shell with dnf I got these two messages when running the gdm script:

Failed to preset unit: File /etc/systemd/system/display-manager.service already exists and is a symlink to /usr/lib/systemd/system/lightdm.service.

  Installing  : gnome-shell-3.38.3-2.1.mga8.x86_64                                                                                                               58/58 
  Running script  : gnome-shell-3.38.3-2.1.mga8.x86_64                                                                                                               58/58 
Failed to preset unit, unit gnome-shell.service does not exist.

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

How reproducible: This is the first time I've seen it.

Steps to Reproduce:
1. Open a terminal window.
2. Run dnf install chrome-gnome-shell -y as root.
3. During the installation of gdm you'll see the above mentioned messages.
Comment 1 Dave Hodgins 2022-04-10 05:05:50 CEST
Confirmed the messages are generated when installing gdm, gnome-shell, and
chrome-gnome-shell (after removing them using "rpm -e --nodeps), however they
are cosmetic, so lowering the priority and severity.

The first message from gdm will not be generated if gdm is being installed and
no other desktop manager has already been installed. A more informative message
could possibly be generated instead, or the message suppressed.

The second message for gnome-shell causes no harm. The script line is ...
/usr/bin/systemctl --no-reload preset \--global gnome-shell.service || :
The "|| :" at the end means "or true", so the return code from the line is
0 (success), whether the systemctl command works or not. No Mageia 8 package
contains a file called gnome-shell.service. so the line cannot actually do
anything useful. The entire postinstall scriptlet should be removed.

Neither gdm or gnome shell have assigned maintainers, so assigning to all
packagers.

Priority: Normal => Low
CC: (none) => davidwhodgins
Severity: normal => minor
Assignee: bugsquad => pkg-bugs

Comment 2 sturmvogel 2024-01-19 17:02:07 CET
Chrome-gnome-Shell got removed from Mageia.

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