更新软件时出现以下错误。
编辑:运行时出现同样的错误'sudo apt-get 升级“”。
[ 1201.873] _XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
[ 1201.873] _XSERVTransMakeAllCOTSServerListeners: server already running
[ 1201.874] (EE)
Fatal server error:
[ 1201.874] (EE) Cannot establish any listening sockets - Make sure an X server isn't already running(EE)
[ 1201.874] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 1201.874] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[ 1201.874] (EE)
[ 1201.874] (EE) Server terminated with error (1). Closing log file
日志文件输出 ( /var/log/Xorg.0.log
)
[ 197.261] _XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
[ 197.261] _XSERVTransMakeAllCOTSServerListeners: server already running
[ 197.261] (EE)
Fatal server error:
[ 197.261] (EE) Cannot establish any listening sockets - Make sure an X server isn't already running(EE)
[ 197.261] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 197.261] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[ 197.261] (EE)
[ 197.261] (EE) Server terminated with error (1). Closing log file.
答案1
我第一次安装 18.04 LTS 版本时也遇到了同样的问题,这是'xserver-xorg'我所做的是重新安装 xserver-xorg
重新安装之前请使用以下命令删除 .XAuthority 文件:
sudo rm /home/[your username]/.XAuthority*
使用此命令重新安装 xserver-xorg:
sudo apt-get install --reinstall xorg
希望这个答案能够解决您的问题。