[PR #1778] [MERGED] Fail fast on WSL1 while allowing on WSL2 #10669

Closed
opened 2026-04-12 23:06:56 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/1778
Author: @dhiltgen
Created: 1/3/2024
Status: Merged
Merged: 1/4/2024
Merged by: @dhiltgen

Base: mainHead: wsl1


📝 Commits (1)

  • 2fcd41e Fail fast on WSL1 while allowing on WSL2

📊 Changes

1 file changed (+8 additions, -0 deletions)

View changed files

📝 scripts/install.sh (+8 -0)

📄 Description

This prevents users from accidentally installing on WSL1 with instructions guiding how to upgrade their WSL instance to version 2. Once running WSL2 if you have an NVIDIA card, you can follow their instructions to set up GPU passthrough and run models on the GPU. This is not possible on WSL1.

Example output.

WSL1

daniel@DESKTOP-PUNI632:/mnt/c/Users/Daniel$ ./install.sh
ERROR WSL1 is not currently supported - please upgrade to WSL2 with 'wsl --set-version <distro> 2'
daniel@DESKTOP-PUNI632:/mnt/c/Users/Daniel$ uname -r
4.4.0-19041-Microsoft

WSL2

root@DESKTOP-PUNI632:/mnt/c/Users/Daniel# ./install.sh
>>> Downloading ollama...
################################################################################################################# 100.0% 
...
root@DESKTOP-PUNI632:/mnt/c/Users/Daniel# uname -r
5.15.133.1-microsoft-standard-WSL2

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/1778 **Author:** [@dhiltgen](https://github.com/dhiltgen) **Created:** 1/3/2024 **Status:** ✅ Merged **Merged:** 1/4/2024 **Merged by:** [@dhiltgen](https://github.com/dhiltgen) **Base:** `main` ← **Head:** `wsl1` --- ### 📝 Commits (1) - [`2fcd41e`](https://github.com/ollama/ollama/commit/2fcd41ef81e5958e3fa2ba6961929ded3f256aca) Fail fast on WSL1 while allowing on WSL2 ### 📊 Changes **1 file changed** (+8 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `scripts/install.sh` (+8 -0) </details> ### 📄 Description This prevents users from accidentally installing on WSL1 with instructions guiding how to upgrade their WSL instance to version 2. Once running WSL2 if you have an NVIDIA card, you can follow their instructions to set up GPU passthrough and run models on the GPU. This is not possible on WSL1. Example output. WSL1 ``` daniel@DESKTOP-PUNI632:/mnt/c/Users/Daniel$ ./install.sh ERROR WSL1 is not currently supported - please upgrade to WSL2 with 'wsl --set-version <distro> 2' daniel@DESKTOP-PUNI632:/mnt/c/Users/Daniel$ uname -r 4.4.0-19041-Microsoft ``` WSL2 ``` root@DESKTOP-PUNI632:/mnt/c/Users/Daniel# ./install.sh >>> Downloading ollama... ################################################################################################################# 100.0% ... root@DESKTOP-PUNI632:/mnt/c/Users/Daniel# uname -r 5.15.133.1-microsoft-standard-WSL2 ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-12 23:06:56 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#10669