Comments on: How to Install Java JDK 21 on Debian 12 https://www.tecmint.com/install-java-on-debian-12/ Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks. Thu, 27 Jun 2024 10:03:42 +0000 hourly 1 By: Ravi Saive https://www.tecmint.com/install-java-on-debian-12/comment-page-1/#comment-1331662 Mon, 04 May 2020 05:59:36 +0000 https://www.tecmint.com/?p=33844#comment-1331662 In reply to Anton.

@Anton,

Corrected the command in the article, as pointed by you.

Yes, no need for sudo in front of echo…

]]>
By: Anton https://www.tecmint.com/install-java-on-debian-12/comment-page-1/#comment-1331424 Sat, 02 May 2020 19:55:59 +0000 https://www.tecmint.com/?p=33844#comment-1331424 You forget a / here, it must be /etc.
$ echo “deb http://ppa.launchpad.net/linuxuprising/java/ubuntu bionic main” | sudo tee etc/apt/sources.list.d/linuxuprising-java.list

The correct command is:

$ echo "deb http://ppa.launchpad.net/linuxuprising/java/ubuntu bionic main" | sudo tee /etc/apt/sources.list.d/linuxuprising-java.list

and it needs a sudo in front of the echo?

Do you try the commands before publishing?

]]>