WSL-related
- Q: I use WSL under Windows, but when running the deploy-script I still have to enter the password.
- Solution: Install WSL 2.
If you insist on using version 1 you have to activate extended WSL functionality in order to work withchmod
/chown
.
Re-run the deploy-script withpython3 deploy.py -c
afterward.
- Solution: Install WSL 2.
# Inside WSL, execute this:
sudo vi /etc/wsl.conf
# Add the following lines to this file:
[automount]
enabled = true
options = "metadata"
# Save and close the file with "ESC", then ":" "x" "ENTER"
# Restart WSL and delete the ".bin" directory in "robolab-deploy"
cd /mnt/<DRIVE>/path/to/robolab/
rm -Rf robolab-deploy/.bin
Q: I want to access my files in the WSL, but I can’t find them.
- Solution: Type
\\wsl$
in the Windows “Run” dialog or Windows Explorer address bar.
- Solution: Type
Q: PyCharm does not show my files from the WSL.
- Solution: Update PyCharm. Older versions do not offer support for WSL.
Q: I use Windows and my Python version is too old (works not for WSL).
- Solution: Install the latest Python 3.12 (64bit).
Q: Virtualization is not enabled for my system (check Task-Manager)
- Solution: Following steps will enable Virtualization support:
Hold[Shift]
and clickNeu starten
, selectProblembehandlung
->Erweiterte Optionen
->UEFI-Firmwareeinstellungen
Now, selectIntel Virtualization Technology
/SVM Mode
and activate it
- Solution: Following steps will enable Virtualization support:
Q: I receive
Please enable the Virtual Machine Platform Windows feature and ensure virtualization is enabled in the BIOS
- Solution: Go to
Enable or Disable Windows-Features
, activateVM-Platform
Check Task-Manager if virtualization is now available (second tab, CPU, bottem-right)
- Solution: Go to
Q:
wsl --install
producesCatastrophic failure
- Solution: Try open Microsoft Store
Q:
wsl --install
produces errors, or message “Das Windows-Subsystem für Linux wurde nicht aktiviert” appears- Solution: From Microsoft Store, install
Ubuntu
- Solution: Go to
Enable or Disable Windows-Features
, activateWindows-Subsystem for Linux
Runwsl --update
afterward
- Solution: From Microsoft Store, install
Q: “WSL 2 erfordert ein Update der Kernelkomponente” or “WSL 2 requires an update to its kernel component”
- Solution: Run
wsl --update
- Solution: Run
Q: WSL has no internet connection (
ping 9.9.9.9
fails)- Solution: Reboot your system
Q: WSL has internet connection, but DNS does not work (
ping quad9.net
fails)- Solution: Inside the WSL terminal, follow these steps:
sudo nano /etc/wsl.conf
# Enter following lines
[network]
generateResolvConf = false
sudo nano /etc/resolv.conf
# Enter following lines
nameserver 9.9.9.9
- Q: Running
apt-get install
throws errors- Solution: Run
apt-get update
beforehand
- Solution: Run