Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 25/11/2016, à 04:26

alfirdaous

Service apache2 non reconnu

Bonjour,

J'ai essayé d'installé le mod-evasiv depuis ce tutoriel, mais il m'a crashé apache2, au moment du redémarrage d'apache2, j'obtiens:

env: apache2ctl: No such file or directory

J'ai essaye de le réinstaller:

# apt-get install apache2
Reading package lists... Done
Building dependency tree       
Reading state information... Done
apache2 is already the newest version.
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 apache2 : Depends: apache2-mpm-worker (= 2.2.22-1ubuntu1.11) but it is not going to be installed or
                    apache2-mpm-prefork (= 2.2.22-1ubuntu1.11) but it is not going to be installed or
                    apache2-mpm-event (= 2.2.22-1ubuntu1.11) but it is not going to be installed or
                    apache2-mpm-itk (= 2.2.22-1ubuntu1.11) but it is not going to be installed
           Depends: apache2.2-common (= 2.2.22-1ubuntu1.11) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

J'ai suivi avec la commande apt-get -f install

Do you want to continue [Y/n]? 
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LC_CTYPE = "UTF-8",
        LANG = "en_GB.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
(Reading database ... 194092 files and directories currently installed.)
Unpacking apache2.2-bin (from .../apache2.2-bin_2.2.22-1ubuntu1.11_amd64.deb) ...
dpkg: error processing /var/cache/apt/archives/apache2.2-bin_2.2.22-1ubuntu1.11_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/apache2/modules/mod_authnz_ldap.so', which is also in package apache2-bin 2.4.16-4+deb.sury.org~precise+4
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Unpacking apache2.2-common (from .../apache2.2-common_2.2.22-1ubuntu1.11_amd64.deb) ...
dpkg: error processing /var/cache/apt/archives/apache2.2-common_2.2.22-1ubuntu1.11_amd64.deb (--unpack):
 trying to overwrite '/usr/share/apache2/default-site/index.html', which is also in package apache2-data 2.4.16-4+deb.sury.org~precise+4
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Unpacking apache2-mpm-worker (from .../apache2-mpm-worker_2.2.22-1ubuntu1.11_amd64.deb) ...
dpkg: error processing /var/cache/apt/archives/apache2-mpm-worker_2.2.22-1ubuntu1.11_amd64.deb (--unpack):
 trying to overwrite '/usr/sbin/apache2', which is also in package apache2-bin 2.4.16-4+deb.sury.org~precise+4
Processing triggers for ureadahead ...
Processing triggers for ufw ...
Errors were encountered while processing:
 /var/cache/apt/archives/apache2.2-bin_2.2.22-1ubuntu1.11_amd64.deb
 /var/cache/apt/archives/apache2.2-common_2.2.22-1ubuntu1.11_amd64.deb
 /var/cache/apt/archives/apache2-mpm-worker_2.2.22-1ubuntu1.11_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

En testant:

# service apache2 status
apache2: unrecognized service

Apres j'ai essayé avec:

# dpkg-reconfigure -a
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LC_CTYPE = "UTF-8",
        LANG = "en_GB.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable

Voici ma configuration:

# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 12.04.5 LTS
Release:        12.04
Codename:       precise

Merci a vous

Hors ligne

#2 Le 25/11/2016, à 09:36

kholo

Re : Service apache2 non reconnu

salut,

perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LC_CTYPE = "UTF-8",
        LANG = "en_GB.UTF-8"

il est fraîchement installé ton ubuntu ?
tu as installé les paquets de langues ?
veux tu ne conserver que l'anglais ou mettre le français ?

Hors ligne

#3 Le 27/11/2016, à 13:59

alfirdaous

Re : Service apache2 non reconnu

Ça fait longtemps que le serveur est installé,  ces derniers jours je rencontre des problèmes de langue, j'aimerais utiliser l'anglais seule

Hors ligne

#4 Le 27/11/2016, à 20:05

kholo

Re : Service apache2 non reconnu

