ubuntuusers.de

Ubuntu 26.04 PHP upgrade

Status: Gelöst | Ubuntu-Version: Ubuntu 26.04 (Resolute Raccoon)
Antworten |

JM

Anmeldungsdatum:
7. Juni 2026

Beiträge: 2

Hallo, ich bin neu hier und nicht super erfahren mit Ubuntu. Ich habe folgendes Problem: Nach alt update und alt upgrade erhalte ich stets die Meldung, das 16 Upgrades von PHP 8.5 zurückgehalten werden.

Was muss ich tun, damit die Abhängigkeiten wieder stimmen?

LG Jonas

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
upgrade php8.5-common
Calculating upgrade... Error!   
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

Unsatisfied dependencies:
 php8.5-bcmath : Depends: php8.5-common (= 8.5.4-0ubuntu1) but 8.5.4-0ubuntu1.1 is to be installed
 php8.5-bz2 : Depends: php8.5-common (= 8.5.4-0ubuntu1) but 8.5.4-0ubuntu1.1 is to be installed
 php8.5-cli : Depends: php8.5-common (= 8.5.4-0ubuntu1) but 8.5.4-0ubuntu1.1 is to be installed
 php8.5-curl : Depends: php8.5-common (= 8.5.4-0ubuntu1) but 8.5.4-0ubuntu1.1 is to be installed
 php8.5-fpm : Depends: php8.5-common (= 8.5.4-0ubuntu1) but 8.5.4-0ubuntu1.1 is to be installed
 php8.5-gd : Depends: php8.5-common (= 8.5.4-0ubuntu1) but 8.5.4-0ubuntu1.1 is to be installed
 php8.5-gmp : Depends: php8.5-common (= 8.5.4-0ubuntu1) but 8.5.4-0ubuntu1.1 is to be installed
 php8.5-intl : Depends: php8.5-common (= 8.5.4-0ubuntu1) but 8.5.4-0ubuntu1.1 is to be installed
 php8.5-ldap : Depends: php8.5-common (= 8.5.4-0ubuntu1) but 8.5.4-0ubuntu1.1 is to be installed
 php8.5-mbstring : Depends: php8.5-common (= 8.5.4-0ubuntu1) but 8.5.4-0ubuntu1.1 is to be installed
 php8.5-mysql : Depends: php8.5-common (= 8.5.4-0ubuntu1) but 8.5.4-0ubuntu1.1 is to be installed
 php8.5-readline : Depends: php8.5-common (= 8.5.4-0ubuntu1) but 8.5.4-0ubuntu1.1 is to be installed
 php8.5-sqlite3 : Depends: php8.5-common (= 8.5.4-0ubuntu1) but 8.5.4-0ubuntu1.1 is to be installed
 php8.5-xml : Depends: php8.5-common (= 8.5.4-0ubuntu1) but 8.5.4-0ubuntu1.1 is to be installed
 php8.5-zip : Depends: php8.5-common (= 8.5.4-0ubuntu1) but 8.5.4-0ubuntu1.1 is to be installed
Error: Unable to satisfy dependencies. Reached two conflicting assignments:
   1. php8.5-common:amd64=8.5.4-0ubuntu1 is selected for install because:
      1. php8.5-ldap:amd64=8.5.4-0ubuntu1 is selected for install
      2. php8.5-ldap:amd64=8.5.4-0ubuntu1 Depends php8.5-common (= 8.5.4-0ubuntu1)
   2. php8.5-common:amd64=8.5.4-0ubuntu1 is not selected for install because:
      1. php8.5-common:amd64=8.5.4-0ubuntu1.1 is selected as an upgrade
      2. php8.5-common:amd64=8.5.4-0ubuntu1.1 conflicts with other versions of itself

apt upgrade php8.5-bcmath
Calculating upgrade... Error!   
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

Unsatisfied dependencies:
 php8.5-bcmath : Depends: php8.5-common (= 8.5.4-0ubuntu1.1) but 8.5.4-0ubuntu1 is to be installed
Error: Unable to satisfy dependencies. Reached two conflicting assignments:
   1. php8.5-common:amd64=8.5.4-0ubuntu1.1 is selected as an upgrade because:
      1. php8.5-bcmath:amd64=8.5.4-0ubuntu1.1 is selected as an upgrade
      2. php8.5-bcmath:amd64=8.5.4-0ubuntu1.1 Depends php8.5-common (= 8.5.4-0ubuntu1.1)
   2. php8.5-common:amd64=8.5.4-0ubuntu1.1 is not selected for install because:
      1. php8.5-common:amd64=8.5.4-0ubuntu1 is selected for install
      2. php8.5-common:amd64=8.5.4-0ubuntu1.1 conflicts with other versions of itself

Bearbeitet von sh4711:

Bitte verwende in Zukunft Codeblöcke, um die Übersicht im Forum zu verbessern!

Moderiert von Thomas_Do:

Kein Spam.

schwarzheit Team-Icon

Supporter
Avatar von schwarzheit

Anmeldungsdatum:
31. Dezember 2007

Beiträge: 9197

Bitte kopiere Terminalausgaben immer vollständig von Anfangs- bis einschliesslich Endprompt inkl. Befehlseingabe in einen Codeblock.
Das sieht dann so aus:

schwarzheit@hp455g9:~$ date
Sa 1. Nov 13:18:30 CET 2025
schwarzheit@hp455g9:~$ 

Führe folgenden Befehl in einem Terminal aus und zeige uns die vollständige Ein- und Ausgabe hier im Forum als Codeblock formatiert:

ls -la /etc/apt/sources.list.d/

(Benutze Kopieren Strg + C und Einfügen Strg + V . Im Terminal braucht es zusätzlich die ⇧ -Taste.)

JM

(Themenstarter)

Anmeldungsdatum:
7. Juni 2026

Beiträge: 2

@schwarzheit

Hallo nochmal, alles klar, ich gelobe Besserung!

habe das Problem mit Hilfe von KI mittlerweile gelöst. Die richtige Reihenfolge hat geholfen:

sudo apt install php8.5-common php8.5-bcmath php8.5-bz2 php8.5-cli php8.5-curl php8.5-fpm php8.5-gd php8.5-gmp php8.5-intl php8.5-ldap php8.5-mbstring php8.5-mysql php8.5-readline php8.5-sqlite3 php8.5-xml php8.5-zip

LG Jonas

Bearbeitet von schwarzheit:

Fullquote entfernt. Bitte benutze keine kompletten Zitate. Lies dazu Zitate & Verhaltenskodex/Fullquote.

von.wert

Anmeldungsdatum:
23. Dezember 2020

Beiträge: 14668

JM schrieb:

habe das Problem mit Hilfe von KI mittlerweile gelöst.

Wenn Du das denkst...wohl auch, daß "KI" tatsächlich eine Intelligenz sei, vor allem, daß man der blind vertrauen könne.

Mir dieser Befehlszeile hast Du diese Pakete als manuell installiert markiert und damit eine Ursache für neue Probleme geschaffen.

Antworten |