Installing nrfConnect on Ubuntu 24.04LTS

I am trying to install the toolchaing under Ubuntu 24.04LTS.

Installing via the toolchain manager does not work. I get the following error.

  • Failed to clone the repositories: Error: Cloning into '/home/cmag/ncs/v2.9.1/.west/manifest-tmp'... /home/cmag/ncs/toolchains/b77d8c1312/usr/local/libexec/git-core/git-remote-https: error while loading shared libraries: libunistring.so.2: cannot open shared object file: No such file or directory FATAL ERROR: command exited with status 128: git clone --branch v2.9.1 https://github.com/nrfconnect/sdk-nrf /home/cmag/ncs/v2.9.1/.west/manifest-tmp Error: Launched process exited with non-zero status: 128 Error: Subprocess /home/cmag/.config/nrfconnect/nrfutil-sandboxes/toolchain-manager/0.15.0/bin/nrfutil-toolchain-manager failed with unexpected exit code Some(128)
  • Error: Cloning into '/home/cmag/ncs/v2.9.1/.west/manifest-tmp'... /home/cmag/ncs/toolchains/b77d8c1312/usr/local/libexec/git-core/git-remote-https: error while loading shared libraries: libunistring.so.2: cannot open shared object file: No such file or directory FATAL ERROR: command exited with status 128: git clone --branch v2.9.1 https://github.com/nrfconnect/sdk-nrf /home/cmag/ncs/v2.9.1/.west/manifest-tmp Error: Launched process exited with non-zero status: 128 Error: Subprocess /home/cmag/.config/nrfconnect/nrfutil-sandboxes/toolchain-manager/0.15.0/bin/nrfutil-toolchain-manager failed with unexpected exit code Some(128)
Installing via command line, requires to install some Python modules.
The problem is that from versions 24.04LTS Ubuntu refuses to install modules under the global Python, as this could conflict with system packages.
The recommended solution is to use VENV (Virtual Environments).
I expect I should install under a VENV used by VSC/nrf/Zephyr and I do not know how to proceed.
Certainly I can create a VENV, then pip3 install west in that, but then I can I link the VENV to VSC/nrf/Zephyr
Related