安装任何软件包问题

sae*_*ali 2 package-management nginx

有谁知道有什么问题吗?我没有安装 nginx,但是当我尝试以下命令或 apt-get update 或很多其他东西时......它出现错误,这似乎与 nginx 有关!我的 ubuntu 是 18.04,在停电后我使用 sssd 将其加入到活动目录中,我无法使用广告帐户登录,这个问题开始了......而且当停电发生时,我正在使用 katoolin 安装一些软件包。

\n\n
root@saeed-ubuntu:/etc# apt install jcal\n\nReading package lists... Done Building dependency tree        Reading state information... Done jcal is already the newest version (0.4.1-2build1). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 7 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] y Setting up nginx-core (1.14.0-0ubuntu1) ... 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. \xe2\x97\x8f nginx.service\n- A high performance web server and a reverse proxy server    Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)    Active: failed (Result: exit-code) since Mon 2018-08-06 12:36:27 +0430; 13ms ago\n     Docs: man:nginx(8)   Process: 20763 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=1/FAILURE)   Process: 20758 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUCCESS)\n\n\xd8\xa2\xd9\x82\xdb\x87\xd8\xb3\xd8\xaa 06 12:36:24 saeed-ubuntu systemd[1]: Starting A high performance web server and a reverse proxy server... \xd8\xa2\xd9\x82\xdb\x87\xd8\xb3\xd8\xaa 06 12:36:24 saeed-ubuntu nginx[20763]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) \xd8\xa2\xd9\x82\xdb\x87\xd8\xb3\xd8\xaa 06 12:36:25 saeed-ubuntu nginx[20763]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) \xd8\xa2\xd9\x82\xdb\x87\xd8\xb3\xd8\xaa 06 12:36:25 saeed-ubuntu nginx[20763]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) \xd8\xa2\xd9\x82\xdb\x87\xd8\xb3\xd8\xaa 06 12:36:26 saeed-ubuntu nginx[20763]: nginx: [emerg] bind() to\n0.0.0.0:80 failed (98: Address already in use) \xd8\xa2\xd9\x82\xdb\x87\xd8\xb3\xd8\xaa 06 12:36:26 saeed-ubuntu nginx[20763]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) \xd8\xa2\xd9\x82\xdb\x87\xd8\xb3\xd8\xaa 06 12:36:27 saeed-ubuntu nginx[20763]: nginx: [emerg] still could not bind() \xd8\xa2\xd9\x82\xdb\x87\xd8\xb3\xd8\xaa 06 12:36:27 saeed-ubuntu systemd[1]: nginx.service: Control process exited, code=exited status=1 \xd8\xa2\xd9\x82\xdb\x87\xd8\xb3\xd8\xaa 06 12:36:27 saeed-ubuntu systemd[1]: nginx.service: Failed with result \'exit-code\'. \xd8\xa2\xd9\x82\xdb\x87\xd8\xb3\xd8\xaa 06 12:36:27 saeed-ubuntu systemd[1]: Failed to start A high performance web server and a reverse proxy server. dpkg: error processing package nginx-core (--configure):  installed nginx-core package post-installation script subprocess returned error exit status 1 Setting up samba-common-bin (2:4.8.2+dfsg-2) ... Checking smb.conf with testparm Load smb config files from /etc/samba/smb.conf WARNING: The "syslog" option is deprecated WARNING: Ignoring invalid value \'secret and keytab\' for parameter \'kerberos method\' Error loading services. dpkg: error processing package samba-common-bin (--configure):  installed samba-common-bin package post-installation script subprocess returned error exit status 1 dpkg: dependency problems prevent configuration of winbind:  winbind depends on samba-common-bin (= 2:4.8.2+dfsg-2); however:   Package samba-common-bin is not configured yet.\n\ndpkg: error processing package winbind (--configure):  dependency problems - leaving unconfigured No apport report written because the error message indicates its a followup error from a previous failure.\n                                                                                                          dpkg: dependency problems prevent configuration of nginx:  nginx depends on nginx-core (<< 1.14.0-0ubuntu1.1~) | nginx-full (<<\n1.14.0-0ubuntu1.1~) | nginx-light (<< 1.14.0-0ubuntu1.1~) | nginx-extras (<< 1.14.0-0ubuntu1.1~); however:   Package nginx-core is not configured yet.   Package nginx-full is not installed.   Package nginx-light is not installed.   Package nginx-extras is not installed. nginx depends on nginx-core (>= 1.14.0-0ubuntu1) | nginx-full (>=\n1.14.0-0ubuntu1) | nginx-light (>= 1.14.0-0ubuntu1) | nginx-extras (>= 1.14.0-0ubuntu1); however:   Package nginx-core is not configured yet.   Package nginx-full is not installed.   Package nginx-light is not installed.   Package nginx-extras is not installed.\n\ndpkg: error processing package nginx (--configure):  dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of libpam-winbind:amd64:  libpam-winbind:amd64 depends on winbind:any (= 2:4.8.2+dfsg-2); however:   Package winbind is not configured yet.\n\nNo apport report written because MaxReports is reached already\n                                                              dpkg: error processing package libpam-winbind:amd64 (--configure):  dependency problems - leaving unconfigured No apport report written because MaxReports is reached already\n                                                              dpkg: dependency problems prevent configuration of set:  set depends on nginx; however:   Package nginx is not configured yet.   Package nginx-core which provides nginx is not configured yet.\n\ndpkg: error processing package set (--configure):  dependency problems\n- leaving unconfigured No apport report written because MaxReports is reached already\n                                                              dpkg: dependency problems prevent configuration of libnss-winbind:amd64:  libnss-winbind:amd64 depends on winbind:any (= 2:4.8.2+dfsg-2); however:   Package winbind is not configured yet.\n\ndpkg: error processing package libnss-winbind:amd64 (--configure):  dependency problems - leaving unconfigured No apport report written because MaxReports is reached already\n                                                              Errors were encountered while processing:  nginx-core  samba-common-bin  winbind  nginx  libpam-winbind:amd64  set  libnss-winbind:amd64 E: Sub-process /usr/bin/dpkg returned an error code (1)\n
Run Code Online (Sandbox Code Playgroud)\n

abu*_*iri 5

试试这个,先生,

sudo apt purge nginx*
sudo apt-get autoclean && sudo apt-get autoremove
sudo apt-get install nginx*
sudo dpkg --configure -a
Run Code Online (Sandbox Code Playgroud)

我希望这有帮助。