Sub-process /usr/bin/dpkg returned an error code (1)

Help with issues regarding installation of Debian

Sub-process /usr/bin/dpkg returned an error code (1)

Postby FredB » 2017-05-16 04:22

Since several weeks, I am not able to update/install anything on my Debian Jessie 8.7.
When I do apt-get upgrade (or install any package), it errors out as below.
Any help would be appreciated

Code: Select all
Extracting templates from packages: 100%
Preconfiguring packages ...
Setting up udev (215-17+deb8u7) ...
addgroup: The group `input' already exists as a system group. Exiting.
update-initramfs: deferring update (trigger activated)
insserv: warning: script 'lprng' missing LSB tags and overrides
insserv: warning: script 'lpd' missing LSB tags and overrides
insserv: warning: script 'cupsys' missing LSB tags and overrides
insserv: There is a loop between service minidlna and lprng if stopped
insserv:  loop involving service lprng at depth 2
insserv:  loop involving service minidlna at depth 1
insserv: Stopping lprng depends on minidlna and therefore on system facility `$all' which can not be true!
insserv: Stopping lpd depends on minidlna and therefore on system facility `$all' which can not be true!
insserv: Stopping cupsys depends on minidlna and therefore on system facility `$all' which can not be true!
insserv: exiting now without changing boot order!
update-rc.d: error: insserv rejected the script header
dpkg: error processing package udev (--configure):
 subprocess installed post-installation script returned error exit status 1
Processing triggers for initramfs-tools (0.120+deb8u2) ...
update-initramfs: Generating /boot/initrd.img-3.16.0-4-amd64
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168g-3.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168g-2.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8106e-2.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8106e-1.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8411-2.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8411-1.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8402-1.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168f-2.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168f-1.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8105e-1.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168e-3.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168e-2.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168e-1.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168d-2.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168d-1.fw for module r8169
Errors were encountered while processing:
 udev
E: Sub-process /usr/bin/dpkg returned an error code (1)
User avatar
FredB
 
Posts: 28
Joined: 2015-07-20 21:33

Re: Sub-process /usr/bin/dpkg returned an error code (1)

Postby Head_on_a_Stick » 2017-05-16 06:01

Please post the full output of:
Code: Select all
apt-cache policy
“Controlling complexity is the essence of computer programming."Brian Kernighan

Please read before posting How to report a problem
User avatar
Head_on_a_Stick
 
Posts: 6491
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Sub-process /usr/bin/dpkg returned an error code (1)

Postby FredB » 2017-05-16 12:13

There you go :

Code: Select all
Package files:
 100 /var/lib/dpkg/status
     release a=now
 500 http://www.scootersoftware.com/ bcompare4/non-free amd64 Packages
     release o=Scooter Software,a=stable,n=bcompare4,l=Scooter Software,c=non-free
     origin www.scootersoftware.com
 500 http://dl.google.com/linux/talkplugin/deb/ stable/main amd64 Packages
     release v=1.0,o=Google, Inc.,a=stable,n=stable,l=Google,c=main
     origin dl.google.com
 500 http://dl.google.com/linux/earth/deb/ stable/main amd64 Packages
     release v=1.0,o=Google, Inc.,a=stable,n=stable,l=Google,c=main
     origin dl.google.com
 500 http://download.videolan.org/pub/debian/stable/  Packages
     release o=videolan,a=stable,n=stable,l=videolan,c=
     origin download.videolan.org
 500 http://security.debian.org/ jessie/updates/main Translation-en
 500 http://security.debian.org/ jessie/updates/main amd64 Packages
     release v=8,o=Debian,a=stable,n=jessie,l=Debian-Security,c=main
     origin security.debian.org
 500 http://ftp.us.debian.org/debian/ jessie-updates/main Translation-en
 500 http://ftp.us.debian.org/debian/ jessie-updates/main amd64 Packages
     release o=Debian,a=stable-updates,n=jessie-updates,l=Debian,c=main
     origin ftp.us.debian.org
 500 http://ftp.de.debian.org/debian/ jessie-backports/main Translation-en
 100 http://ftp.de.debian.org/debian/ jessie-backports/main amd64 Packages
     release o=Debian Backports,a=jessie-backports,n=jessie-backports,l=Debian Backports,c=main
     origin ftp.de.debian.org
 500 http://ftp.us.debian.org/debian/ jessie/non-free Translation-en
 500 http://ftp.us.debian.org/debian/ jessie/main Translation-en
 500 http://ftp.us.debian.org/debian/ jessie/contrib Translation-en
 500 http://ftp.us.debian.org/debian/ jessie/non-free amd64 Packages
     release v=8.8,o=Debian,a=stable,n=jessie,l=Debian,c=non-free
     origin ftp.us.debian.org
 500 http://ftp.us.debian.org/debian/ jessie/contrib amd64 Packages
     release v=8.8,o=Debian,a=stable,n=jessie,l=Debian,c=contrib
     origin ftp.us.debian.org
 500 http://ftp.us.debian.org/debian/ jessie/main amd64 Packages
     release v=8.8,o=Debian,a=stable,n=jessie,l=Debian,c=main
     origin ftp.us.debian.org
