"usermod: user $user does not exist after" error while installing using debian repo on PopOs
Closed this issue · 4 comments
efredz commented
❯❯❯ whoami ✘ 100
edgardo
~ ❯❯❯ uname -a
Linux pop-os 5.8.0-7642-generic #47~1612288990~20.10~b8113e7-Ubuntu SMP Wed Feb 3 02:27:26 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
~ ❯❯❯ sudo apt install huawei-wmi
Reading package lists... Done
Building dependency tree
Reading state information... Done
huawei-wmi is already the newest version (1.1.1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Setting up huawei-wmi (1.1.1) ...
usermod: user 'edgardo,' does not exist
dpkg: error processing package huawei-wmi (--configure):
installed huawei-wmi package post-installation script subprocess returned error exit status 6
Errors were encountered while processing:
huawei-wmi
E: Sub-process /usr/bin/dpkg returned an error code (1)
n3vu0r commented
usermod: user 'edgardo,' does not exist
It seems you entered multiple users separated by comma and space: edgardo, anotherUser
. Is this the case? Please use spaces only: edgardo anotherUser
.
n3vu0r commented
Right, the list of users will not be asked again when the package is in the not-fully-installed state. Please remove the package and its configuration by purging it before reinstalling. This worked for me to fix an invalid list of users:
sudo apt purge huawei-wmi
sudo apt install huawei-wmi
Then you should be asked again for a list of space-separated users.