0 Pluspunkte 0 Minuspunkte

Wenn ich versuche das Paket libapache2-mod-php7.4 zu installieren wird das Paket nicht gefunden. Wie kann ich es installieren?

root@ubuntu:~# apt update
Get:1 http://security.ubuntu.com/ubuntu xenial-security InRelease [99.8 kB]
Hit:2 http://archive.ubuntu.com/ubuntu xenial InRelease
Get:3 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages [913 kB]
Hit:4 http://archive.ubuntu.com/ubuntu xenial-updates InRelease
Fetched 1013 kB in 2s (392 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
root@ubuntu:~# apt install apache2 mariadb-server libapache2-mod-php7.4
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libapache2-mod-php7.4
E: Couldn't find any package by glob 'libapache2-mod-php7.4'
E: Couldn't find any package by regex 'libapache2-mod-php7.4'
root@ubuntu:~# cat /etc/apt/sources.list
# Generated by distrobuilder
deb http://archive.ubuntu.com/ubuntu xenial main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu xenial-updates main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu xenial-security main restricted universe multiverse
root@ubuntu:~#
von  

1 Antwort

0 Pluspunkte 0 Minuspunkte

Du musst das entsprechende Repository in deine sources.list hinzufügen

add-apt-repository ppa:ondrej/php
von (396 Punkte)  
Das gibt einen Fehler aus

root@ubuntu:~# add-apt-repository ppa:ondrej/php
bash: add-apt-repository: command not found
Dann installiere das Paket software-properties-common
Der selbe Fehler

root@ubuntu:~# apt install apache2 mariadb-server libapache2-mod-php7.4
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libapache2-mod-php7.4
E: Couldn't find any package by glob 'libapache2-mod-php7.4'
E: Couldn't find any package by regex 'libapache2-mod-php7.4'
Dann kannst du versuchen es aus den Standardquellen zu installieren.

apt install apache2 mariadb-server php libapache2-mod-php