You are not logged in.

#1 2019-11-13 04:38:51

avdonin
Member
Registered: 2019-11-13
Posts: 2

[SOLVED] pacman hangs while upgrading some packages

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

#2 2019-11-13 13:18:27

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,442
Website

Re: [SOLVED] pacman hangs while upgrading some packages

Please post (or link to) your full pacman.log


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

Board footer

Powered by FluxBB