Advertisement
Guest User

Untitled

a guest
Aug 6th, 2021
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.28 KB | None | 0 0
  1. $ sudo apt-get install nginx
  2. Reading package lists... Done
  3. Building dependency tree
  4. Reading state information... Done
  5. The following packages were automatically installed and are no longer required:
  6. apt-tools liboska libsdio
  7. Use 'sudo apt autoremove' to remove them.
  8. The following additional packages will be installed:
  9. nginx-common nginx-core
  10. Suggested packages:
  11. fcgiwrap nginx-doc
  12. The following NEW packages will be installed
  13. nginx nginx-common nginx-core
  14. 0 to upgrade, 3 to newly install, 0 to remove and 286 not to upgrade.
  15. Need to get 0 B/460 kB of archives.
  16. After this operation, 1,485 kB of additional disk space will be used.
  17. Do you want to continue? [Y/n] Y
  18. Preconfiguring packages ...
  19. Selecting previously unselected package nginx-common.
  20. (Reading database ... 173338 files and directories currently installed.)a
  21. Preparing to unpack .../nginx-common_1.10.3-0ubuntu0.16.04.5_all.deb ...
  22. Unpacking nginx-common (1.10.3-0ubuntu0.16.04.5) ...
  23. Selecting previously unselected package nginx-core.
  24. Preparing to unpack .../nginx-core_1.10.3-0ubuntu0.16.04.5_amd64.deb ...
  25. Unpacking nginx-core (1.10.3-0ubuntu0.16.04.5) ...
  26. Selecting previously unselected package nginx.
  27. Preparing to unpack .../nginx_1.10.3-0ubuntu0.16.04.5_all.deb ...
  28. Unpacking nginx (1.10.3-0ubuntu0.16.04.5) ...
  29. Processing triggers for systemd (229-4ubuntu21.1) ...
  30. Processing triggers for ureadahead (0.100.0-19) ...
  31. ureadahead will be reprofiled on next reboot
  32. Processing triggers for ufw (0.35-0ubuntu2) ...
  33. Setting up nginx-common (1.10.3-0ubuntu0.16.04.5) ...
  34. Setting up nginx-core (1.10.3-0ubuntu0.16.04.5) ...
  35. Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.
  36. invoke-rc.d: initscript nginx, action "start" failed.
  37. ● nginx.service - A high performance web server and a reverse proxy server
  38. Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
  39. Active: failed (Result: exit-code) since Sat 2021-08-07 10:12:03 IST; 21ms ago
  40. Process: 1824 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=1/FAILURE)
  41. Process: 1820 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
  42.  
  43. Aug 07 10:12:02 test-pc nginx[1824]: nginx: [emerg] listen() to [::]:80, backlog 511 failed (98: Address already in use)
  44. Aug 07 10:12:02 test-pc nginx[1824]: nginx: [emerg] listen() to 0.0.0.0:80, backlog 511 failed (98: Address already in use)
  45. Aug 07 10:12:02 test-pc nginx[1824]: nginx: [emerg] listen() to [::]:80, backlog 511 failed (98: Address already in use)
  46. Aug 07 10:12:03 test-pc nginx[1824]: nginx: [emerg] listen() to 0.0.0.0:80, backlog 511 failed (98: Address already in use)
  47. Aug 07 10:12:03 test-pc nginx[1824]: nginx: [emerg] listen() to [::]:80, backlog 511 failed (98: Address already in use)
  48. Aug 07 10:12:03 test-pc nginx[1824]: nginx: [emerg] still could not bind()
  49. Aug 07 10:12:03 test-pc systemd[1]: nginx.service: Control process exited, code=exited status=1
  50. Aug 07 10:12:03 test-pc systemd[1]: Failed to start A high performance web server and a reverse proxy server.
  51. Aug 07 10:12:03 test-pc systemd[1]: nginx.service: Unit entered failed state.
  52. Aug 07 10:12:03 test-pc systemd[1]: nginx.service: Failed with result 'exit-code'.
  53. dpkg: error processing package nginx-core (--configure):
  54. subprocess installed post-installation script returned error exit status 1
  55. dpkg: dependency problems prevent configuration of nginx:
  56. nginx depends on nginx-core (>= 1.10.3-0ubuntu0.16.04.5) | nginx-full (>= 1.10.3-0ubuntu0.16.04.5) | nginx-light (>= 1.10.3-0ubuntu0.16.04.5) | nginx-extras (>= 1.10.3-0ubuntu0.16.04.5); however:
  57. Package nginx-core is not configured yet.
  58. Package nginx-full is not installed.
  59. Package nginx-light is not installed.
  60. Package nginx-extras is not installed.
  61. nginx depends on nginx-core (<< 1.10.3-0ubuntu0.16.04.5.1~) | nginx-full (<< 1.10.3-0ubuntu0.16.04.5.1~) | nginx-light (<< 1.10.3-0ubuntu0.16.04.5.1~) | nginx-extras (<< 1.10.3-0ubuntu0.16.04.5.1~); however:
  62. Package nginx-core is not configured yet.
  63. Package nginx-full is not installed.
  64. Package nginx-light is not installed.
  65. Package nginx-extras is not installed.
  66.  
  67. dpkg: error processing package nginx (--configure):
  68. dependency problems - leaving unconfigured
  69. Processing triggers for systemd (229-4ubuntu21.1) ...
  70. No apport report written because the error message indicates it's a follow-up error from a previous failure.
  71. Processing triggers for ureadahead (0.100.0-19) ...
  72. Processing triggers for ufw (0.35-0ubuntu2) ...
  73. Errors were encountered while processing:
  74. nginx-core
  75. nginx
  76. E: Sub-process /usr/bin/dpkg returned an error code (1)
  77. test1@test-pc:~$ dpkg -l | grep nginx
  78. iU nginx 1.10.3-0ubuntu0.16.04.5 all small, powerful, scalable web/proxy server
  79. ii nginx-common 1.10.3-0ubuntu0.16.04.5 all small, powerful, scalable web/proxy server - common files
  80. iF nginx-core 1.10.3-0ubuntu0.16.04.5 amd64 nginx web/proxy server (core version)
  81.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement