Wget not working

$ sudo apt wget -qO- https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo tee /etc/apt/trusted.gpg.d/pgdg.asc &>/dev/null
$: command not found
What command is not found?

You copied the leading dollar symbol $ which is not a valid command. Remove it and make sure it's just:

sudo apt wget -qO- https://www.postgresql.org/media/keys/ACCC4CF8.asc 1 | sudo tee /etc/apt/trusted.gpg.d/pgdg.asc &>/dev/null

It should be sudo wget in your command.
You included two software commands: apt and wget.

2 Likes

It seems I'm overly sloppy today, I didn't notice that there were two commands there in a row... oops :smiley:

2 Likes

oops! Thank you guys.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.