For me the issue about getting duplicate names in the output was due to the fact that my user was in both the "admin" and "sudo" group. Seems like polkit first lists all user from the sudo group, then all users from the admin group; not checking if the same user was listed twice.
For me the issue about getting duplicate names in the output was due to the fact that my user was in both the "admin" and "sudo" group. Seems like polkit first lists all user from the sudo group, then all users from the admin group; not checking if the same user was listed twice.
so after a quick
sudo gpasswd -d $USER admin
The duplicate no longer appear.
Hope this information is helpful.
//Rikard