Thursday, May 9, 2024
 Popular · Latest · Hot · Upcoming
-2
rated 0 times [  -2] [ 0]  / answers: 1 / hits: 3833  / 2 Years ago, tue, june 28, 2022, 6:25:53

I tried to install php5 via



sudo apt-get install php5


on my ubuntu 14.04 machine. It didn't install properly, because there were problems with the package apache2.



So if I try to install anything, I just get



Die folgenden Pakete haben unerfüllte Abhängigkeiten:
libapache2-mod-php5 : Hängt ab von: apache2 (>= 2.4) soll aber nicht installiert werden
E: Unerfüllte Abhängigkeiten. Versuchen Sie »apt-get -f install« ohne Angabe eines Pakets (oder geben Sie eine Lösung an).


Or in english (roughly translated)



The following packages have unmet dependencies:
libapache2-mod-php5 : Depending: apache2 (>= 2.4) but shall not be installed
E: Unmet dependencies. Try "apt-get -f install" without a package.


When I run the the recommended command, I get



Vorbereitung zum Entpacken von .../apache2_2.4.7-1ubuntu4.1_amd64.deb ...
/var/lib/dpkg/tmp.ci/preinst: Zeile 118: a2query: Kommando nicht gefunden.
dpkg: Fehler beim Bearbeiten des Archivs /var/cache/apt/archives/apache2_2.4.7-1ubuntu4.1_amd64.deb (--unpack):
Unterprozess neues pre-installation-Skript gab den Fehlerwert 1 zurück
Fehler traten auf beim Bearbeiten von: /var/cache/apt/archives/apache2_2.4.7-1ubuntu4.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


Again, a poor translation:



Preparing extraction .../apache2_2.4.7-1ubuntu4.1_amd64.deb ...
/var/lib/dpkg/tmp.ci/preinst: Line 118: a2query: Command not found.
dpkg: Error with processing the archive /var/cache/apt/archives/apache2_2.4.7-1ubuntu4.1_amd64.deb (--unpack):
Subprocess new pre-installation-Skript returned error value 1
Errors occured while processing: /var/cache/apt/archives/apache2_2.4.7-1ubuntu4.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


How can I fix that now? Any installation requires me to finish this apache installation stuff, which never works. Any help appreciated.


More From » 14.04

 Answers
7

As ElefantPrice indicated in a comment, https://superuser.com/questions/716194/cant-install-apache2-on-debian-jessie has the solution.



There was an existing directory /etc/apache2 (actually, I don't know why). Deleted it, so it worked.


[#23918] Wednesday, June 29, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
gigglcept

Total Points: 113
Total Questions: 105
Total Answers: 125

Location: Christmas Island
Member since Wed, Jan 13, 2021
3 Years ago
gigglcept questions
Mon, Jul 5, 21, 19:38, 3 Years ago
Thu, May 27, 21, 13:35, 3 Years ago
Tue, Feb 8, 22, 09:59, 2 Years ago
Fri, Dec 16, 22, 12:32, 1 Year ago
;