alors le mieux est de reconfigurer tout en anglais :
tout est expliqué ici ou ;
il faut laisser tout ce qui va vers en-us ou en-gb (mais se tenir à l'un OU l'autre, c'est plus propre).

sinon avec l'interface graphique c'est plus simple

Paramètres système / Prise en charge des langues / bouton : Installer supprimer des langues
tu laisses juste l'anglais (cases à cocher)
Prise en charge des langues

Hors ligne

#5 Le 29/11/2016, à 04:28

alfirdaous

Re : Service apache2 non reconnu

Et pour le problème d'apache2, que dois-je faire?

Hors ligne

#6 Le 29/11/2016, à 19:05

kholo

Re : Service apache2 non reconnu

A part la langue, le soucis doit être là :

debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable

je pense que :

sudo fuser -v -k /var/cache/debconf/config.dat

ou

sudo fuser -vik /var/cache/debconf/config.dat

devrait régler le problème

Hors ligne

#7 Le 30/11/2016, à 05:14

alfirdaous

Re : Service apache2 non reconnu

voici le résultat de update et -f instal après l'exécution des 2 commandes ci-dessus:

##### apt-get update && apt-get -y upgrade


Fetched 2314 kB in 40s (56.6 kB/s)                                                                                         
Reading package lists... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
 apache2 : Depends: apache2-mpm-worker (= 2.2.22-1ubuntu1.11) but it is not installed or
                    apache2-mpm-prefork (= 2.2.22-1ubuntu1.11) but it is not installed or
                    apache2-mpm-event (= 2.2.22-1ubuntu1.11) but it is not installed or
                    apache2-mpm-itk (= 2.2.22-1ubuntu1.11) but it is not installed
           Depends: apache2.2-common (= 2.2.22-1ubuntu1.11) but it is not installed
E: Unmet dependencies. Try using -f.




##### apt-get -f install

Do you want to continue [Y/n]?
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LC_CTYPE = "UTF-8",
        LANG = "en_GB.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
(Reading database ... 194092 files and directories currently installed.)
Unpacking apache2.2-bin (from .../apache2.2-bin_2.2.22-1ubuntu1.11_amd64.deb) ...
dpkg: error processing /var/cache/apt/archives/apache2.2-bin_2.2.22-1ubuntu1.11_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/apache2/modules/mod_authnz_ldap.so', which is also in package apache2-bin 2.4.16-4+deb.sury.org~precise+4
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Unpacking apache2.2-common (from .../apache2.2-common_2.2.22-1ubuntu1.11_amd64.deb) ...
dpkg: error processing /var/cache/apt/archives/apache2.2-common_2.2.22-1ubuntu1.11_amd64.deb (--unpack):
 trying to overwrite '/usr/share/apache2/default-site/index.html', which is also in package apache2-data 2.4.16-4+deb.sury.org~precise+4
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Unpacking apache2-mpm-worker (from .../apache2-mpm-worker_2.2.22-1ubuntu1.11_amd64.deb) ...
dpkg: error processing /var/cache/apt/archives/apache2-mpm-worker_2.2.22-1ubuntu1.11_amd64.deb (--unpack):
 trying to overwrite '/usr/sbin/apache2', which is also in package apache2-bin 2.4.16-4+deb.sury.org~precise+4
Processing triggers for ureadahead ...
Processing triggers for ufw ...
Errors were encountered while processing:
 /var/cache/apt/archives/apache2.2-bin_2.2.22-1ubuntu1.11_amd64.deb
 /var/cache/apt/archives/apache2.2-common_2.2.22-1ubuntu1.11_amd64.deb
 /var/cache/apt/archives/apache2-mpm-worker_2.2.22-1ubuntu1.11_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Hors ligne

#8 Le 30/11/2016, à 11:03

kholo

Re : Service apache2 non reconnu

bon, donc il est clair, on regarde de ce côté :

Errors were encountered while processing:
 /var/cache/apt/archives/apache2.2-bin_2.2.22-1ubuntu1.11_amd64.deb
 /var/cache/apt/archives/apache2.2-common_2.2.22-1ubuntu1.11_amd64.deb
 /var/cache/apt/archives/apache2-mpm-worker_2.2.22-1ubuntu1.11_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

on vire les paquets

sudo dpkg -P apache2.2-bin
sudo dpkg -P apache2.2-common
sudo dpkg -P apache2-mpm-worker

puis on réinstalle

sudo apt-get install apache2.2-bin
sudo apt-get install apache2.2-common
sudo apt-get install apache2-mpm-worker

Hors ligne

#9 Le 01/12/2016, à 04:34

alfirdaous

Re : Service apache2 non reconnu

voici le résultat:

##### sudo dpkg -P apache2.2-bin
dpkg: warning: there's no installed package matching apache2.2-bin

##### sudo dpkg -P apache2.2-common
dpkg: warning: there's no installed package matching apache2.2-common

##### sudo dpkg -P apache2-mpm-worker
dpkg: warning: there's no installed package matching apache2-mpm-worker

##### sudo apt-get install apache2.2-bin
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 apache2 : Depends: apache2-mpm-worker (= 2.2.22-1ubuntu1.11) but it is not going to be installed or
                    apache2-mpm-prefork (= 2.2.22-1ubuntu1.11) but it is not going to be installed or
                    apache2-mpm-event (= 2.2.22-1ubuntu1.11) but it is not going to be installed or
                    apache2-mpm-itk (= 2.2.22-1ubuntu1.11) but it is not going to be installed
           Depends: apache2.2-common (= 2.2.22-1ubuntu1.11) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

Hors ligne

#10 Le 01/12/2016, à 16:37

kholo

Re : Service apache2 non reconnu

ah ? mé qué s qui dit ?

The following packages have unmet dependencies:
 apache2 : Depends: apache2-mpm-worker (= 2.2.22-1ubuntu1.11) but it is not going to be installed or
                    apache2-mpm-prefork (= 2.2.22-1ubuntu1.11) but it is not going to be installed or
                    apache2-mpm-event (= 2.2.22-1ubuntu1.11) but it is not going to be installed or
                    apache2-mpm-itk (= 2.2.22-1ubuntu1.11) but it is not going to be installed
           Depends: apache2.2-common (= 2.2.22-1ubuntu1.11) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

Depends: apache2.2-common

et là :

dpkg: warning: there's no installed package matching apache2.2-common

donc, tu peux déjà faire...

sudo apt-get -f install apache2.2-common

voire la totale :

sudo apt-get -f install apache2.2-common apache2-mpm-worker apache2-mpm-prefork apache2-mpm-event apache2-mpm-itk

ensuite, il restera, à défaut d'un dépannage, la purge et réinstallation complète de apache...
c'est peut être le bon moment pour passer en 14.04 ; faire un backup et une full install !

Hors ligne