which is different from other instances of package libllvm18

Asked by Guilherme Prado Dantas

When performing an update at the system's request, I received this warning about one of the packages that was not updated:

<html>Failed to install package:<br/><br/>Error while installing package: trying to overwrite shared &apos;/usr/lib/llvm-18/lib/libLLVM.so.1&apos;, which is different from other instances of package libllvm18</html>

Has anyone had the same problem and knows how to solve it? I have no idea what might be happening and if this could break the system.

Operating System: Ubuntu Studio 24.04
KDE Plasma Version: 5.27.11
KDE Frameworks Version: 5.115.0
Qt Version: 5.15.13
Kernel Version: 6.8.0-47-lowlatency (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 5600GT with Radeon Graphics
Memory: 27.3 GiB of RAM
Graphics Processor: AMD Radeon Graphics
Manufacturer: Micro-Star International Co., Ltd.
Product Name: MS-7C95
System Version: 1.0

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Guilherme Prado Dantas
Solved:
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

For diagnostic purposes please provide the output that you receive for the following commands:

uname -a
lsb_release -crid
dpkg -l | grep libllvm18

Revision history for this message
Guilherme Prado Dantas (pseudo-producer) said :
#2

uname -a

Linux MSI 6.8.0-47-lowlatency #47.1-Ubuntu SMP PREEMPT_DYNAMIC Mon Oct 7 15:01:17 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

lsb_release -crid

No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 24.04.1 LTS
Release: 24.04
Codename: noble

dpkg -l | grep libllvm18

ii libllvm18:amd64 1:18.1.3-1ubuntu1 amd64 Modular compiler and toolchain technologies, runtime library
ii libllvm18:i386 1:18.1.3-1ubuntu1 i386 Modular compiler and toolchain technologies, runtime library

Revision history for this message
Guilherme Prado Dantas (pseudo-producer) said :
#3

I had the idea of ​​restarting the desktop and entering the recovery mode that appears in GRUB. I chose the option to repair broken packages and this "LIBLLVM18" was located. From what was said after the repair, it seems that it solved it, since the error warning no longer appears during the update, but I'm not sure.

Revision history for this message
Manfred Hampl (m-hampl) said :
#4

It seems that you cannot install the amd64 (64bit) version and the i386 (32bit) version at the same time (which looks like a bug to me).

If you repeat the
dpkg -l | grep libllvm18
command, what output do you receive now?

A possible solution might be uninstalling the i386 version (sudo apt purge libllvm18:i386) but I do not know what effects that may have on your system.

Revision history for this message
Guilherme Prado Dantas (pseudo-producer) said :
#6

Thanks for the observations! I will be more attentive to this type of event!