Error when installing Elastic Agent on the labs

Hello @Simriti_Bundhoo

Welcome to the community.

Please check the path from where you are executing the command. For sudo related question check below post :

Thanks!!