Windows Storeに「Ubuntu 24.04 LTS」が登場しました。WSL2でさっそく使ってみました。CUDAも使えました。

hoge@galleria:~$ cat /etc/os-release
PRETTY_NAME="Ubuntu 24.04 LTS"
NAME="Ubuntu"
VERSION_ID="24.04"
VERSION="24.04 LTS (Noble Numbat)"
VERSION_CODENAME=noble
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=noble
LOGO=ubuntu-logo
hoge@galleria:~$ python3 --version
Python 3.12.3
hoge@galleria:~$ perl --version

This is perl 5, version 38, subversion 2 (v5.38.2) built for x86_64-linux-gnu-thread-multi
(with 44 registered patches, see perl -V for more detail)

Copyright 1987-2023, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at https://www.perl.org/, the Perl Home Page.

CUDAのインストール

このようなエラーに遭遇しました。

The following packages have unmet dependencies:
 nsight-systems-2023.4.4 : Depends: libtinfo5 but it is not installable
E: Unable to correct problems, you have held broken packages.

解決策

「/etc/apt/sources.list.d/ubuntu.sources」ファイル内に以下を書き込みます。
優先順位の関係で最後に追記するのが良いと思います。

Types: deb
URIs: http://security.ubuntu.com/ubuntu
Suites: jammy-security
Components: universe
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg

書き込みは「nano」を使うのが簡単です。

sudo nano /etc/apt/sources.list.d/ubuntu.sources