Skip to main content
JCorm
Associate II
May 2, 2019
Question

STMCUBEIDE: installer failed on Ubuntu 18.04 with a dependency error

  • May 2, 2019
  • 9 replies
  • 6121 views

Tried installing the stm32cubeide on ubuntu 18.04 but installer failed

 $ sudo bash st-stm32cubeide_1.0.0_2872_20190423_2022_amd64.deb_bundle.sh 
Creating directory st-stm32cubeide_1.0.0_2872_20190423_2022_amd64.deb_bundle.sh.root
Verifying archive integrity... All good.
Uncompressing STM32CubeIDE installer 100% 
Selecting previously unselected package segger-jlink-udev-rules.
(Reading database ... 318526 files and directories currently installed.)
Preparing to unpack segger-jlink-udev-rules-6.44c-3-linux-all.deb ...
Unpacking segger-jlink-udev-rules (6.44c-3) ...
dpkg: error processing archive segger-jlink-udev-rules-6.44c-3-linux-all.deb (--install):
 trying to overwrite '/etc/udev/rules.d/99-jlink.rules', which is also in package jlink 6.422
Preparing to unpack st-stlink-server-1.2.0-1.2.g88ba147-linux-amd64.deb ...
stlink-server: no process found
Unpacking st-stlink-server (1.2.0-1.2.g88ba147) over (1.1.1-2) ...
Selecting previously unselected package st-stlink-udev-rules.
Preparing to unpack st-stlink-udev-rules-1.0.0-linux-all.deb ...
Unpacking st-stlink-udev-rules (1.0.0) ...
Selecting previously unselected package st-stm32cubeide-1.0.0.
Preparing to unpack st-stm32cubeide_1.0.0_2872_20190423_2022_amd64.deb ...
STMicroelectronics Software License Agreement
 
SLA0048 Rev4/March 2018
 
Please indicate your acceptance or NON-acceptance by selecting "I ACCEPT" or "I 
DO NOT ACCEPT" as indicated below in the media.
 
...
 
I ACCEPT (y) / I DO NOT ACCEPT (N) [N/y] y
License accepted.
Unpacking st-stm32cubeide-1.0.0 (1.0.0-2872-20190423-2022-1) ...
Setting up st-stlink-server (1.2.0-1.2.g88ba147) ...
Setting up st-stlink-udev-rules (1.0.0) ...
dpkg: dependency problems prevent configuration of st-stm32cubeide-1.0.0:
 st-stm32cubeide-1.0.0 depends on segger-jlink-udev-rules; however:
 Package segger-jlink-udev-rules is not installed.
 
dpkg: error processing package st-stm32cubeide-1.0.0 (--install):
 dependency problems - leaving unconfigured
Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.2) ...
Processing triggers for gnome-menus (3.13.3-11ubuntu1.1) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Errors were encountered while processing:
 segger-jlink-udev-rules-6.44c-3-linux-all.deb
 st-stm32cubeide-1.0.0

This topic has been closed for replies.

9 replies

johnjohn9105
Associate II
May 5, 2019

I had no problem installing STMCubeIDE on Lubuntu 18.04 on which I'd already installed Atollic. Maybe my previous installation of Atollic installed the Segger package which allowed the STMCubeIDE to install problem-free. Maybe try that as a workaround?

Markus GIRDLAND
ST Employee
May 6, 2019

This is a problem for sure, I'll need to write a ticket about it.

A workaround for this would be to either uninstall the jlink package and then rerun the deb_bundle or download the generic Linux .sh file.

PVyle.1202
Visitor II
November 12, 2019

Any idea when we might receive a fix?

Markus GIRDLAND
ST Employee
November 14, 2019

Can't say for sure. It's a whole legal process as well with the right to distribute J-Link packages etc.

I know we have a developer that's looking at it but I don't think a solution is ready any time soon.

JCorm
JCormAuthor
Associate II
May 6, 2019

Okay was able to get it to sucessfully install by removing the jlink package. Hopefully this didn't break some other program.

 $ sudo apt-get remove jlink 
Reading package lists... Done
Building dependency tree 
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 st-stm32cubeide-1.0.0 : Depends: segger-jlink-udev-rules but it is not installable
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
 $ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree 
Reading state information... Done
Correcting dependencies... Done
The following packages will be REMOVED:
 st-stm32cubeide-1.0.0
0 upgraded, 0 newly installed, 1 to remove and 42 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 338648 files and directories currently installed.)
Removing st-stm32cubeide-1.0.0 (1.0.0-2872-20190423-2022-1) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.2) ...
Processing triggers for gnome-menus (3.13.3-11ubuntu1.1) ...
 $ sudo apt-get remove jlink 
Reading package lists... Done
Building dependency tree 
Reading state information... Done
The following packages will be REMOVED:
 jlink
