These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for Installations failing on the new forum.
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?
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
andreychek:
That's for responding. I didn't see that process running.
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.
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:
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?
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
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.