Impossible d'installer Apache2, Php et mysql
Résolu
r.odet
-
barnabe0057 Messages postés 14455 Date d'inscription Statut Contributeur Dernière intervention -
barnabe0057 Messages postés 14455 Date d'inscription Statut Contributeur Dernière intervention -
Bonjour,
je tente en vain d'installer sur un VPS apache 2, php5, mysql et phpmyadmin
étant débutant je ne sais pas pourquoi lorsque j'installe apache ou php j'obtient cela :
je vous remercie de votre réponse
Cordialement
R.Odet
je tente en vain d'installer sur un VPS apache 2, php5, mysql et phpmyadmin
étant débutant je ne sais pas pourquoi lorsque j'installe apache ou php j'obtient cela :
Reading package lists... Done
Building dependency tree
Reading state information... Done
apache2 is already the newest version.
The following packages were automatically installed and are no longer required:
libexif12 libgd2-xpm libgusb2 libieee1284-3 libsane-extras libsane-extras-common libusb-1.0-0 libv4l-0 libv4lconvert0
Use 'apt-get autoremove' to remove them.
The following packages will be upgraded:
php-pear
1 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
44 not fully installed or removed.
Need to get 0 B/284 kB of archives.
After this operation, 2180 kB of additional disk space will be used.
(Reading database ... 42191 files and directories currently installed.)
Preparing to replace php-pear 1:1.10.1+submodules+notgz-8.1 (using .../php-pear_1%3a1.10.1+submodules+notgz-8.1_all.deb) ...
dpkg-maintscript-helper: error: command symlink_to_dir is unknown
Hint: upgrading dpkg to a newer version might help.
Usage: dpkg-maintscript-helper <command> <parameter>... -- <maintainer-script-parameter>...
Commands:
supports <command>
Returns 0 (success) if the given command is supported, 1 otherwise.
rm_conffile <conffile> [<last-version> [<package>]]
Remove obsolete conffile. Must be called in preinst, postinst and
postrm.
mv_conffile <old-conf> <new-conf> [<last-version> [<package>]]
Rename a conffile. Must be called in preinst, postinst and postrm.
help
Display this usage information.
dpkg: error processing /var/cache/apt/archives/php-pear_1%3a1.10.1+submodules+notgz-8.1_all.deb (--unpack):
subprocess new pre-installation script returned error exit status 1
dpkg-maintscript-helper: error: command symlink_to_dir is unknown
Hint: upgrading dpkg to a newer version might help.
Usage: dpkg-maintscript-helper <command> <parameter>... -- <maintainer-script-parameter>...
Commands:
supports <command>
Returns 0 (success) if the given command is supported, 1 otherwise.
rm_conffile <conffile> [<last-version> [<package>]]
Remove obsolete conffile. Must be called in preinst, postinst and
postrm.
mv_conffile <old-conf> <new-conf> [<last-version> [<package>]]
Rename a conffile. Must be called in preinst, postinst and postrm.
help
Display this usage information.
dpkg: error while cleaning up:
subprocess new post-removal script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/php-pear_1%3a1.10.1+submodules+notgz-8.1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
je vous remercie de votre réponse
Cordialement
R.Odet
A voir également:
- Impossible d'installer Apache2, Php et mysql
- Installer clavier arabe - Télécharger - Divers Web & Internet
- Installer windows 10 sans compte microsoft - Guide
- Installer chromecast sur tv - Guide
- Installer windows 10 gratuitement - Accueil - Mise à jour
- Installer ccleaner - Télécharger - Nettoyage
2 réponses
Bonjour,
Essaie ces commandes :
Essaie ces commandes :
apt-get autoremove
apt-get autoremove --purge apache2 php5 php-pear
apt-get update && apt-get upgrade
Pourquoi tu as des dépôts pour Debian 7 et pour Debian 8 ?
Il faut supprimer les dépôts pour Debian 8 (Jessie) puisque apparemment tu es sous Debian 7 (Wheezy), pour cela édite le fichier des dépôts avec la commande suivante :
Il faut supprimer les dépôts pour Debian 8 (Jessie) puisque apparemment tu es sous Debian 7 (Wheezy), pour cela édite le fichier des dépôts avec la commande suivante :
nano /etc/apt/sources.list
Voici le résultat de mon apt-get update :
Merci
apt-get update
Get:1 http://security.debian.org wheezy/updates Release.gpg [1554 B]
Hit http://ftp.debian.org wheezy Release.gpg
Get:2 http://security.debian.org wheezy/updates Release [39.0 kB]
Hit http://ftp.debian.org wheezy Release
Hit http://ftp.debian.org wheezy/main amd64 Packages
Hit http://ftp.debian.org wheezy/contrib amd64 Packages
Hit http://ftp.debian.org wheezy/non-free amd64 Packages
Get:3 http://security.debian.org wheezy/updates/main amd64 Packages [457 kB]
Hit http://ftp.debian.org wheezy/main i386 Packages
Hit http://ftp.debian.org wheezy/contrib i386 Packages
Hit http://ftp.debian.org wheezy/non-free i386 Packages
Hit http://ftp.debian.org wheezy/contrib Translation-en
Hit http://ftp.debian.org wheezy/main Translation-en
Hit http://packages.dotdeb.org wheezy-php56 Release.gpg
Hit http://ftp.debian.org wheezy/non-free Translation-en
Hit http://packages.dotdeb.org wheezy-php56 Release
Get:4 http://security.debian.org wheezy/updates/contrib amd64 Packages [14 B]
Get:5 http://security.debian.org wheezy/updates/non-free amd64 Packages [14 B]
Get:6 http://security.debian.org wheezy/updates/main i386 Packages [460 kB]
Hit http://packages.dotdeb.org wheezy-php56/all Sources
Hit http://packages.dotdeb.org wheezy-php56/all amd64 Packages
Hit http://packages.dotdeb.org wheezy-php56/all i386 Packages
Get:7 http://security.debian.org wheezy/updates/contrib i386 Packages [14 B]
Ign http://packages.dotdeb.org wheezy-php56/all Translation-en
Get:8 http://security.debian.org wheezy/updates/non-free i386 Packages [14 B]
Get:9 http://security.debian.org wheezy/updates/contrib Translation-en [14 B]
Get:10 http://security.debian.org wheezy/updates/main Translation-en [251 kB]
Get:11 http://security.debian.org wheezy/updates/non-free Translation-en [14 B]
Fetched 1208 kB in 3s (348 kB/s)
Reading package lists... Done
Merci
j'ai essayé les commandes et j'obtient cela :
Doit-je réessayer d'installer Apache, Php... ?
Merci
Cordialement