Skip to content

Unable to init server: 无法连接: 拒绝连接 #3

@MichaelToLearn

Description

@MichaelToLearn

输入 gedit,输出:

root@DESKTOP-BM0H190:/opt/WSL# gedit
dbus[355]: Unable to set up transient service directory: XDG_RUNTIME_DIR "/run/user/0/" not available: No such file or directory
Unable to init server: 无法连接: 拒绝连接

(gedit:353): Gtk-WARNING **: 12:13:00.767: cannot open display: :0.0

通过 wsl -u root 进入 wsl 时,有一个报错,提示 sleep 找不到:

PS C:\WINDOWS\system32> wsl -u root
***************************************
X environment initializing
/usr/bin/startXServer: 行 12: /usr/bin/sleep: 没有那个文件或目录
X environment is ready
***************************************

目前是无法连接图形界面。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions