Ubuntu Clickhouse 安装 — Could not resolve host: repo.clickhouse.tech 解决

Feb 10, 2021 阅读(59)

标签: ClickHouse Ubuntu

官网安装教程:  https://clickhouse.tech/docs/zh/getting-started/tutorial/


sudo apt-get install apt-transport-https ca-certificates dirmngr
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv E0C56BD4

echo "deb https://repo.clickhouse.tech/deb/stable/ main/" | sudo tee \
    /etc/apt/sources.list.d/clickhouse.list
sudo apt-get update

sudo apt-get install -y clickhouse-server clickhouse-client


使用官网的方式安装失败,报 Could not resolve host: repo.clickhouse.tech 错误。


解决方法: 重置软件源地址后安装

# 资料来自: https://clickhouse.tech/blog/en/2020/package-repository-behind-cdn/  
echo "deb http://repo.yandex.ru/clickhouse/deb/stable/ main/" | sudo tee \
    /etc/apt/sources.list.d/clickhouse.list
sudo apt-get update


MongoDB学习园