package nginx-core 1.10.3-0ubuntu0.16.04.2 failed to install/upgrade: le sous-processus script post-installation installé a retourné une erreur de sortie d'état 1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nginx (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
thank's
ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: nginx-core 1.10.3-
ProcVersionSign
Uname: Linux 4.4.0-122-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.16
Architecture: amd64
Date: Thu May 3 10:06:47 2018
ErrorMessage: le sous-processus script post-installation installé a retourné une erreur de sortie d'état 1
InstallationDate: Installed on 2017-01-02 (486 days ago)
InstallationMedia: Xubuntu 16.04.1 LTS "Xenial Xerus" - Release amd64 (20160719)
RelatedPackageV
dpkg 1.18.4ubuntu1.4
apt 1.2.26
SourcePackage: nginx
Title: package nginx-core 1.10.3-
UpgradeStatus: No upgrade log present (probably fresh install)
From the terminal log: system/ nginx.service; enabled; vendor preset: enabled) /usr/sbin/ nginx -g daemon on; master_process on; [0;1;31m( code=exited, status= 1/FAILURE) [0m /usr/sbin/ nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.
invoke-rc.d: initscript nginx, action "start" failed.
[0;1;31m●[0m nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (/lib/systemd/
Active: [0;1;31mfailed[0m (Result: exit-code) since jeu. 2018-05-03 10:06:47 CEST; 4ms ago
Process: 32008 ExecStart=
Process: 32004 ExecStartPre=
mai 03 10:06:46 greg-OptiPlex-9020 nginx[32008]: nginx: [emerg] listen() to [::]:80, backlo...e) service: Control process exited, code=...=1[0m service: Unit entered failed state.[0m service: Failed with result 'exit-code'.[0m
mai 03 10:06:46 greg-OptiPlex-9020 nginx[32008]: nginx: [emerg] listen() to 0.0.0.0:80, bac...e)
mai 03 10:06:46 greg-OptiPlex-9020 nginx[32008]: nginx: [emerg] listen() to [::]:80, backlo...e)
mai 03 10:06:47 greg-OptiPlex-9020 nginx[32008]: nginx: [emerg] listen() to 0.0.0.0:80, bac...e)
mai 03 10:06:47 greg-OptiPlex-9020 nginx[32008]: nginx: [emerg] listen() to [::]:80, backlo...e)
mai 03 10:06:47 greg-OptiPlex-9020 nginx[32008]: nginx: [emerg] still could not bind()
mai 03 10:06:47 greg-OptiPlex-9020 systemd[1]: [0;1;39mnginx.
mai 03 10:06:47 greg-OptiPlex-9020 systemd[1]: [0;1;31mFailed to start A high performance web serve...r.[0m
mai 03 10:06:47 greg-OptiPlex-9020 systemd[1]: [0;1;39mnginx.
mai 03 10:06:47 greg-OptiPlex-9020 systemd[1]: [0;1;39mnginx.
Unfortunately the logs are truncated and prevent us from having a good idea about what happened. It looks like it's about listening to port 80, maybe there is another service listening there already?
Could you please try:
sudo apt update
sudo apt -f install
If it still fails, then please show the output of:
sudo systemctl status nginx
sudo netstat -anp
Thanks