Installations failing

6 posts / 0 new
Last post
#1 Mon, 02/23/2015 - 02:04
Cowboy

Installations failing

I tried to install a couple of Virtualmin updates tonight and got the foloowing:

Now updating bind9 ..
 
    Installing package(s) with command apt-get -y install bind9 ..
 
    Setting up opendkim (2.6.8-4) ...
    groupadd: existing lock file /etc/group.lock with an invalid PID '13873
    '
    groupadd: cannot lock /etc/group; try again later.
    adduser: `/usr/sbin/groupadd -g 117 opendkim' returned error code 10. Exiting.
    dpkg: error processing opendkim (--configure):
     subprocess installed post-installation script returned error exit status 1
    Errors were encountered while processing:
     opendkim
    Reading package lists...
    Building dependency tree...
    Reading state information...
    The following extra packages will be installed:
      bind9-host bind9utils libbind9-80 libdns88 libisc84 libisccc80 libisccfg82
      liblwres80
    Suggested packages:
      dnsutils bind9-doc resolvconf ufw
    The following packages will be upgraded:
      bind9 bind9-host bind9utils libbind9-80 libdns88 libisc84 libisccc80
      libisccfg82 liblwres80
    9 upgraded, 0 newly installed, 0 to remove and 11 not upgraded.
    1 not fully installed or removed.
    Need to get 1708 kB of archives.
    After this operation, 0 B of additional disk space will be used.
    Get:1 http://security.debian.org/ wheezy/updates/main bind9-host amd64 1:9.8.4.dfsg.P1-6+nmu2+deb7u4 [73.6 kB]
    Get:2 http://security.debian.org/ wheezy/updates/main bind9 amd64 1:9.8.4.dfsg.P1-6+nmu2+deb7u4 [374 kB]
    Get:3 http://security.debian.org/ wheezy/updates/main libisc84 amd64 1:9.8.4.dfsg.P1-6+nmu2+deb7u4 [184 kB]
    Get:4 http://security.debian.org/ wheezy/updates/main libdns88 amd64 1:9.8.4.dfsg.P1-6+nmu2+deb7u4 [752 kB]
    Get:5 http://security.debian.org/ wheezy/updates/main libisccc80 amd64 1:9.8.4.dfsg.P1-6+nmu2+deb7u4 [36.2 kB]
    Get:6 http://security.debian.org/ wheezy/updates/main libisccfg82 amd64 1:9.8.4.dfsg.P1-6+nmu2+deb7u4 [63.1 kB]
    Get:7 http://security.debian.org/ wheezy/updates/main liblwres80 amd64 1:9.8.4.dfsg.P1-6+nmu2+deb7u4 [55.5 kB]
    Get:8 http://security.debian.org/ wheezy/updates/main bind9utils amd64 1:9.8.4.dfsg.P1-6+nmu2+deb7u4 [128 kB]
    Get:9 http://security.debian.org/ wheezy/updates/main libbind9-80 amd64 1:9.8.4.dfsg.P1-6+nmu2+deb7u4 [42.6 kB]
    Preconfiguring packages ...
    Fetched 1708 kB in 3s (503 kB/s)
    (Reading database ... 95701 files and directories currently installed.)
    Preparing to replace bind9-host 1:9.8.4.dfsg.P1-6+nmu2+deb7u3 (using .../bind9-host_1%3a9.8.4.dfsg.P1-6+nmu2+deb7u4_amd64.deb) ...
    Unpacking replacement bind9-host ...
    Preparing to replace bind9 1:9.8.4.dfsg.P1-6+nmu2+deb7u3 (using .../bind9_1%3a9.8.4.dfsg.P1-6+nmu2+deb7u4_amd64.deb) ...
    Unpacking replacement bind9 ...
    Preparing to replace libisc84 1:9.8.4.dfsg.P1-6+nmu2+deb7u3 (using .../libisc84_1%3a9.8.4.dfsg.P1-6+nmu2+deb7u4_amd64.deb) ...
    Unpacking replacement libisc84 ...
    Preparing to replace libdns88 1:9.8.4.dfsg.P1-6+nmu2+deb7u3 (using .../libdns88_1%3a9.8.4.dfsg.P1-6+nmu2+deb7u4_amd64.deb) ...
    Unpacking replacement libdns88 ...
    Preparing to replace libisccc80 1:9.8.4.dfsg.P1-6+nmu2+deb7u3 (using .../libisccc80_1%3a9.8.4.dfsg.P1-6+nmu2+deb7u4_amd64.deb) ...
    Unpacking replacement libisccc80 ...
    Preparing to replace libisccfg82 1:9.8.4.dfsg.P1-6+nmu2+deb7u3 (using .../libisccfg82_1%3a9.8.4.dfsg.P1-6+nmu2+deb7u4_amd64.deb) ...
    Unpacking replacement libisccfg82 ...
    Preparing to replace liblwres80 1:9.8.4.dfsg.P1-6+nmu2+deb7u3 (using .../liblwres80_1%3a9.8.4.dfsg.P1-6+nmu2+deb7u4_amd64.deb) ...
    Unpacking replacement liblwres80 ...
    Preparing to replace bind9utils 1:9.8.4.dfsg.P1-6+nmu2+deb7u3 (using .../bind9utils_1%3a9.8.4.dfsg.P1-6+nmu2+deb7u4_amd64.deb) ...
    Unpacking replacement bind9utils ...
    Preparing to replace libbind9-80 1:9.8.4.dfsg.P1-6+nmu2+deb7u3 (using .../libbind9-80_1%3a9.8.4.dfsg.P1-6+nmu2+deb7u4_amd64.deb) ...
    Unpacking replacement libbind9-80 ...
    Processing triggers for man-db ...
    Setting up opendkim (2.6.8-4) ...
    groupadd: existing lock file /etc/group.lock with an invalid PID '13873
    '
    groupadd: cannot lock /etc/group; try again later.
    adduser: `/usr/sbin/groupadd -g 117 opendkim' returned error code 10. Exiting.
    dpkg: error processing opendkim (--configure):
     subprocess installed post-installation script returned error exit status 1
    Setting up libisc84 (1:9.8.4.dfsg.P1-6+nmu2+deb7u4) ...
    Setting up libdns88 (1:9.8.4.dfsg.P1-6+nmu2+deb7u4) ...
    Setting up libisccc80 (1:9.8.4.dfsg.P1-6+nmu2+deb7u4) ...
    Setting up libisccfg82 (1:9.8.4.dfsg.P1-6+nmu2+deb7u4) ...
    Setting up libbind9-80 (1:9.8.4.dfsg.P1-6+nmu2+deb7u4) ...
    Setting up liblwres80 (1:9.8.4.dfsg.P1-6+nmu2+deb7u4) ...
    Setting up bind9-host (1:9.8.4.dfsg.P1-6+nmu2+deb7u4) ...
    Setting up bind9utils (1:9.8.4.dfsg.P1-6+nmu2+deb7u4) ...
    Setting up bind9 (1:9.8.4.dfsg.P1-6+nmu2+deb7u4) ...
    Stopping domain name service...: bind9waiting for pid 8987 to die
    .
    Starting domain name service...: bind9.
    Errors were encountered while processing:
     opendkim
    E: Sub-process /usr/bin/dpkg returned an error code (1)
 
    .. install failed!
 
 
Now updating usermin ..
 
    Installing package(s) with command apt-get -y install usermin ..
 
    Setting up opendkim (2.6.8-4) ...
    groupadd: existing lock file /etc/group.lock with an invalid PID '13873
    '
    groupadd: cannot lock /etc/group; try again later.
    adduser: `/usr/sbin/groupadd -g 117 opendkim' returned error code 10. Exiting.
    dpkg: error processing opendkim (--configure):
     subprocess installed post-installation script returned error exit status 1
    Errors were encountered while processing:
     opendkim
    Reading package lists...
    Building dependency tree...
    Reading state information...
    The following packages will be upgraded:
      usermin
    1 upgraded, 0 newly installed, 0 to remove and 10 not upgraded.
    1 not fully installed or removed.
    Need to get 9193 kB of archives.
    After this operation, 69.6 kB of additional disk space will be used.
    Get:1 http://software.virtualmin.com/gpl/debian/ virtualmin-universal/main usermin all 1.650 [9193 kB]
    Fetched 9193 kB in 1s (4877 kB/s)
    (Reading database ... 95701 files and directories currently installed.)
    Preparing to replace usermin 1.640 (using .../archives/usermin_1.650_all.deb) ...
    Unpacking replacement usermin ...
    Setting up opendkim (2.6.8-4) ...
    groupadd: existing lock file /etc/group.lock with an invalid PID '13873
    '
    groupadd: cannot lock /etc/group; try again later.
    adduser: `/usr/sbin/groupadd -g 117 opendkim' returned error code 10. Exiting.
    dpkg: error processing opendkim (--configure):
     subprocess installed post-installation script returned error exit status 1
    Setting up usermin (1.650) ...
    Usermin install complete. You can now login to https://dfwit:20000/
    as any user on the system.
    Errors were encountered while processing:
     opendkim
    E: Sub-process /usr/bin/dpkg returned an error code (1)
 
    .. install failed!

What can I do to fix this?

Mon, 02/23/2015 - 10:55
andreychek

Howdy,

It sounds like something created a /etc/group.lock file, but hasn't completed. Do you see a process id in that file? If so, is there a matching process that's currently running?

-Eric

Mon, 02/23/2015 - 14:01
Cowboy

andreychek:

That's for responding. I didn't see that process running.

root@dfwit:~# ps ux
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.0  30316   648 ?        Ss   Jan14   0:00 init
root         2  0.0  0.0      0     0 ?        S    Jan14   0:00 [kthreadd/25990]
root         3  0.0  0.0      0     0 ?        S    Jan14   0:00 [khelper/25990]
root       235  0.0  0.0  16988    16 ?        S    Jan14   0:00 upstart-udev-bridge --daemon
root       241  0.0  0.0  21196    36 ?        Ss   Jan14   0:00 /sbin/udevd --daemon
root       441  0.0  0.0  14936    12 ?        S    Jan14   0:00 upstart-socket-bridge --daemon
root      1786  0.0  0.0  49888   372 ?        Ss   Jan14   0:00 /usr/sbin/sshd
root      1816  0.0  0.3 126104  3804 ?        Sl   Jan14   0:22 /usr/sbin/rsyslogd -c5
root      1862  0.0  0.0  57568     8 ?        Ss   Jan14   0:00 /usr/sbin/saslauthd -a pam -c -m /var/run/saslauthd -n 2
root      1863  0.0  0.0  57568     8 ?        S    Jan14   0:00 /usr/sbin/saslauthd -a pam -c -m /var/run/saslauthd -n 2
root      2163  0.0  0.0  18836   312 ?        Ss   Jan14   0:05 /usr/sbin/cron
root      2190  0.0  0.0  14532     8 tty1     Ss+  Jan14   0:00 /sbin/getty 38400 console
root      2192  0.0  0.0  14532     8 tty2     Ss+  Jan14   0:00 /sbin/getty 38400 tty2
root      2935  0.0  0.0  22128   804 ?        Ss   Jan14   0:00 /usr/sbin/dovecot -c /etc/dovecot/dovecot.conf
root      2943  0.0  0.0  13136   404 ?        S    Jan14   0:00 dovecot/log
root      3361  0.0  1.5  73712 16472 ?        Ss   02:56   0:00 /usr/bin/perl /usr/share/usermin/miniserv.pl /etc/usermin/miniserv.conf
root      4166  0.0  0.0  19524    12 ?        Ss   Jan14   0:00 /usr/sbin/xinetd -pidfile /var/run/xinetd.pid -stayalive -inetd_compat -inetd_ipv6
root      5037  0.0  1.3  81696 13764 ?        Ss   Jan14   1:33 /usr/bin/perl /usr/share/webmin/miniserv.pl /etc/webmin/miniserv.conf
root      5317  0.0  0.0  65180   636 ?        Ss   Jan14   0:00 /usr/sbin/saslauthd -a pam -m /var/spool/postfix/var/run/saslauthd -r -n 2
root      5318  0.0  0.0  65180   640 ?        S    Jan14   0:00 /usr/sbin/saslauthd -a pam -m /var/spool/postfix/var/run/saslauthd -r -n 2
root      6057  0.0  0.0  37836   504 ?        Ss   Jan14   0:06 /usr/lib/postfix/master
root      7399  0.0  1.7 119828 18528 ?        Ss   Jan14   5:48 /usr/sbin/spamd --create-prefs --max-children 5 --helper-home-dir -d --pidfile=/var/run/spamd.pid
root      7400  0.0  4.2 124356 44952 ?        S    Jan14   0:14 spamd child
root      7401  0.0  1.6 119828 17288 ?        S    Jan14   0:02 spamd child
root     12786  0.0  0.0   4140    24 ?        S    Jan24   0:00 /bin/sh /usr/bin/mysqld_safe
root     13176  0.0  0.0   4048    16 ?        S    Jan24   0:00 logger -t mysqld -p daemon.error
root     16345  0.0  0.2  23388  2328 ?        S    09:40   0:00 dovecot/config
root     16347  0.0  0.0  19212   788 ?        S    09:40   0:00 dovecot/ssl-params
root     25821  0.0  0.3  71232  3608 ?        Ss   14:43   0:00 sshd: root@pts/0 
root     25824  0.0  0.1  17812  1996 pts/0    Ss+  14:44   0:00 -bash
root     25939  0.0  0.3  71232  3604 ?        Ss   14:47   0:00 sshd: root@pts/1 
root     25942  0.0  0.2  19304  2172 pts/1    Ss   14:47   0:00 -bash
root     25946  0.0  0.1  16732  1324 pts/1    R+   14:47   0:00 ps ux
root     26289  0.0  0.1  71232  1948 ?        Ss   Feb22   0:00 sshd: root@notty 
root     26291  0.0  0.0  12508   364 ?        Ss   Feb22   0:00 /usr/lib/openssh/sftp-server
root     30812  0.0  0.9 230568  9640 ?        Ss   01:00   0:00 /usr/sbin/apache2 -k start
root@dfwit:~# 

Here's the deal. A month or so ago, I tried to install that opendkim, one of the optional installs associated with Virtualmin, found in the leftmost column of the page. But during the install, it crapped out. And now, everytime something needs to be installed, it tries to reinstall itself. Isn't there some way to get rid of that? Again, this was a Virtualmin option. I think it might be the one under Email Messages->DomainKeys Identified Mail. Is there a way to either force it to go ahead and finish installing, or rid it of the need to try to reinstall it everytime? Please advise.

Mon, 02/23/2015 - 14:28
Cowboy

andreychek:

A little something extra for you. I just ran an update / upgrade on my VPS and got this at the end of the upgrade:

Unpacking replacement sudo ...
Processing triggers for man-db ...
Setting up libc-dev-bin (2.13-38+deb7u8) ...
Setting up linux-libc-dev:amd64 (3.2.65-1+deb7u2) ...
Setting up libc6-dev:amd64 (2.13-38+deb7u8) ...
Setting up opendkim (2.6.8-4) ...
groupadd: existing lock file /etc/group.lock with an invalid PID '13873
'
groupadd: cannot lock /etc/group; try again later.
adduser: `/usr/sbin/groupadd -g 117 opendkim' returned error code 10. Exiting.
dpkg: error processing opendkim (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up e2fslibs:amd64 (1.42.5-1.1+deb7u1) ...
Setting up libcomerr2:amd64 (1.42.5-1.1+deb7u1) ...
Setting up libwbclient0:amd64 (2:3.6.6-6+deb7u5) ...
Setting up samba-common (2:3.6.6-6+deb7u5) ...
Setting up samba (2:3.6.6-6+deb7u5) ...
[ ok ] Starting Samba daemons: nmbd smbd.
Setting up locales-all (2.13-38+deb7u8) ...
Setting up locales (2.13-38+deb7u8) ...
locales-all installed, skipping locales generation
Setting up sudo (1.8.5p2-1+nmu2) ...
Errors were encountered while processing:
 opendkim
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@dfwit:~#

PID 13873 doesn't show to be a running process. It's like it's still hung in the netherworld of my server from the attemted install a month or so ago, ghosting sort of like. Any ideas?

Mon, 02/23/2015 - 15:04
andreychek

Howdy,

I would suggest removing that group.lock file, and then running this command:

dpkg --configure -a

Once you do that, do things begin working as expected again?

-Eric

Mon, 02/23/2015 - 16:05
Cowboy

andreychek:

I made a post to you that somehow failed to post.

What I did was go back into Virtualmin and click on the DomainKeys Identified Mail. It must've known that it was installed or in the midst of an install gone awry, because it happily removed everything associated with DomainKeys Identified Mail. I haven't checked yet, but I have a good feeling that the issue was solved by doing this. And thank you for your time, andreychek. I know you volunteer your assistance and don't profit one dime from it other than the good feeling of helping others, which is a grateful reward in and of itself. Thank you so much.

Topic locked