aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorqkrorlqr <qkrorlqr@yandex-team.com>2022-10-31 23:10:08 +0300
committerqkrorlqr <qkrorlqr@yandex-team.com>2022-10-31 23:10:08 +0300
commitd99b3d79e8fbda3274460abc94f153b0333b2da6 (patch)
tree885d857d7b0a734a57ef0138bd03361c71542bb8
parent4b49f7a8d7c74f6289bbe1c51609ba44cabf827f (diff)
downloadydb-d99b3d79e8fbda3274460abc94f153b0333b2da6.tar.gz
fixed ubuntu version hardcode;;
-rw-r--r--BUILD.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/BUILD.md b/BUILD.md
index 9716431ff6a..207c7e3a32a 100644
--- a/BUILD.md
+++ b/BUILD.md
@@ -29,13 +29,13 @@
1. Add repositories for dependencies
- Note: the following repositories are required for **Ubuntu 20.04**. You may skip this step if your GNU/Linux distribution has all required packages in their default repository.
+ Note: the following repositories are required for **Ubuntu 18.04 and Ubuntu 20.04**. You may skip this step if your GNU/Linux distribution has all required packages in their default repository.
For more information please read your distribution documentation and https://apt.llvm.org as well as https://apt.kitware.com/
```
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc | sudo apt-key add -
- echo 'deb http://apt.kitware.com/ubuntu/ focal main' | sudo tee /etc/apt/sources.list.d/kitware.list >/dev/null
- echo 'deb http://apt.llvm.org/focal/ llvm-toolchain-focal main' | sudo tee /etc/apt/sources.list.d/llvm.list >/dev/null
+ echo "deb http://apt.kitware.com/ubuntu/ $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/kitware.list >/dev/null
+ echo "deb http://apt.llvm.org/$(lsb_release -cs)/ llvm-toolchain-$(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/llvm.list >/dev/null
sudo apt-get update
```