nRF Connect SDK v2.6.1 and v2.7 fails Ubuntu 24.04 LTS

There are multiple errors:

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

  • Error: Cloning into '~/ncs/v2.6.1/.west/manifest-tmp'... /~/ncs/toolchains/2be090971e/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.6.1 github.com/.../sdk-nrf /~/ncs/v2.6.1/.west/manifest-tmp Error: Launched process exited with non-zero status: 128 Error: Subprocess /~/.config/nrfconnect/nrfutil-sandboxes/toolchain-manager/0.15.0/bin/nrfutil-toolchain-manager failed with unexpected exit code Some(128)


I had no problems installing V2.6 some time ago on the same PC (UBUNTU  24.04 LTS)

Parents
  • vorrias said:

    Strange. I can't see the second line "Manage SDKs ..." at all

    Even when you do not have an SDK selected in the explorer view? Try for instance opening a folder outside of NCS, or selecting the NCS folder, right click on it, and select "remove folder from workspace". Does that change anything regarding whether or not the Manage SDK option is visible?

    If that doesn't help, could you try generating support info for me? 

    Regards,

    Elfving

  • Hi Elfving,

    Nope, same problem even when ncs directory opened in VS

    here is the file for support you asked for.

    IMPORTANT: The data below could contain sensitive or confidential information about your environment.
    If you do not wish this to be seen by others, please make sure to remove it before sharing.
    
    For help and support, visit the Nordic DevZone at https://devzone.nordicsemi.com/.
    
    {
      "platform": {
        "os": "linux",
        "osVersion": "#40-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul  5 10:34:03 UTC 2024",
        "osKernel": "6.8.0-40-generic",
        "vscode": "1.92.2",
        "electron": "30.1.2",
        "node": "v20.14.0"
      },
      "system": {
        "date": "2024-08-22T08:45:59.974Z",
        "vscodeRoot": "/usr/share/code/resources/app",
        "nrfConnectForDesktopInstalled": "unknown",
        "vscodeUptime": "00:16:31",
        "osUptime": "00:33:31",
        "cpu": "Intel(R) Core(TM) i5-3380M CPU @ 2.90GHz"
      },
      "workspace": {
        "name": "ncs",
        "workspaceFile": null,
        "folders": [
          "/home/vorrias/ncs"
        ]
      },
      "sdks": [
        {
          "version": "v2.6.0",
          "path": "/home/vorrias/ncs/v2.6.0"
        },
        {
          "version": "v2.5.2",
          "path": "/home/vorrias/ncs/v2.5.2"
        },
        {
          "version": "v2.5.1",
          "path": "/home/vorrias/ncs/v2.5.1"
        }
      ],
      "apps": [],
      "topdir": "/home/vorrias/ncs/v2.6.0",
      "workspaceState": "workspace-uninitialised-ready",
      "toolchains": [
        {
          "version": "2.7.0",
          "path": "/home/vorrias/ncs/toolchains/e9dba88316"
        },
        {
          "version": "2.6.1",
          "path": "/home/vorrias/ncs/toolchains/2be090971e"
        },
        {
          "version": "2.6.0",
          "path": "/home/vorrias/ncs/toolchains/2be090971e"
        },
        {
          "version": "2.5.2",
          "path": "/home/vorrias/ncs/toolchains/7795df4459"
        },
        {
          "version": "2.5.1",
          "path": "/home/vorrias/ncs/toolchains/7795df4459"
        }
      ],
      "connectedDevices": [],
      "deviceProvider": "nrfutil",
      "tools": {
        "/home/vorrias/ncs/toolchains/e9dba88316/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc": "0.16.5-1",
        "/opt/SEGGER/JLink/JLinkExe": "7.94j",
        "/usr/local/bin/nrfjprog": "10.24.0",
        "nrfutil": "Not found",
        "/home/vorrias/ncs/toolchains/e9dba88316/usr/local/bin/cmake": "3.21.0",
        "/home/vorrias/ncs/toolchains/e9dba88316/usr/local/bin/west": "1.2.0",
        "/home/vorrias/ncs/toolchains/e9dba88316/usr/local/bin/python3": "3.9.18",
        "/home/vorrias/ncs/toolchains/e9dba88316/usr/local/bin/ninja": "1.10.2",
        "/home/vorrias/ncs/toolchains/e9dba88316/usr/bin/gperf": "3.1",
        "/home/vorrias/ncs/toolchains/e9dba88316/usr/bin/dtc": "1.5.0",
        "/home/vorrias/ncs/toolchains/e9dba88316/opt/bin/gn": "2132",
        "/home/vorrias/ncs/toolchains/e9dba88316/usr/local/bin/git": "2.37.3",
        "gdbPath": "/home/vorrias/ncs/toolchains/e9dba88316/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gdb"
      },
      "nrfutil": {
        "nrfutil-device": {
          "version": "2.0.0",
          "binPath": "/home/vorrias/.vscode/extensions/nordic-semiconductor.nrf-connect-2024.7.13-linux-x64/platform/nrfutil/bin/nrfutil-device"
        },
        "nrfutil-toolchain-manager": {
          "version": "0.14.4",
          "binPath": "/home/vorrias/.vscode/extensions/nordic-semiconductor.nrf-connect-2024.7.13-linux-x64/platform/nrfutil/bin/nrfutil-toolchain-manager"
        }
      },
      "environment": {
        "westEnv": {
          "ELECTRON_RUN_AS_NODE": "1",
          "GIT_EXEC_PATH": "/home/vorrias/ncs/toolchains/e9dba88316/usr/local/libexec/git-core",
          "HOME": "/home/vorrias",
          "PATH": "/home/vorrias/ncs/toolchains/e9dba88316/usr/bin:/home/vorrias/ncs/toolchains/e9dba88316/usr/bin:/home/vorrias/ncs/toolchains/e9dba88316/usr/local/bin:/home/vorrias/ncs/toolchains/e9dba88316/opt/bin:/home/vorrias/ncs/toolchains/e9dba88316/opt/nanopb/generator-bin:/home/vorrias/ncs/toolchains/e9dba88316/opt/zephyr-sdk/aarch64-zephyr-elf/bin:/home/vorrias/ncs/toolchains/e9dba88316/opt/zephyr-sdk/x86_64-zephyr-elf/bin:/home/vorrias/ncs/toolchains/e9dba88316/opt/zephyr-sdk/arm-zephyr-eabi/bin:/home/vorrias/ncs/toolchains/e9dba88316/opt/zephyr-sdk/riscv64-zephyr-elf/bin:/home/vorrias/.local/bin:/home/vorrias/bin:/home/vorrias/.local/bin:/home/vorrias/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin:/home/vorrias/.local/bin:/home/vorrias/bin:/home/vorrias/.local/bin:/home/vorrias/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin",
          "ZEPHYR_BASE": "/home/vorrias/ncs/v2.6.0/zephyr",
          "ZEPHYR_TOOLCHAIN_VARIANT": "zephyr",
          "ZEPHYR_SDK_INSTALL_DIR": "/home/vorrias/ncs/toolchains/e9dba88316/opt/zephyr-sdk",
          "PYTHONPATH": "/home/vorrias/ncs/toolchains/e9dba88316/usr/local/lib/python3.9:/home/vorrias/ncs/toolchains/e9dba88316/usr/local/lib/python3.9/site-packages",
          "USER": "vorrias"
        },
        "inherited": {
          "ELECTRON_RUN_AS_NODE": "1",
          "HOME": "/home/vorrias",
          "PATH": "/home/vorrias/.local/bin:/home/vorrias/bin:/home/vorrias/.local/bin:/home/vorrias/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin",
          "USER": "vorrias"
        },
        "toolchainPath": "/home/vorrias/ncs/toolchains/e9dba88316",
        "toolchainBinPath": "/home/vorrias/ncs/toolchains/e9dba88316/opt/zephyr-sdk/arm-zephyr-eabi/bin",
        "toolchainVersion": "2.7.0"
      },
      "terminal": {
        "defaultProfile": null
      },
      "config": {
        "nordic-semiconductor.nrf-connect": {
          "topdir": "",
          "toolchain": {
            "path": ""
          },
          "ozonePath": "",
          "applications": [],
          "applicationOptions": {},
          "kconfig": {
            "interface": "kconfig"
          },
          "west": {
            "env": {
              "$base": "terminal"
            }
          },
          "boardRoots": [],
          "taskBindings": {},
          "buildTerminal": {
            "condensedProgress": true
          },
          "debugging": {
            "flash": true,
            "bindings": {},
            "justMyCode": true
          },
          "activeAppFollowActiveEditor": true,
          "deviceProvider": "",
          "flash": {
            "softreset": false,
            "erase": false,
            "recover": false
          },
          "enableTelemetry": true,
          "thirdpartyIntegration": {},
          "toolchainManager": {
            "indexURL": null,
            "installDirectory": null
          },
          "nrfutil": {
            "home": null
          },
          "defaultOpenAction": "ask"
        },
        "nordic-semiconductor.nrf-terminal": {
          "terminalMode": "character"
        }
      },
      "extensions": {
        "internal": {
          "nordic-semiconductor.nrf-connect": {
            "version": "2024.7.13",
            "path": "/home/vorrias/.vscode/extensions/nordic-semiconductor.nrf-connect-2024.7.13-linux-x64",
            "isActive": true
          },
          "nordic-semiconductor.nrf-terminal": {
            "version": "2024.3.15",
            "path": "/home/vorrias/.vscode/extensions/nordic-semiconductor.nrf-terminal-2024.3.15",
            "isActive": true
          },
          "nordic-semiconductor.nrf-devicetree": {
            "version": "2024.6.20",
            "path": "/home/vorrias/.vscode/extensions/nordic-semiconductor.nrf-devicetree-2024.6.20",
            "isActive": true
          },
          "nordic-semiconductor.nrf-kconfig": {
            "version": "2024.6.20",
            "path": "/home/vorrias/.vscode/extensions/nordic-semiconductor.nrf-kconfig-2024.6.20",
            "isActive": true
          }
        },
        "external": {
          "marus25.cortex-debug": null,
          "ms-vscode.cpptools": "1.21.6",
          "ms-vscode.js-debug": "1.92.0",
          "ms-vscode.js-debug-companion": "1.1.3",
          "ms-vscode.vscode-js-profile-table": "1.0.9",
          "espressif.esp-idf-extension": "1.8.0",
          "ms-vscode.cpptools-extension-pack": "1.3.0",
          "ms-vscode.cpptools-themes": "2.0.0",
          "trond-snekvik.gnu-mapfiles": "1.1.0"
        }
      }
    }
    
    
    

    I have to admit I never had the time to teach my self in VS code. I am learning as I am using it. Many gaps ....

    So many new tools to learn every day ...

    Zephyr and nRF Connect among them...

    Do your magic please

    Regards

  • vorrias said:

    Nope, same problem even when ncs directory opened in VS

    I meant the other way around: there should be no ncs folder selected. Otherwise I believe it find one you have there and assume you just want to stick to that.

    I've tried installing it using toolchain manager on an Ubuntu 22 atleast now, with toolchain manager v1.5.1, and that worked fine. Could you try downloading the latest version of nRF Connect for Desktop in case you do not have that?

    vorrias said:

    I have to admit I never had the time to teach my self in VS code. I am learning as I am using it. Many gaps ....

    So many new tools to learn every day ...

    Zephyr and nRF Connect among them...

    No worries, that is the best way to learn.

    Regards,

    Elfving

  • Hi Elfving

    Today I managed to install SDK v2.7 on Ubuntu 20.04.6 LTS.
    I think the problem was an unseen popped window to give admin pass.
    After that everything went smoothly.
    Later in the afternoon I will try it in Ubuntu 24 LTS in my home laptop.
    I see that 2.7.0 tool-chain  is experimental in VS. Is that a problem?


    Regards
    Vasilis

Reply Children
  • vorrias said:
    Today I managed to install SDK v2.7 on Ubuntu 20.04.6 LTS.

    Great! Glad to hear it!

    vorrias said:

    I see that 2.7.0 tool-chain  is experimental in VS. Is that a problem?

    Considering the major changes in what is supported in NCS 2.7 (the 54 series for instance) we unfortunately haven't gotten VSC to support all of them. Due to this, there are some limitations as to what you can do in VSC for 2.7. I think that is mainly related to dts changes using the GUI. For more info, see here.

    Regards,

    Elfving

Related