0 upgraded, 0 newly installed, 1 to remove and 42 not upgraded.
After this operation, 61.0 GB disk space will be freed.
Do you want to continue? [Y/n] 
(Reading database ... 318528 files and directories currently installed.)
Removing jlink (6.422) ...
 10:32:42 jcormier tmp 0d 1h 23m 
 $ sudo bash st-stm32cubeide_1.0.0_2872_20190423_2022_amd64.deb_bundle.sh 
Creating directory st-stm32cubeide_1.0.0_2872_20190423_2022_amd64.deb_bundle.sh.root
Verifying archive integrity... All good.
Uncompressing STM32CubeIDE installer 100% 
(Reading database ... 318193 files and directories currently installed.)
Preparing to unpack segger-jlink-udev-rules-6.44c-3-linux-all.deb ...
Unpacking segger-jlink-udev-rules (6.44c-3) ...
Preparing to unpack st-stlink-server-1.2.0-1.2.g88ba147-linux-amd64.deb ...
stlink-server: no process found
Unpacking st-stlink-server (1.2.0-1.2.g88ba147) over (1.2.0-1.2.g88ba147) ...
Preparing to unpack st-stlink-udev-rules-1.0.0-linux-all.deb ...
Unpacking st-stlink-udev-rules (1.0.0) over (1.0.0) ...
Selecting previously unselected package st-stm32cubeide-1.0.0.
Preparing to unpack st-stm32cubeide_1.0.0_2872_20190423_2022_amd64.deb ...
STMicroelectronics Software License Agreement
 
SLA0048 Rev4/March 2018
 
Please indicate your acceptance or NON-acceptance by selecting "I ACCEPT" or "I DO NOT ACCEPT" as indicated below in the media.
...
 
I ACCEPT (y) / I DO NOT ACCEPT (N) [N/y] y
License accepted.
Unpacking st-stm32cubeide-1.0.0 (1.0.0-2872-20190423-2022-1) ...
Setting up segger-jlink-udev-rules (6.44c-3) ...
Setting up st-stlink-server (1.2.0-1.2.g88ba147) ...
Setting up st-stlink-udev-rules (1.0.0) ...
Setting up st-stm32cubeide-1.0.0 (1.0.0-2872-20190423-2022-1) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.2) ...
Processing triggers for gnome-menus (3.13.3-11ubuntu1.1) ...
Processing triggers for mime-support (3.60ubuntu1) ...

July 10, 2019

Thank you, I had the same issue and this helped. (Kubuntu 19.04, x64 with the latest updates.)

Isidre Sole
Associate II
May 8, 2019

Same issue on Debian ... fortunatelly it was fixed just removing the jlink package.

Pascal Bodin
Associate II
May 28, 2019

Same issue on Linux Mint 18.3 (based on Ubuntu 16.04). And same fix :).

DLeko
Associate
June 16, 2019

Can you both explain what do you mean by "removing jlink package"?7

In Ubuntu 18.04 package "segger-jlink-udev-rules" installed during installation of cubeide (file st-stm32cubeide_1.0.1_3139_20190612_1256_amd64.deb).

If I do fix missing packages via "apt install -f", remove "segger-jlink-udev-rules" and try to install cubeide again same error appears: saying that cubeide package depends on "st-stlink-udev-rules" package but this package does not installed. I could not find that package.

JCorm
JCormAuthor
Associate II
June 16, 2019
I just ran sudo apt-get remove jlink
Pascal Bodin
Associate II
June 17, 2019

I did the same: sudo apt-get remove jlink. This will trigger the uninstallation of STM32CubeID. Rerun the installation script.

Ozone
Principal
June 17, 2019

I dare to say jlink udev rules are not an actual dependency for CubeIDE.

It should install and run without "another" debug pod driver, let alone the "/udev/rules" text file.

Main problem seems in the installation.

For Rowley/Crossworks, I had to add all the required udev rules myself manually.

DLeko
Associate
June 17, 2019

My case little different.

There no jlink package in my system.

I've just extract content of install package (by adding --noexec option).

Then I tryed to install st-stlink-udev-rules package and I've received following output:

(Reading database ... 392348 files and directories currently installed.)

Preparing to unpack st-stlink-udev-rules-1.0.0-linux-all.deb ...

Unpacking st-stlink-udev-rules (1.0.0) ...

dpkg: error processing archive st-stlink-udev-rules-1.0.0-linux-all.deb (--install):

 trying to overwrite '/etc/udev/rules.d/49-stlinkv2.rules', which is also in package qstlink2 1.2.3~0~wily

Errors were encountered while processing:

 st-stlink-udev-rules-1.0.0-linux-all.deb

So there was conflict with package qstlink2 (ST-Link V2 Client based on QT) in my system.