Unable to install SDK via VS Code

I have installed nRF connect 2025.9.732 on my VS code Version: 1.103.2 on Ubuntu 22.04.

I am able to install the toolchains successful but I am getting this weird error message

[14:05:44] nrfutil-sdk-manager install,v3.1.0,--sdk-path,/home/akshay/ncs/v3.1.0,--type,nrf: Install toolchain v3.1.0
[14:05:44] nrfutil-sdk-manager install,v3.1.0,--sdk-path,/home/akshay/ncs/v3.1.0,--type,nrf: Toolchain with version v3.1.0 already installed: success
[14:05:44] nrfutil-sdk-manager install,v3.1.0,--sdk-path,/home/akshay/ncs/v3.1.0,--type,nrf: Calculating SDK checksum
[14:05:53] nrfutil-sdk-manager install,v3.1.0,--sdk-path,/home/akshay/ncs/v3.1.0,--type,nrf: Verified previously download file: success
[14:05:53] nrfutil-sdk-manager install,v3.1.0,--sdk-path,/home/akshay/ncs/v3.1.0,--type,nrf: Unpack SDK v3.1.0
[14:06:06] nrfutil-sdk-manager install,v3.1.0,--sdk-path,/home/akshay/ncs/v3.1.0,--type,nrf: Unpacked SDK tarball: success
[west]: usage: west [-h] [-z ZEPHYR_BASE] [-v] [-q] [-V] <command> ...
[west]: west: unknown command "zephyr-export"; workspace /home/akshay/ncs/v3.1.0 does not define this extension command -- try "west help" and "west -vv status"

[west]: exited with code 1.

[west]: FATAL ERROR: failed manifest import in zephyr (zephyr):
[west]:   Failed importing "west.yml" from revision "ncs-v3.1.0"
[west]:   Hint: zephyr must be cloned, owned by the user and its manifest-rev ref must point to a commit with the import data
[west]:   To fix, run "west update. If it still fails, try "west -vv ..."

[west]: exited with code 1.

[west]: FATAL ERROR: failed manifest import in zephyr (zephyr):
[west]:   Failed importing "west.yml" from revision "ncs-v3.1.0"
[west]:   Hint: zephyr must be cloned, owned by the user and its manifest-rev ref must point to a commit with the import data
[west]:   To fix, run "west update. If it still fails, try "west -vv ..."

[west]: exited with code 1.

I have west installed globally via pip, but I do NOT have ZEPHYR os installed in ~/zephyrproject.

I am not sure what that error is, do I have to go to /home/akshay/ncs/v3.1.0 and type west update?

  • Hi Akshay,

    Not sure why this happens, 

    You have the correct topdir, SDK is correctly downloaded, checksum verified and unpacked. We see no reason why west zephyr-export would fail. As established earlier it fails because west does not find zephyr-export subcommand which is implemented in /home/akshay/ncs/v3.1.1/zephyr/scripts/west_commands/.

    Does you have access to github? It is not necessary to install with the sdk-manager.

    When scrolling a bit down in the "Install SDK" choices in VS Code it is still possible to install directly from Github:

     -Priyanka

  • Sorry for the late reply.

    We have already tried this way but that does nothing except give errors. I can see that the west_commands exists, but I have no idea why it can't reach it.

    I can't see the GitHub based install, sometimes it shows up and sometimes it doesn't. I can't see anything logged in the VS Code console.

    Is there a command in sdk-manager I can use?

  • I just had a similar issue. Mine turned out to be an problem with git. When I had the project open in GitKraken the same time I opened VS Code, I got a bunch of these error messages:

    west]: FATAL ERROR: failed manifest import in zephyr (zephyr):
    [west]:   Failed importing "west.yml" from revision "ncs-v3.0.2"
    [west]:   Hint: zephyr must be cloned, owned by the user and its manifest-rev ref must point to a commit with the import data
    [west]:   To fix, run "west update. If it still fails, try "west -vv ..."

    As soon as I closed GitKraken and reloaded the project in VS code, the error messages went away. I was able to repeat this scenario multiple times. Now I do most of the git work inside VS Code and only use GitKraken when I need a better UI.

  • GitHub versions are there, just scroll down please. If they are not there, then there's no network, or git is not available.

     -Priyanka

  • I fixed it by reinstalling Ubuntu to 24.04. It wasn't working in Ubuntu 22.04. Not sure why. Anyway its working now.

Related