stlink-gui command not found

In this troubleshooting guide we learn how to fix stlink-gui command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

stlink-gui: command not found

or when using sudo you get the following error message

sudo: stlink-gui: command not found

In Ubuntu stlink-gui is provided by stlink-gui package.

stlink-gui is:

Flashing tools for STMicroelectronics STM32VL and STM32L. The transport layers STLINKv1 and STLINKv2 are supported.

This package contains a GUI tool for stlink.

To fix this problem, we can install more using the command below.

sudo apt-get -y install stlink-gui

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install stlink-gui.

sudo apt -y install stlink-gui

Or if you have aptitude installed you can use the following command.

sudo aptitude install stlink-gui

Summary

In this tutorial we learn how to fix stlink-gui command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.