Sudo function not working

i installed the VMware and ubuntu server instead of digitalOcean, and sudo command is asking for a password. I am not able to install the bolt python library too because of this issue. please help me solve my issue.

When you first time open your Ubuntu server it asks for login credentials which you have set while installing machine.
As you mentioned you are facing problem with sudo command so the solution here is just type the login password which you have set whenever it asks for password

Hope this helps.


Can you try the solution provided by @rajputsafal27?