issue while install docker in Linux
- User
issue while install docker in Linux
- Assistant
- User
echo “deb [arch=(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu (lsb_release -cs) stable” | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null -bash: syntax error near unexpected token `('
- Assistant
The error you're encountering is due to incorrect usage of parentheses in the command line. In a shell, parentheses need to be part of a command substitution or need to be correctly formatted, while the command you're trying to execute requires that you use backticks or the
$()syntax instead.The correct command should look like this:
bash