E: Sub-process /usr/bin/dpkg returned an error code (1)
Get this error whenever I try to install something. Get the same error when I try and remove xrdp. Any tips on how to fix this would be much appreciated.
You tried to install dpkg which is installed by default during Linux installation and it is the most recent version. But somewhere in the past you did two things that are not complete. One was to either add a user or add a user to a certain group, then when trying to install xrdp it borked because part of the installation requires making user group changes which cannot be done as there are incomplete user group processes lingering.
This article may be the ticket.
Thank you for your help brains. I know about dpkg, just needed an example. I read the article that you sent, did the steps, but it was not successful. Some odd behavior I encountered, when I looked for hanging user/group adds I found them, but could not kill them, with the following happening.
I'm just going by that article, not experience.
Something I've learned many moons ago was to use an option in the kill command, not sure how it came about but I always use: kill -9 PID, PID being the process.
Have you checked in /etc to see if any of those files exist?
I have a smooth operating Debian and those lock files do not exist, (passwd.lock, group.lock and gshadow.lock). If one or all those files exist, then this is more than likely what you need to do.
I checked and I also have those two processes, useradd and groupadd, they don't show up when I do a: ps -aux, but do show with the ps -ef.
Also, for all three of those files, I have in /etc/ three versions, example:
It is also possible the "cannot lock /etc/gshadow" error arrises due to the file not existing, if so, might be worth trying to create a blank file by that name with command: touch /etc/gshadow
|All times are GMT -5. The time now is 11:09 AM.|