Skip to content

Commit

Permalink
Update index.adoc
Browse files Browse the repository at this point in the history
Added "sudo"  before "tee" to make these commands run fine.
  • Loading branch information
phil69210 authored and karianna committed Jun 13, 2024
1 parent 93116c1 commit 70e971d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions content/asciidoc-pages/installation/linux/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@ apt install -y wget apt-transport-https gpg
+
[source, bash]
----
wget -qO - https://packages.adoptium.net/artifactory/api/gpg/key/public | gpg --dearmor | tee /etc/apt/trusted.gpg.d/adoptium.gpg > /dev/null
wget -qO - https://packages.adoptium.net/artifactory/api/gpg/key/public | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/adoptium.gpg > /dev/null
----
+
. Configure the Eclipse Adoptium apt repository. To check the full list of versions supported take a look at the list in the tree at https://packages.adoptium.net/ui/native/deb/dists/.
+
[source, bash]
----
echo "deb https://packages.adoptium.net/artifactory/deb $(awk -F= '/^VERSION_CODENAME/{print$2}' /etc/os-release) main" | tee /etc/apt/sources.list.d/adoptium.list
echo "deb https://packages.adoptium.net/artifactory/deb $(awk -F= '/^VERSION_CODENAME/{print$2}' /etc/os-release) main" | sudo tee /etc/apt/sources.list.d/adoptium.list
----
TIP: For Linux Mint (based on Ubuntu) you have to replace `VERSION_CODENAME` with `UBUNTU_CODENAME`.
+
Expand Down

0 comments on commit 70e971d

Please sign in to comment.