2024-06-11 10:35 PM - last edited on 2024-06-11 11:51 PM by Peter BENSCH
I'm getting the following error when trying to install STM32CubeIDE in Ubuntu 22.04:
dpkg: error processing archive /home/m4l490n/Downloads/makeself_dir_Dg5j3M/segger-jlink-udev-rules-7.94h-linux-all.deb (--unpack):
trying to overwrite '/etc/udev/rules.d/99-jlink.rules', which is also in package jlink 7.9611
Errors were encountered while processing:
/home/m4l490n/Downloads/makeself_dir_Dg5j3M/segger-jlink-udev-rules-7.94h-linux-all.deb
N: Download is performed unsandboxed as root as file '/home/m4l490n/Downloads/makeself_dir_Dg5j3M/segger-jlink-udev-rules-7.94h-linux-all.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
E: Sub-process /usr/bin/dpkg returned an error code (1)
Does anyone have an idea of what's going on?
2026-01-17 6:06 AM
I have the same problem with stm32ide 1.19 and ubuntu 22.04.
Even if deleting the /etc/udev/rules.d/99-jlink file the error stays the same
2026-01-17 6:42 AM
For me the solution was to remove a former jlink package with
sudo dpkg -r --force-depends jlink
then the installation ran without problems