Hi,
Which version of Ubuntu are you using?
The error you are seeing usually means that one of the dependencies is not available on the version of Ubuntu you are running.
For the current version it is best to run Ubuntu version 22.04.
Of course there are ways around it, but that gets complicated very quickly and is not really recommended when you don't have a lot of experience with Linux.
Greetings,
Bootsy