0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

WSLでGUIを使用

Posted at

WindowsでWSLを利用してUbuntuのGUIを使う方法。

上記サイトに詳細が書かれていて、これに従って進めればできるはずだが、今回はエラーが出たのでそのメモ。

エラーはUbuntu側にGUIアプリをインストールする際の次のコマンド

sudo apt install libgl1-mesa-dev xorg-dev

エラーメッセージは次の通り。

Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libgl1-mesa-dev : Depends: libgl-dev but it is not going to be installed
                   Depends: libglvnd-dev but it is not going to be installed
 xorg-dev : Depends: libfontenc-dev but it is not going to be installed
            Depends: libxfont-dev but it is not going to be installed
            Depends: libxft-dev but it is not going to be installed
            Depends: xserver-xorg-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

依存関係のエラーで、解決方針は下記のサイトの通り。
http://blog.livedoor.jp/hiroto_o/archives/39125675.html

エラーに表示されるライブラリをバージョンも指定してインストールしていく。
例えば、次の様なコマンドを実行することになる。

sudo apt install libdrm-amdgpu1=2.4.101-2

最終的にすべてのライブラリをインストールすれば、エラーが出なくなり、GUIを使えるようになる。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?