[GH-ISSUE #113] Sub-process /usr/bin/dpkg returned an error code (1) #95

Open
opened 2026-02-26 04:30:30 +03:00 by kerem · 1 comment
Owner

Originally created by @aphive on GitHub (Dec 10, 2017).
Original GitHub issue: https://github.com/LionSec/katoolin/issues/113

Fresh install of Ubuntu Mate, all was working fine until I tried installing Kali Tools using this tool. Not sure if there is something that needs tweaked but it happened during the Information Gathering pack when I selected 0) Install all Information Gathering tools.

These are the errors I see:

Setting up nginx-full (1.13.6-2) ...
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 Sun 2017-12-10 15:17:50 CST; 6ms ago
     Docs: man:nginx(8)
  Process: 15245 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=1/FAILURE)
  Process: 15243 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUCCESS)

Dec 10 15:17:49 LittleLight nginx[15245]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
Dec 10 15:17:49 LittleLight nginx[15245]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Dec 10 15:17:49 LittleLight nginx[15245]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
Dec 10 15:17:50 LittleLight nginx[15245]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Dec 10 15:17:50 LittleLight nginx[15245]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
Dec 10 15:17:50 LittleLight nginx[15245]: nginx: [emerg] still could not bind()
Dec 10 15:17:50 LittleLight systemd[1]: nginx.service: Control process exited, code=exited status=1
Dec 10 15:17:50 LittleLight systemd[1]: Failed to start A high performance web server and a reverse proxy server.
Dec 10 15:17:50 LittleLight systemd[1]: nginx.service: Unit entered failed state.
Dec 10 15:17:50 LittleLight systemd[1]: nginx.service: Failed with result 'exit-code'.
dpkg: error processing package nginx-full (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of nginx:
 nginx depends on nginx-full (<< 1.13.6-2.1~) | nginx-light (<< 1.13.6-2.1~) | nginx-extras (<< 1.13.6-2.1~); however:
  Package nginx-full is not configured yet.
  Package nginx-light is not installed.
  Package nginx-extras is not installed.
 nginx depends on nginx-full (>= 1.13.6-2) | nginx-light (>= 1.13.6-2) | nginx-extras (>= 1.13.6-2); however:
  Package nginx-full is not configured yet.
  Package nginx-light is not installed.
  Package nginx-extras is not installed.

dpkg: error processing package nginx (--configure):
 dependency problems - leaving unconfigured
Setting up php7.0-sqlite3 (7.0.26-1) ...
No apport report written because the error message indicates its a followup error from a previous failure.
Setting up recon-ng (4.9.2-0kali2) ...
dpkg: dependency problems prevent configuration of set:
 set depends on nginx; however:
  Package nginx is not configured yet.
  Package nginx-full which provides nginx is not configured yet.

dpkg: error processing package set (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
 nginx-full
 nginx
 set
E: Sub-process /usr/bin/dpkg returned an error code (1)

Any help would be appreciated. Thanks.

Originally created by @aphive on GitHub (Dec 10, 2017). Original GitHub issue: https://github.com/LionSec/katoolin/issues/113 Fresh install of Ubuntu Mate, all was working fine until I tried installing Kali Tools using this tool. Not sure if there is something that needs tweaked but it happened during the Information Gathering pack when I selected **0) Install all Information Gathering tools**. These are the errors I see: ``` Setting up nginx-full (1.13.6-2) ... 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 Sun 2017-12-10 15:17:50 CST; 6ms ago Docs: man:nginx(8) Process: 15245 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=1/FAILURE) Process: 15243 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUCCESS) Dec 10 15:17:49 LittleLight nginx[15245]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use) Dec 10 15:17:49 LittleLight nginx[15245]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) Dec 10 15:17:49 LittleLight nginx[15245]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use) Dec 10 15:17:50 LittleLight nginx[15245]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) Dec 10 15:17:50 LittleLight nginx[15245]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use) Dec 10 15:17:50 LittleLight nginx[15245]: nginx: [emerg] still could not bind() Dec 10 15:17:50 LittleLight systemd[1]: nginx.service: Control process exited, code=exited status=1 Dec 10 15:17:50 LittleLight systemd[1]: Failed to start A high performance web server and a reverse proxy server. Dec 10 15:17:50 LittleLight systemd[1]: nginx.service: Unit entered failed state. Dec 10 15:17:50 LittleLight systemd[1]: nginx.service: Failed with result 'exit-code'. dpkg: error processing package nginx-full (--configure): subprocess installed post-installation script returned error exit status 1 dpkg: dependency problems prevent configuration of nginx: nginx depends on nginx-full (<< 1.13.6-2.1~) | nginx-light (<< 1.13.6-2.1~) | nginx-extras (<< 1.13.6-2.1~); however: Package nginx-full is not configured yet. Package nginx-light is not installed. Package nginx-extras is not installed. nginx depends on nginx-full (>= 1.13.6-2) | nginx-light (>= 1.13.6-2) | nginx-extras (>= 1.13.6-2); however: Package nginx-full is not configured yet. Package nginx-light is not installed. Package nginx-extras is not installed. dpkg: error processing package nginx (--configure): dependency problems - leaving unconfigured Setting up php7.0-sqlite3 (7.0.26-1) ... No apport report written because the error message indicates its a followup error from a previous failure. ``` ``` Setting up recon-ng (4.9.2-0kali2) ... dpkg: dependency problems prevent configuration of set: set depends on nginx; however: Package nginx is not configured yet. Package nginx-full which provides nginx is not configured yet. dpkg: error processing package set (--configure): dependency problems - leaving unconfigured No apport report written because the error message indicates its a followup error from a previous failure. ``` ``` Errors were encountered while processing: nginx-full nginx set E: Sub-process /usr/bin/dpkg returned an error code (1) ``` Any help would be appreciated. Thanks.
Author
Owner

@aphive commented on GitHub (Dec 10, 2017):

Update:

I stopped apache2
sudo service apache2 stop
And then installed ngingx
sudo apt-get install nginx

The nginx error went away but then when I ran
apt upgrade
I got this error:

The following packages have unmet dependencies:
 libabw-0.1-1v5 : Conflicts: libabw-0.1-1 but 0.1.1-4 is to be installed
 libsidplay2v5 : Conflicts: libsidplay2 but 2.1.1-15 is to be installed
 python3-aptdaemon.pkcompat : Conflicts: packagekit
                              Conflicts: packagekit:i386
E: Broken packages

I fixed the first one with:
apt install libabw-0.1-1
Runing apt upgrade again showed:

The following packages have unmet dependencies:
 libsidplay2v5 : Conflicts: libsidplay2 but 2.1.1-15 is to be installed
 python3-aptdaemon.pkcompat : Conflicts: packagekit
                              Conflicts: packagekit:i386
E: Broken packages

Did a search for libdisplay but not sure which one to install ...

apt search libsidplay
Sorting... Done
Full Text Search... Done
libresid-builder-dev/kali-rolling 2.1.1-15 amd64
  SID chip emulation class based on resid

libresid-builder0c2a/kali-rolling 2.1.1-15 amd64 [upgradable from: 2.1.1-14ubuntu2]
  SID chip emulation class based on resid

libsidplay1-dev/kali-rolling 1.36.59-10 amd64
  SID (MOS 6581) emulation library (development files)

libsidplay1v5/kali-rolling 1.36.59-10 amd64
  SID (MOS 6581) emulation library

libsidplay2/kali-rolling 2.1.1-15 amd64
  SID (MOS 6581) emulation library

libsidplay2-dev/kali-rolling 2.1.1-15 amd64
  SID (MOS 6581) emulation library

libsidplay2v5/xenial,now 2.1.1-14ubuntu2 amd64 [installed]
  SID (MOS 6581) emulation library

libsidplayfp-dbg/kali-rolling 1.8.7-1 amd64
  library to play Commodore 64 music based on libsidplay2 (detached symbols)

libsidplayfp-dev/kali-rolling 1.8.7-1 amd64
  library to play Commodore 64 music based on libsidplay2 (development files)

libsidplayfp-doc/kali-rolling,kali-rolling 1.8.7-1 all
  library to play Commodore 64 music based on libsidplay2  (documentation)

libsidplayfp4/kali-rolling 1.8.7-1 amd64
  Library to play Commodore 64 music based on libsidplay2

xmms2-plugin-sid/kali-rolling 0.8+dfsg-18.1 amd64
  XMMS2 - libsidplay2 based decoder

I'm now seeing this error as well:

Errors were encountered while processing:
 /var/cache/apt/archives/vlc-bin_2.2.8-1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
<!-- gh-comment-id:350584754 --> @aphive commented on GitHub (Dec 10, 2017): Update: I stopped apache2 ```sudo service apache2 stop``` And then installed ngingx ```sudo apt-get install nginx``` The nginx error went away but then when I ran ```apt upgrade``` I got this error: ``` The following packages have unmet dependencies: libabw-0.1-1v5 : Conflicts: libabw-0.1-1 but 0.1.1-4 is to be installed libsidplay2v5 : Conflicts: libsidplay2 but 2.1.1-15 is to be installed python3-aptdaemon.pkcompat : Conflicts: packagekit Conflicts: packagekit:i386 E: Broken packages ``` I fixed the first one with: ``` apt install libabw-0.1-1``` Runing apt upgrade again showed: ``` The following packages have unmet dependencies: libsidplay2v5 : Conflicts: libsidplay2 but 2.1.1-15 is to be installed python3-aptdaemon.pkcompat : Conflicts: packagekit Conflicts: packagekit:i386 E: Broken packages ``` Did a search for **libdisplay** but not sure which one to install ... ``` apt search libsidplay Sorting... Done Full Text Search... Done libresid-builder-dev/kali-rolling 2.1.1-15 amd64 SID chip emulation class based on resid libresid-builder0c2a/kali-rolling 2.1.1-15 amd64 [upgradable from: 2.1.1-14ubuntu2] SID chip emulation class based on resid libsidplay1-dev/kali-rolling 1.36.59-10 amd64 SID (MOS 6581) emulation library (development files) libsidplay1v5/kali-rolling 1.36.59-10 amd64 SID (MOS 6581) emulation library libsidplay2/kali-rolling 2.1.1-15 amd64 SID (MOS 6581) emulation library libsidplay2-dev/kali-rolling 2.1.1-15 amd64 SID (MOS 6581) emulation library libsidplay2v5/xenial,now 2.1.1-14ubuntu2 amd64 [installed] SID (MOS 6581) emulation library libsidplayfp-dbg/kali-rolling 1.8.7-1 amd64 library to play Commodore 64 music based on libsidplay2 (detached symbols) libsidplayfp-dev/kali-rolling 1.8.7-1 amd64 library to play Commodore 64 music based on libsidplay2 (development files) libsidplayfp-doc/kali-rolling,kali-rolling 1.8.7-1 all library to play Commodore 64 music based on libsidplay2 (documentation) libsidplayfp4/kali-rolling 1.8.7-1 amd64 Library to play Commodore 64 music based on libsidplay2 xmms2-plugin-sid/kali-rolling 0.8+dfsg-18.1 amd64 XMMS2 - libsidplay2 based decoder ``` I'm now seeing this error as well: ``` Errors were encountered while processing: /var/cache/apt/archives/vlc-bin_2.2.8-1_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1) ```
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/katoolin-LionSec#95
No description provided.