‎2019-05-02 08:00 AM
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
‎2019-05-05 08:01 AM
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?
‎2019-05-06 07:02 AM
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.
‎2019-05-06 07:37 AM
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) ...
‎2019-05-08 07:18 AM
Same issue on Debian ... fortunatelly it was fixed just removing the jlink package.
‎2019-05-28 03:00 AM
Same issue on Linux Mint 18.3 (based on Ubuntu 16.04). And same fix 🙂.
‎2019-06-16 02:24 PM
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.
‎2019-06-16 02:48 PM
‎2019-06-16 09:50 PM
I did the same: sudo apt-get remove jlink. This will trigger the uninstallation of STM32CubeID. Rerun the installation script.
‎2019-06-16 10:11 PM
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.