Pinned packages:
User avatar
FredB
 
Posts: 28
Joined: 2015-07-20 21:33

Re: Sub-process /usr/bin/dpkg returned an error code (1)

Postby Head_on_a_Stick » 2017-05-16 17:46

FredB wrote:
Code: Select all
Package files:
 100 /var/lib/dpkg/status
     release a=now
 500 http://www.scootersoftware.com/ bcompare4/non-free amd64 Packages
     release o=Scooter Software,a=stable,n=bcompare4,l=Scooter Software,c=non-free
     origin www.scootersoftware.com
 500 http://dl.google.com/linux/talkplugin/deb/ stable/main amd64 Packages
     release v=1.0,o=Google, Inc.,a=stable,n=stable,l=Google,c=main
     origin dl.google.com
 500 http://dl.google.com/linux/earth/deb/ stable/main amd64 Packages
     release v=1.0,o=Google, Inc.,a=stable,n=stable,l=Google,c=main
     origin dl.google.com
 500 http://download.videolan.org/pub/debian/stable/  Packages
     release o=videolan,a=stable,n=stable,l=videolan,c=
     origin download.videolan.org

Non-standard repositories can cause problems sometimes.

Can we also see:
Code: Select all
apt-cache policy udev
aptitude -s full-upgrade

Let `aptitude` rattle through a few options if it asks ;)
“Controlling complexity is the essence of computer programming."Brian Kernighan

Please read before posting How to report a problem
User avatar
Head_on_a_Stick
 
Posts: 6491
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Sub-process /usr/bin/dpkg returned an error code (1)

Postby FredB » 2017-05-16 19:24

Head_on_a_Stick wrote:Non-standard repositories can cause problems sometimes.


But I love Google Earth :)

Code: Select all
root@Frederic:/home/frederic# apt-cache policy udev
udev:
  Installed: 215-17+deb8u7
  Candidate: 215-17+deb8u7
  Version table:
     230-7~bpo8+2 0
        100 http://ftp.de.debian.org/debian/ jessie-backports/main amd64 Packages
 *** 215-17+deb8u7 0
        500 http://ftp.us.debian.org/debian/ jessie/main amd64 Packages
        100 /var/lib/dpkg/status


and

Code: Select all
root@Frederic:/home/frederic# aptitude -s full-upgrade
The following packages will be upgraded:
  base-files binutils ca-certificates gnome-screenshot gnome-settings-daemon guile-2.0 guile-2.0-libs initramfs-tools irqbalance libgnutls-deb0-28 libgnutls-openssl27 libgudev-1.0-0 libindicate5 libpam-systemd libsane libsane-common
  libsystemd0 libtiff5 libtirpc1 libvlc5 libvlccore8 libxslt1.1 libytnef0 linux-compiler-gcc-4.8-x86 linux-headers-3.16.0-4-amd64 linux-headers-3.16.0-4-common linux-image-3.16.0-4-amd64 locales multiarch-support openjdk-8-jdk
  openjdk-8-jdk-headless openjdk-8-jre openjdk-8-jre-headless{b} rpcbind sane-utils systemd systemd-sysv unzip vim-common vim-gnome vim-gui-common vim-runtime vim-tiny vlc vlc-data vlc-nox vlc-plugin-notify vlc-plugin-pulse
  vlc-plugin-samba wget
