Install nRF Connect SDK v2.9.1 under Ubuntu 24.03.2 LTS

Hello !

Try to install latest nRF connect  to fresh notebook with latest Ubuntu LTS version.

And have got some known error;

  • Failed to clone the repositories: Error: Cloning into '/home/user/ncs/v2.9.1/.west/manifest-tmp'... /home/user/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 github.com/.../sdk-nrf /home/user/ncs/v2.9.1/.west/manifest-tmp Error: Launched process exited with non-zero status: 128 Error: Subprocess /home/user/.config/nrfconnect/nrfutil-sandboxes/toolchain-manager/0.15.0/bin/nrfutil-toolchain-manager failed with unexpected exit code Some(128)

Is any work around about it exists ? I need to use this LTS version ?

I have tried links creation from here but nothing dosn't help.

Regards,

Eugene

Parents Reply Children
  • I think you can use it to download the older installations. In general the preview is in my opinion not something I would use for development as it is some time before the proper release of NCS 3.0. 
    I will not be surprised if there are changes that will be described in the migration guide that can cause some issues, but this is only speculation on my part. 

    Regards

    Runar

  • Hi  

    Looks like zephyr environment need extra tuning after automatic installation.

    At list it is not the same experience what I had few year ago.

    I expect to have command line building.

    And even extra setting

    source zephyr/zephyr-env.sh

    export PYTHONHOME=/home/user/ncs/toolchains/aedb4c0245/usr/local/bin
    export PYTHONPATH=/home/user/ncs/toolchains/aedb4c0245/usr/local/bin 

     and at folder

    $ pwd
    /home/user/ncs/v3.0.0-preview1/nrf/samples/crypto/aes_ccm

    $ west build --pristine --board nrf52840dk_nrf52840
    Python path configuration:
    PYTHONHOME = '/home/user/ncs/toolchains/aedb4c0245/usr/local/bin'
    PYTHONPATH = '/home/user/ncs/toolchains/aedb4c0245/usr/local/bin'
    program name = '/usr/bin/python3'
    isolated = 0
    environment = 1
    user site = 1
    safe_path = 0
    import site = 1
    is in build tree = 0
    stdlib dir = '/home/user/ncs/toolchains/aedb4c0245/usr/local/bin/lib/python3.12'
    sys._base_executable = '/usr/bin/python3'
    sys.base_prefix = '/home/user/ncs/toolchains/aedb4c0245/usr/local/bin'
    sys.base_exec_prefix = '/home/user/ncs/toolchains/aedb4c0245/usr/local/bin'
    sys.platlibdir = 'lib'
    sys.executable = '/usr/bin/python3'
    sys.prefix = '/home/user/ncs/toolchains/aedb4c0245/usr/local/bin'
    sys.exec_prefix = '/home/user/ncs/toolchains/aedb4c0245/usr/local/bin'
    sys.path = [
    '/home/user/ncs/toolchains/aedb4c0245/usr/local/bin',
    '/home/user/ncs/toolchains/aedb4c0245/usr/local/bin/lib/python312.zip',
    '/home/user/ncs/toolchains/aedb4c0245/usr/local/bin/lib/python3.12',
    '/home/user/ncs/toolchains/aedb4c0245/usr/local/bin/lib/python3.12/lib-dynload',
    ]
    Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
    Python runtime state: core initialized
    ModuleNotFoundError: No module named 'encodings'

    Current thread 0x00007ce8428da080 (most recent call first):
    <no Python frame>

    Looks like some post installation magic is need to set command line build environment

    and it is not so clear from site documentation how to do it for current set of versions.

    Do you have idea about it ?

    Regards,

    Eugene

  • Hi. 

    Can you try with nrfutil toolchain-manager launch --shell. If you get an issue then, you can try to set ZEPHYR_BASE

    Regards

    Runar

Related