Why cant i install px4 toolbox despite i have wsl2 already installed?

4 次查看(过去 30 天)
I have installed WSL2 ages ago and installed MATLAB 2023a and then px4 on it.
the whole procedure went smoothly.
but when i upgraded into 2024a, i am stuck on the message: "please install wsl2 on windows to install px4". Despite i've already done the steps, as far as rebooting windows and reinstalling MATLAB.
I cant get further than this message:

回答(1 个)

Ayush Singh
Ayush Singh 2024-5-16
编辑:Ayush Singh 2024-5-16
Hi Zain,
I can see that after you upgraded your MATLAB version it is not able to detect WSL2 you already installed in your system.
Since MATLAB 2024a is not recognizing an existing WSL2 installation, there might be a compatibility issue or a problem with how MATLAB detects WSL2. Here are some initial troubleshooting steps you could try:
  1. First, ensure that WSL2 is correctly installed and set as the default version. Open a command prompt or PowerShell and run:
wsl --list --verbose
If it is set to default version as 1, you can set it to 2 using:
wsl --set-default-version 2
2. Ensure that MATLAB 2024a supports the version of WSL2 you are using.
3. Try uninstalling WSL 2 and again reinstall it by following the steps on following link:
4. MATLAB stores various preferences and configurations that might not get fully cleared out during an upgrade or reinstall. Try resetting MATLAB's preferences by renaming or deleting the preferences directory (make sure to back it up first). The location can vary, but it's typically found under:
C:\Users\YourUsername\AppData\Roaming\MathWorks\MATLAB\version
Rename the Version folder related to 2024a, and MATLAB will recreate it with default settings the next time it starts.

类别

Help CenterFile Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息

产品


版本

R2024a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by