The following partially installed packages will be configured:
  dbus dbus-x11 minissdpd udev
50 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 35.8 MB/112 MB of archives. After unpacking 626 kB will be freed.
The following packages have unmet dependencies:
 openjdk-8-jre-headless : Breaks: ca-certificates-java (< 20160321~) but 20140324 is installed.
The following actions will resolve these dependencies:

     Remove the following packages:
1)     openjdk-8-jdk               
2)     openjdk-8-jdk-headless     
3)     openjdk-8-jre               
4)     openjdk-8-jre-headless     



Accept this solution? [Y/n/q/?] Y
The following packages will be REMOVED:
  openjdk-8-jdk{a} openjdk-8-jdk-headless{a} openjdk-8-jre{a} openjdk-8-jre-headless{a}
The following packages will be upgraded:
  base-files binutils ca-certificates gnome-screenshot gnome-settings-daemon guile-2.0 guile-2.0-libs initramfs-tools irqbalance libgnutls-deb0-28 libgnutls-openssl27 libgudev-1.0-0 libindicate5 libpam-systemd libsane libsane-common
  libsystemd0 libtiff5 libtirpc1 libvlc5 libvlccore8 libxslt1.1 libytnef0 linux-compiler-gcc-4.8-x86 linux-headers-3.16.0-4-amd64 linux-headers-3.16.0-4-common linux-image-3.16.0-4-amd64 locales multiarch-support rpcbind sane-utils
  systemd systemd-sysv unzip vim-common vim-gnome vim-gui-common vim-runtime vim-tiny vlc vlc-data vlc-nox vlc-plugin-notify vlc-plugin-pulse vlc-plugin-samba wget
The following partially installed packages will be configured:
  dbus dbus-x11 minissdpd udev
46 packages upgraded, 0 newly installed, 4 to remove and 0 not upgraded.
Need to get 0 B/76.7 MB of archives. After unpacking 141 MB will be freed.
Do you want to continue? [Y/n/?] Y
Would download/install/remove packages.


I am confused by how it ends "Would download/install/remove packages". What does that mean ? :?:
User avatar
FredB
 
Posts: 28
Joined: 2015-07-20 21:33

Re: Sub-process /usr/bin/dpkg returned an error code (1)

Postby Head_on_a_Stick » 2017-05-17 06:26

FredB wrote:I am confused by how it ends "Would download/install/remove packages". What does that mean ? :?:

It just means that the packages would have been removed if the command was run "for real" and as root.

Where did you get that JDK from?

It looks to be causing problems...
“Controlling complexity is the essence of computer programming."Brian Kernighan

Please read before posting How to report a problem
User avatar
Head_on_a_Stick
 
Posts: 6491
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Sub-process /usr/bin/dpkg returned an error code (1)

Postby pylkko » 2017-05-17 07:33

jdk 8 is not in Debian but I believe they offer a script that wgets a tar.gz with the needed files.
User avatar
pylkko
 
Posts: 1001
Joined: 2014-11-06 19:02

Re: Sub-process /usr/bin/dpkg returned an error code (1)

Postby FredB » 2017-05-17 13:43

Head_on_a_Stick wrote:
FredB wrote:I am confused by how it ends "Would download/install/remove packages". What does that mean ? :?:

It just means that the packages would have been removed if the command was run "for real" and as root.

But I ran it from root as you can see in here :
root@Frederic:/home/frederic# aptitude -s full-upgrade

Head_on_a_Stick wrote:Where did you get that JDK from?
It looks to be causing problems...

Huh, I don't exactly remember, it's been a while.... I actually don't use it anymore so I will remove it to see if it helps. I'll keep you updated.
User avatar
FredB
 
Posts: 28
Joined: 2015-07-20 21:33

Re: Sub-process /usr/bin/dpkg returned an error code (1)

Postby FredB » 2017-05-17 14:22

Head_on_a_Stick wrote:Where did you get that JDK from?

