Search notes:

wsl --install

Installing Windows subsystem for Linux

In the following --install command, --no-distribution is added to prevent the default installation of Ubuntu.
C:\> wsl --install --no-distribution
Downloading: Windows Subsystem for Linux 2.5.9
Installing: Windows Subsystem for Linux 2.5.9
Windows Subsystem for Linux 2.5.9 has been installed
…
The system now needs to be rebooted.

Adding a new distribution

wsl --install -d <distroname» adds a new Windows Subsystem for Linux distribution.
C:\> wsl --list --online

The following is a list of valid distributions that can be installed.
Install using 'wsl.exe --install <Distro>'.

NAME                            FRIENDLY NAME
Ubuntu                          Ubuntu
Debian                          Debian GNU/Linux
…
OracleLinux_8_7                 Oracle Linux 8.7
OracleLinux_9_1                 Oracle Linux 9.1
…
openSUSE-Tumbleweed             openSUSE Tumbleweed

C:\> wsl --install OracleLinux_9_1

Launching Oracle Linux 9.1...
Installing, this may take a few minutes...
Please create a default UNIX user account. …
…
Installation successful!
If distribution name is not specified, it defaults to Ubuntu.
The list of available distributions can be queried with wsl --list --online.

TODO

The --web-download option downloads the distribution from the internet instead of the Microsoft Store.

See also

wsl-install … wsl --install: Failed to install … from the Microsoft Store: The server name or address could not be resolved

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:51 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(51): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(66): id_of(Object(PDO), 'uri', '/notes/Windows/...') #2 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Windows/...', 1759612441, '216.73.216.149', 'Mozilla/5.0 App...', 'https://www.ren...') #3 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Windows/dirs/Windows/System32/wsl_exe/install/index(88): insert_webrequest() #4 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 51