diff options
| -rwxr-xr-x | hack/local-up-kubeedge.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/hack/local-up-kubeedge.sh b/hack/local-up-kubeedge.sh index a99635e73..cefe2009b 100755 --- a/hack/local-up-kubeedge.sh +++ b/hack/local-up-kubeedge.sh @@ -36,6 +36,11 @@ function install_cr() { while [ $attempt_num -lt $max_attempts ] do + if [ $attempt_num -eq 3 ]; then + echo "Download failed multiple times, try to change apt source ..." + sudo sed -i 's@//.*archive.ubuntu.com@//mirrors.ustc.edu.cn@g' /etc/apt/sources.list + sudo apt-get update + fi if [[ "${CONTAINER_RUNTIME}" = "docker" ]]; then install_docker verify_docker_installed |