I see it now : I got it from the backports repo (https://www.linkedin.com/pulse/installi ... e-muliarsa). And looking at my sources.list, I can see my comment I did at that time to justify the use of it
Code: Select all
#JDK8
deb http://ftp.de.debian.org/debian jessie-backports main


Now, I cant even remove those JDK packages, I get the same error. I'm pretty much stuck :?

Code: Select all
...
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168d-1.fw for module r8169
Errors were encountered while processing:
 udev
User avatar
FredB
 
Posts: 28
Joined: 2015-07-20 21:33

Re: Sub-process /usr/bin/dpkg returned an error code (1)

Postby Head_on_a_Stick » 2017-05-17 17:34

FredB wrote:But I ran it from root

You didn't have to, the -s flag stops the actions being carried through — it would be wise to always read the man page and check the options if you are ever running commands with which you are not familiar.

Can APT heal itself?
Code: Select all
# apt-get install -f

If not, try `aptitutude -s full-upgrade` again and press "n" when it asks, it will then go through a list of possible resolutions and one of them may actually fix things.
“Controlling complexity is the essence of computer programming."Brian Kernighan

Please read before posting How to report a problem
User avatar
Head_on_a_Stick
 
Posts: 6491
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Sub-process /usr/bin/dpkg returned an error code (1)

Postby FredB » 2017-05-17 17:42

Head_on_a_Stick wrote:You didn't have to, the -s flag stops the actions being carried through — it would be wise to always read the man page and check the options if you are ever running commands with which you are not familiar.

Point taken, I'm just so eager to fix my issue that I overlooked this parameter. :oops:

Head_on_a_Stick wrote:Can APT heal itself?
Code: Select all
# apt-get install -f

If not, try `aptitutude -s full-upgrade` again and press "n" when it asks, it will then go through a list of possible resolutions and one of them may actually fix things.


Both command just go into the same dead end : :evil:
Code: Select all
Processing triggers for initramfs-tools (0.120+deb8u2) ...
update-initramfs: Generating /boot/initrd.img-3.16.0-4-amd64
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168g-3.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168g-2.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8106e-2.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8106e-1.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8411-2.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8411-1.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8402-1.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168f-2.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168f-1.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8105e-1.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168e-3.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168e-2.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168e-1.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168d-2.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168d-1.fw for module r8169
Errors were encountered while processing:
 udev
 dbus
 libpam-systemd:amd64
 dbus-x11
 minissdpd
E: Sub-process /usr/bin/dpkg returned an error code (1)
User avatar
FredB
 
Posts: 28
Joined: 2015-07-20 21:33

Re: Sub-process /usr/bin/dpkg returned an error code (1)

Postby Head_on_a_Stick » 2017-05-17 18:14

Sorry, should have cleaned the package cache first...
Code: Select all
# apt-get clean
# apt-get update
# apt-get upgrade
# apt-get install -f
“Controlling complexity is the essence of computer programming."Brian Kernighan

Please read before posting How to report a problem
User avatar
Head_on_a_Stick
 
Posts: 6491
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Sub-process /usr/bin/dpkg returned an error code (1)

Postby FredB » 2017-05-17 18:59

Head_on_a_Stick wrote:Sorry, should have cleaned the package cache first...
Code: Select all
# apt-get clean
# apt-get update
# apt-get upgrade
# apt-get install -f


Same old sad story, same output.....
I even threw in a
Code: Select all
apt-get autoclean
User avatar
FredB
 
Posts: 28
Joined: 2015-07-20 21:33

Re: Sub-process /usr/bin/dpkg returned an error code (1)

Postby dilberts_left_nut » 2017-05-18 08:30

... and aptitude?
AdrianTM wrote:There's no hacker in my grandma...
User avatar
dilberts_left_nut
 
Posts: 4626
Joined: 2009-10-05 07:54
Location: enzed

Re: Sub-process /usr/bin/dpkg returned an error code (1)

Postby FredB » 2017-05-18 12:28

dilberts_left_nut wrote:... and aptitude?

You mean replacing apt-get by aptitude ?

Same result :(
User avatar
FredB
 
Posts: 28
Joined: 2015-07-20 21:33

Next

Return to Installation

Who is online

Users browsing this forum: Siernan and 11 guests

fashionable