Installation php

Résolu/Fermé
tarekham Messages postés 51 Date d'inscription jeudi 19 octobre 2017 Statut Membre Dernière intervention 30 avril 2019 - 12 déc. 2017 à 14:30
tarekham Messages postés 51 Date d'inscription jeudi 19 octobre 2017 Statut Membre Dernière intervention 30 avril 2019 - 14 déc. 2017 à 10:13
Bonjour,

lorsque j'essaye d'installer php sur mon serveur avec "apt-get install libapache2-mod-php5", j'ai le message suivant :

Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libapache2-mod-php5 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libapache2-mod-php5' has no installation candidate


Comment je peux corriger ça s'il vous plaît ?

Merci

A voir également:

1 réponse

Reivax962 Messages postés 3671 Date d'inscription jeudi 16 juin 2005 Statut Membre Dernière intervention 11 février 2021 1 011
12 déc. 2017 à 14:35
Bonjour,

Php 5 est obsolète et n'est plus disponible dans les dépôts officiels...
Essaie simplement
sudo apt-get install libapache2-mod-php php

Sinon, tu dois encore pouvoir trouver des PPA qui le proposent. Tu as vraiment besoin de la version 5 ?

Xavier
0
tarekham Messages postés 51 Date d'inscription jeudi 19 octobre 2017 Statut Membre Dernière intervention 30 avril 2019
12 déc. 2017 à 14:48
non je veux juste installer php peu importe la version.
0
tarekham Messages postés 51 Date d'inscription jeudi 19 octobre 2017 Statut Membre Dernière intervention 30 avril 2019
12 déc. 2017 à 14:50
voilà ce que j'ai eu :

# sudo apt-get install libapache2-mod-php php
Reading package lists... Done
Building dependency tree
Reading state information... Done
php is already the newest version (1:7.0+49).
php set to manually installed.
The following package was automatically installed and is no longer required:
libintl-perl
Use 'sudo apt autoremove' to remove it.
The following NEW packages will be installed:
libapache2-mod-php
0 upgraded, 1 newly installed, 0 to remove and 7 not upgraded.
Need to get 5,168 B of archives.
After this operation, 16.4 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Err:1 http://ftp.fr.debian.org/debian/ stable/main amd64 libapache2-mod-php all 1 :7.0+49
Temporary failure resolving 'ftp.fr.debian.org'
E: Failed to fetch http://ftp.fr.debian.org/debian/pool/main/p/php-defaults/liba pache2-mod-php_7.0+49_all.deb Temporary failure resolving 'ftp.fr.debian.org'
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-mis sing?
0
Reivax962 Messages postés 3671 Date d'inscription jeudi 16 juin 2005 Statut Membre Dernière intervention 11 février 2021 1 011
12 déc. 2017 à 14:59
Euh... Ça c'est bizarre...
Tu as essayé de relancer
sudo apt-get update
comme il te le propose ?
0
tarekham Messages postés 51 Date d'inscription jeudi 19 octobre 2017 Statut Membre Dernière intervention 30 avril 2019
12 déc. 2017 à 15:02
voilà ce que j'ai :

# sudo apt-get update
Err:1 http://ftp.fr.debian.org/debian/ stable InRelease
Temporary failure resolving 'ftp.fr.debian.org'
Err:2 https://www.debian.org/security/ stable/updates InRelease
Temporary failure resolving 'security.debian.org'
Err:3 http://ftp.fr.debian.org/debian/ stable-updates InRelease
Temporary failure resolving 'ftp.fr.debian.org'
Reading package lists... Done
W: Failed to fetch http://ftp.fr.debian.org/debian/dists/stable/InRelease Temporary failure resolving 'ftp.fr.debian.org'
W: Failed to fetch http://security-cdn.debian.org/dists/stable/updates/InRelease Temporary failure resolving 'security.debian.org'
W: Failed to fetch http://ftp.fr.debian.org/debian/dists/stable-updates/InRelease Temporary failure resolving 'ftp.fr.debian.org'
W: Some index files failed to download. They have been ignored, or old ones used instead.
0
tarekham Messages postés 51 Date d'inscription jeudi 19 octobre 2017 Statut Membre Dernière intervention 30 avril 2019
14 déc. 2017 à 09:31
j'ai la meme erreur quand je veux installer sysstat par exemple :
apt-get install sysstat
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
libintl-perl
Use 'apt autoremove' to remove it.
The following additional packages will be installed:
libsensors4
Suggested packages:
lm-sensors isag
The following NEW packages will be installed:
libsensors4 sysstat
0 upgraded, 2 newly installed, 0 to remove and 7 not upgraded.
Need to get 414 kB of archives.
After this operation, 1,489 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Err:1 http://ftp.fr.debian.org/debian/ stable/main amd64 libsensors4 amd64 1:3.4. 0-4
Temporary failure resolving 'ftp.fr.debian.org'
Err:2 http://ftp.fr.debian.org/debian/ stable/main amd64 sysstat amd64 11.4.3-2
Temporary failure resolving 'ftp.fr.debian.org'
E: Failed to fetch http://ftp.fr.debian.org/debian/pool/main/l/lm-sensors/libsen sors4_3.4.0-4_amd64.deb Temporary failure resolving 'ftp.fr.debian.org'
E: Failed to fetch http://ftp.fr.debian.org/debian/pool/main/s/sysstat/sysstat_1 1.4.3-2_amd64.deb Temporary failure resolving 'ftp.fr.debian.org'
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-mis sing?



quelqu'un a une idée sur cette erreur ?
0