Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 29346  / 2 Years ago, mon, july 4, 2022, 5:27:05

I've recently uninstalled virtualbox and since then, everytime I open a terminal I get the following:




groups: cannot find name for group ID 125




The output of /etc/group is here:




http://pastebin.com/gysgpHra




I didn't want to paste the full output here, it's a bit long.



Strangely enough, there is no group 125 but as far as I remember that was assigned to the vboxusers group.



Google has not been helpful at all.



I see a similar question here:




https://askubuntu.com/questions/131651/cannot-find-name-for-group-id-127




But I don't know what he's talking about here:




But I've found it in the group- list



Entry
vboxusers:x:127:peter




Can anyone point me the right direction?


More From » 12.04

 Answers
7

You could use sudo delgroup vboxusers to completely remove that group, if the uninstallation of Virtualbox failed to do that. Then enter id in the terminal and your uid, gid, and the groups you belong to will be listed, and vboxusers shouldn't be there.



If this does not work you could simply reinstall Virtualbox with sudo apt-get install --reinstall <virtualbox pkg names> and then you might be able to remove the package cleanly with sudo apt-get purge <virtualbox version> (which would remove any configuration files) and then you could use sudo apt-get autoremove to remove any other files left by Virtualbox. Then you could try my first suggestion again.



Lastly, if these options are unsuccessful, but installing Virtualbox does show that group 125 is virtualbox, you could remove the Virtualbox users group (as detailed in my first suggestion with sudo delgroup vboxusers), before you uninstall Virtualbox. This may work as Virtualbox doesn't seem to be uninstalling correctly and seems to be leaving a partial group that can't easily be removed after uninstallation as it doesn't show up in /etc/group.



It also should be said that you need to logout and login again for any changes to users and groups to take effect.


[#36570] Wednesday, July 6, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
fatuatexen

Total Points: 451
Total Questions: 107
Total Answers: 110

Location: Trinidad and Tobago
Member since Thu, Apr 27, 2023
1 Year ago
;