Unable to Download TiUP

This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: tiup 无法下载

| username: 数据库菜鸡

The official documentation command curl --proto '=https' --tlsv1.2 -sSf https://tiup-mirrors.pingcap.com/install.sh | sh reports an error:

curl --proto '=https' --tlsv1.2 -sSf https://tiup-mirrors.pingcap.com/install.sh | sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 7323k  100 7323k    0     0  14.1M      0 --:--:-- --:--:-- --:--:-- 14.1M
tar (child): /tmp/tiup-linux-amd64.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
Failed to download and/or extract tiup archive.

Ubuntu 20.04; found the file under /tmp/snap-private-tmp/snap.curl/tmp/tiup-linux-amd64.tar.gz.

| username: Billmay表妹 | Original post link

@ShawnYan This reply is from a fellow user. I just tried it, and it works. Do you not have a /tmp path?

| username: ShawnYan | Original post link

So your curl is installed using snap, not apt? Can you show the output of df -h?

| username: 数据库菜鸡 | Original post link

So how should we handle the snap? Create a symlink?

| username: redgame | Original post link

You can use a symbolic link.

| username: ShawnYan | Original post link

Reinstall curl

sudo snap remove curl
sudo apt install curl
curl --proto '=https' --tlsv1.2 -sSf https://tiup-mirrors.pingcap.com/install.sh | sh

Or directly extract

tar zxf /tmp/snap-private-tmp/snap.curl/tmp/tiup-linux-amd64.tar.gz -C ~/.tiup/bin/
echo 'export PATH=~/.tiup/bin:$PATH' >> ~/.bash_profile
source ~/.bash_profile
tiup -v
| username: Fly-bird | Original post link

I encountered the same issue. Just try a few more times, it should be a network problem.

| username: system | Original post link

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.