Hi @Waldemar_Schafer ,
you don't need sudo password for installing the Elastic Agent, but you need to paste and run the copied commands in a fresh terminal and from the elastic user home directory (/home/elastic or ~ ).
Just to make sure you are on the right path, you can run cd ~ in your terminal window before pasting and running the command lines you copied.
Best,
Andre