安装任何软件包问题

安装任何软件包问题

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

root@saeed-ubuntu:/etc# apt install jcal

Reading 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. ● nginx.service
- 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
     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)

آقۇست 06 12:36:24 saeed-ubuntu systemd[1]: Starting A high performance web server and a reverse proxy server... آقۇست 06 12:36:24 saeed-ubuntu nginx[20763]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) آقۇست 06 12:36:25 saeed-ubuntu nginx[20763]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) آقۇست 06 12:36:25 saeed-ubuntu nginx[20763]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) آقۇست 06 12:36:26 saeed-ubuntu nginx[20763]: nginx: [emerg] bind() to
0.0.0.0:80 failed (98: Address already in use) آقۇست 06 12:36:26 saeed-ubuntu nginx[20763]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) آقۇست 06 12:36:27 saeed-ubuntu nginx[20763]: nginx: [emerg] still could not bind() آقۇست 06 12:36:27 saeed-ubuntu systemd[1]: nginx.service: Control process exited, code=exited status=1 آقۇست 06 12:36:27 saeed-ubuntu systemd[1]: nginx.service: Failed with result 'exit-code'. آقۇست 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.

dpkg: 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.
                                                                                                          dpkg: dependency problems prevent configuration of nginx:  nginx depends on nginx-core (<< 1.14.0-0ubuntu1.1~) | nginx-full (<<
1.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 (>=
1.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.

dpkg: 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.

No apport report written because MaxReports is reached already
                                                              dpkg: error processing package libpam-winbind:amd64 (--configure):  dependency problems - leaving unconfigured No apport report written because MaxReports is reached already
                                                              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.

dpkg: error processing package set (--configure):  dependency problems
- leaving unconfigured No apport report written because MaxReports is reached already
                                                              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.

dpkg: error processing package libnss-winbind:amd64 (--configure):  dependency problems - leaving unconfigured No apport report written because MaxReports is reached already
                                                              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)

答案1

试试这个,先生,

sudo apt purge nginx*
sudo apt-get autoclean && sudo apt-get autoremove
sudo apt-get install nginx*
sudo dpkg --configure -a

我希望这有帮助。

答案2

sudo apt-get remove nginx nginx-common nginx-core*

删除所有 nginx 并仅保留配置文件

sudo apt-get autoremove

删除 nginx 使用的所有依赖项

sudo apt-get install nginx

重新安装 Nginx。

相关内容