Trouble installing nrf commandline tools on Debian

I'm trying to install nrf-command-line-tools_10.17.0_amd64.deb on an up to date Debian 11, but dpkg always fails with this error:

# dpkg -i nrf-command-line-tools_10.17.0_amd64.deb
Sélection du paquet nrf-command-line-tools précédemment désélectionné.
(Lecture de la base de données... 326042 fichiers et répertoires déjà installés.)
Préparation du dépaquetage de nrf-command-line-tools_10.17.0_amd64.deb ...
Dépaquetage de nrf-command-line-tools (10.17.0) ...
Paramétrage de nrf-command-line-tools (10.17.0) ...
dpkg: erreur: dpkg frontend lock was locked by another process with pid 6161
Note: removing the lock file is always wrong, and can end up damaging the
locked area and the entire system. See <wiki.debian.org/.../FAQ>.
dpkg: erreur de traitement du paquet nrf-command-line-tools (--install) :
 installed nrf-command-line-tools package post-installation script subprocess returned error exit status 2
Des erreurs ont été rencontrées pendant l'exécution :
 nrf-command-line-tools

I can't see any process 6161. Any help will be greatly appreciated :-)

Vincent

Parents
  • Hello Vincent,

    Another forum-user recently also reported this, but we are still looking into the root cause.
    The other forum-user were seemingly able to work around it by editing their postint script, like described in their ticket.
    Hopefully this workaround will work for you as well, while we patch the .deb.

    Best regards,
    Karl

  • Thank you for the answer and the link. I'm a bit angry, nobody has verified the package before it's publication! I'm really sorry to say that but the postinst script is crap. There's a unattended fi at line 22, there are rpm commands which is nonsense in a debian package, lines 12 to 21 are repeated at 24 to 33 (??!) and last there's no 'segger' folder under /opt/nrf-command-line-tools/share/ so  the dpkg --install can only fail.

    Coming from ST world, I wanted to give Nordic a try since I have a nRF52840 dev board. Bad start.

    Since I'm a developer I know there can be bugs here or there that can pass verification and tests, but in this case just trying to install the package would have avoid this issue.

    Regards

    Vincent

  • Hello again, Vincent

    I am very sorry to hear that this is the state of the postinst script - I personally have very little debian experience myself, but this does indeed sound pretty grave based on your description.
    I will update my internal ticket to the developers to contain your comment.
    We always wholeheartedly welcome feedback like this, so that we can improve - thank you for the valuable insight!

    I understand how this would constitute a bad start to your Nordic evaluation, but I hope and trust that it all will be better from here once you get into working with the nRF Connect SDK! :)

    Please do not hesitate to open another ticket if you should encounter any other issues or questions in the future!

    Best regards,
    Karl

Reply
  • Hello again, Vincent

    I am very sorry to hear that this is the state of the postinst script - I personally have very little debian experience myself, but this does indeed sound pretty grave based on your description.
    I will update my internal ticket to the developers to contain your comment.
    We always wholeheartedly welcome feedback like this, so that we can improve - thank you for the valuable insight!

    I understand how this would constitute a bad start to your Nordic evaluation, but I hope and trust that it all will be better from here once you get into working with the nRF Connect SDK! :)

    Please do not hesitate to open another ticket if you should encounter any other issues or questions in the future!

    Best regards,
    Karl

Children
Related