Problem installing X.Org X Server: aka X11 - X Window System implementation

Creating a bug report/issue

Cant install X.Org X server

got this error

The following packages have unmet dependencies:
 cpp-12 : Depends: libmpc3 (>= 1.1.0) but it is not going to be installed
          Depends: libmpfr6 (>= 3.1.3) but it is not installable
 xserver-xorg-core : Depends: libunwind8 but it is not installable

Please fill the troubleshooting template:

### Creating a bug report/issue

[] I have searched the existing open and closed issues

#### Required Information
- DietPi version | `cat /boot/dietpi/.version`
- Distro version | `echo $G_DISTRO_NAME $G_RASPBIAN`
- Kernel version | `uname --all`
- Architecture | `dpkg --print-architecture`
- SBC model | `echo $G_HW_MODEL_NAME` or (EG: RPi3)
- Power supply used | (EG: 5V 1A RAVpower)
- SD card used | (EG: SanDisk ultra)

#### Additional Information (if applicable)
- Software title | (EG: Nextcloud)
- Was the software title installed freshly or updated/migrated?
- Can this issue be replicated on a fresh installation of DietPi?
<-- If you sent a "dietpi-bugreport", please paste the ID here -->
- Bug report ID | `echo $G_HW_UUID`

#### Steps to reproduce
<!-- Explain how to reproduce the issue -->
1. ...
2. ...

#### Expected behaviour
<!-- What SHOULD be happening? -->
- ...

#### Actual behaviour
<!-- What IS happening? -->
- ...

#### Extra details
<!-- Please post any extra details that might help solve the issue -->
- ...

G_DIETPI_VERSION_CORE=9
G_DIETPI_VERSION_SUB=5
G_DIETPI_VERSION_RC=1
G_GITBRANCH=‘master’
G_GITOWNER=‘MichaIng’
G_LIVE_PATCH_STATUS[0]=‘not applicable’

bookworm 0

Linux RPI4 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux

arm64

RPi 4 Model B (aarch64)

118994a3-f8a0-4777-9732-fb5c4f4a66e1

Cant install X.Org X Server “6”

Get error:

The following packages have unmet dependencies:
 cpp-12 : Depends: libmpc3 (>= 1.1.0) but it is not going to be installed
          Depends: libmpfr6 (>= 3.1.3) but it is not installable
 xserver-xorg-core : Depends: libunwind8 but it is not installable

Greetings

Can you share following

apt show libmpc3
# apt show libmpc3
Package: libmpc3
Version: 1.3.1-1
Priority: optional
Section: libs
Source: mpclib3
Maintainer: Debian GCC Maintainers <debian-gcc@lists.debian.org>
Installed-Size: 153 kB
Depends: libc6 (>= 2.17), libgmp10 (>= 2:6.2.1+dfsg1), libmpfr6 (>= 4.0.0)
Homepage: http://www.multiprecision.org/mpc/
Tag: role::shared-lib
Download-Size: 49.2 kB
APT-Sources: https://ftp.debian.org/debian bookworm/main arm64 Packages
Description: multiple precision complex floating-point library

how does it behave if you install it manually

apt update
apt install libmpc3 
apt update
apt install libmpc3

The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libmpc3 : Depends: libmpfr6 (>= 4.0.0) but it is not installable
E: Unable to correct problems, you have held broken packages.

ok let’s check next one

apt show libmpfr6 
apt show libmpfr6

Package: libmpfr6
State: not a real package (virtual)
N: Can't select candidate version from package libmpfr6 as it has no candidate
N: There is 1 additional record. Please use the '-a' switch to see it
N: No packages found
apt show -a libmpfr6

Package: libmpfr6
Version: 4.2.0-1
Priority: optional
Section: libs
Source: mpfr4
Maintainer: Debian GCC Maintainers <debian-gcc@lists.debian.org>
Installed-Size: 968 kB
Depends: libc6 (>= 2.17), libgmp10 (>= 2:6.2.1+dfsg1)
Breaks: libcgal13 (<< 4.11-2+b1), libflint-2.5.2 (<< 2.5.2-17+b2), libgiac0 (<< 1.2.3.57+dfsg1-2+b4), libgmp3 (<< 4.1.4-3), libmpc3 (<< 1.1.0-1~), libnormaliz3 (<< 3.5.1+ds-4), sagemath (<< 8.1-2+b2)
Homepage: https://www.mpfr.org/
Tag: role::shared-lib
Download-Size: 600 kB
APT-Sources: https://ftp.debian.org/debian bookworm/main arm64 Packages
Description: multiple precision floating-point computation

strange, can you share following

apt policy libmpfr6
apt policy libmpfr6

libmpfr6:
  Installed: (none)
  Candidate: (none)
  Version table:
     4.2.0-1 -30000
        500 https://ftp.debian.org/debian bookworm/main arm64 Packages

Something or someone reduced priority down to -30000. Therefore package is not going to be installed.

I have a feeling what is could be. Please check related configs:

for i in /etc/apt/preferences{,.d/*}
do
[[ -f "$i" ]] || continue
echo "$i:"
cat "$i"
done
 for i in /etc/apt/preferences{,.d/*}
do
[[ -f "$i" ]] || continue
echo "$i:"
cat "$i"
done

/etc/apt/preferences.d/apt-listbugs:

Explanation: Pinned by apt-listbugs at 2024-06-30 08:53:37 +0100
Explanation:   #1057355: libmpfr6: major formatted output function bugs with %c and the value 0
Package: libmpfr6
Pin: version *
Pin-Priority: -30000

Explanation: Pinned by apt-listbugs at 2024-06-30 08:53:37 +0100
Explanation:   #994510: libunwind8 abuses setcontext() causing SIGSEGV on i386 with glibc >= 2.32
Package: libunwind8
Pin: version *
Pin-Priority: -30000

Hope there is a solution indeed priority down to -30000

Of course. Looks like you have installed apt-listbugs

Have a look at similar GitHub post Cant install Netdata · Issue #7132 · MichaIng/DietPi · GitHub

1 Like

So what to do, remove apt-listbugs?

At lest to remove following

rm -R /etc/apt/preferences.d/apt-listbugs

I did ```

rm -R /etc/apt/preferences.d/apt-listbugs

and also removed apt-listbugs, all is working now, thx for all your help, i will do the same on all my other devices.

Your always a great help, and i still support the dietpi project and people working on it!

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.