Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#42018 - [gdm] pacman -Rs gdm - error: command failed to execute correctly
Attached to Project:
Arch Linux
Opened by Adrián López (adrianlzt) - Friday, 19 September 2014, 08:43 GMT
Last edited by Jan de Groot (JGC) - Thursday, 28 May 2015, 13:15 GMT
Opened by Adrián López (adrianlzt) - Friday, 19 September 2014, 08:43 GMT
Last edited by Jan de Groot (JGC) - Thursday, 28 May 2015, 13:15 GMT
|
DetailsSummary and Info:
The 'install' file of the gdm package (https://projects.archlinux.org/svntogit/packages.git/tree/trunk/gdm.install?h=packages/gdm) has two small errors. In line #3 useradd is called as "usr/sbin/useradd" (without the first slash). But works properly. The second one is in post_remove() function and triggers the pacman error. Reading the userdel man page: "If USERGROUPS_ENAB is defined to yes in /etc/login.defs, userdel will delete the group with the same name as the user." In the post_remove() function first the user is deleted, then the group. But, if userdel deletes also the 'gdm' group, the command "getent group gdm" returns 2 and that is the return code of the whole function. Steps to Reproduce: "USERGROUPS_ENAB yes" in /etc/login.defs pacman -S gdm pacman -R gdm |
This task depends upon
Closed by Jan de Groot (JGC)
Thursday, 28 May 2015, 13:15 GMT
Reason for closing: Fixed
Additional comments about closing: gdm no longer deletes user/group on remove.
Thursday, 28 May 2015, 13:15 GMT
Reason for closing: Fixed
Additional comments about closing: gdm no longer deletes user/group on remove.
getent passwd gdm >/dev/null 2>&1 && userdel gdm
getent group gdm >/dev/null 2>&1 && groupdel gdm
To:
{ getent passwd gdm >/dev/null 2>&1 && userdel gdm; } || true
{ getent group gdm >/dev/null 2>&1 && groupdel gdm; } || true
In the post_remove() section.