You are not logged in.
With GNOME 3 and Xorg pacman hangs while upgrading some packages (gnome-shell, mutter or a few others) in gnome-terminal or xterm. This behavior doesn't happen in tty console while the following error is printed
:: Processing package changes...
(1/1) upgrading gnome-shell
Error: Error: Can't open display: Can't open display:
:: Running post-transaction hooks...
The upgrading finishes without any freeze.
/var/log/pacman.log
[2019-11-13T07:19:47+0300] [ALPM-SCRIPTLET] Error: Error: Can't open display: Can't open display:
[2019-11-13T07:19:47+0300] [ALPM-SCRIPTLET]
journalctl SYSLOG_IDENTIFIER=gnome-session
journalctl /usr/bin/gnome-shell
journalctl SYSLOG_IDENTIFIER=org.gnome.Shell.desktop
Solution
Add or uncomment to /etc/sudoers:
Defaults env_keep+=HOME
While upgrading some packages (for example gnome-shell or fakeroot), the environment variable HOME should to be used. If sudo doesn't have access to it a conflict will arise which may lead to the situation described above.
Last edited by avdonin (2020-01-20 22:00:22)
Offline
Please post (or link to) your full pacman.log
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline