Ubuntu1804安装STM32CubeIDE出现的冲突

1. 首先在官网下载工具的压缩包

https://my.st.com/content/my_st_com/zh/products/development-tools/software-development-tools/stm32-software-development-tools/stm32-ides/stm32cubeide.license=1582037754154.product=STM32CubeIDE-DEB.version=1.2.0.html

因为系统是ubuntu(debain系),所以我下载的版本是debain,STM32CubeIDE-DEB

2. 解压文件得到一个

st-stm32cubeide_1.2.0_5034_20200108_0926_amd64.deb_bundle.sh 这样的脚本文件

3. 打开终端,输入sudo sh ./st-stm32cubeide_1.2.0_5034_20200108_0926_amd64.deb_bundle.sh

4. 安装程序进行,要点击接受license

5. 安装出现问题:


I ACCEPT (y) / I DO NOT ACCEPT (N) [N/y] y
License accepted.
Unpacking st-stm32cubeide-1.2.0 (1.2.0-5034-20200108-0926-1) ...
Setting up st-stlink-server (1.2.0-5) ...
Setting up st-stlink-udev-rules (1.0.2-2) ...
dpkg: dependency problems prevent configuration of st-stm32cubeide-1.2.0:
 st-stm32cubeide-1.2.0 depends on segger-jlink-udev-rules; however:
  Package segger-jlink-udev-rules is not installed.

dpkg: error processing package st-stm32cubeide-1.2.0 (--install):
 dependency problems - leaving unconfigured
Processing triggers for gnome-menus (3.13.3-11ubuntu1.1) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.2) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Errors were encountered while processing:
 segger-jlink-udev-rules-6.56a-linux-all.deb
 st-stm32cubeide-1.2.0

因为之前安装过jlink的缘故,可能和ide需要安装的调试器有冲突所以必须先卸载jlink。

6. remove jlink

jxwang@:~/Desktop$ 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.2.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).

卸载jlink出现错误。

7. 按照提示输入 sudo apt --fix-broken install 即可,install 后不要加软件名,apt程序会自动修复依赖

jxwang@:~/Desktop$ sudo apt-get --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.2.0
0 upgraded, 0 newly installed, 1 to remove and 122 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 ... 220014 files and directories currently installed.)
Removing st-stm32cubeide-1.2.0 (1.2.0-5034-20200108-0926-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) ...

8. 再次卸载jlink,成功

jxwang@:~/Desktop$ 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 122 not upgraded.
After this operation, 60.0 GB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 198875 files and directories currently installed.)
Removing jlink (6.402) ...

9. 再次安装stm32cubeide,成功!!!

......
......
I ACCEPT (y) / I DO NOT ACCEPT (N) [N/y] y
License accepted.
Unpacking st-stm32cubeide-1.2.0 (1.2.0-5034-20200108-0926-1) ...
Setting up segger-jlink-udev-rules (6.56a) ...
Setting up st-stlink-server (1.2.0-5) ...
Setting up st-stlink-udev-rules (1.0.2-2) ...
Setting up st-stm32cubeide-1.2.0 (1.2.0-5034-20200108-0926-1) ...
Processing triggers for gnome-menus (3.13.3-11ubuntu1.1) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.2) ...
Processing triggers for mime-support (3.60ubuntu1) ...

打开软件,才发现这个也是套着eclipse做的一个ide,但是好歹是官方的,应该兼容性会好点,也会更便利,希望ST以后能好好更新这个软件,如果使用中还遇到问题,会继续更新。

 

 

你可能感兴趣的:(Stm32开发)