Is it always unsuccessful for Ubuntu to install docker,add-apt-repository?

question

step by step according to the document, in fact, I have no problem walking down the Ubuntu server like this, and then in desktop

sudo add-apt-repository \
   "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
   $(lsb_release -cs) \
   stable"

when you find this step, you will make an error

W: Failed to fetch https://download.docker.com/linux/ubuntu/dists/bionic/InRelease  Could not wait for server fd - select (11: Resource temporarily unavailable) [IP: 13.35.121.111 443]
W: Some index files failed to download. They have been ignored, or old ones used instead.

Ubuntu is 18.04

Jun.24,2021

although it has been a long time, this problem has been encountered today and has been solved by setting up a proxy.

-sharp 
export http_proxy=http://<proxy>:<port>
export https_proxy=http://<proxy>:<port>
-sharp  `sudo add-apt-repository`  `-E`
sudo -E add-apt-repository \
   "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
   $(lsb_release -cs) \
   stable"

copied, `

< H1 > first set proxy < / H1 >

export http_proxy= http://:
export https_proxy= http://:
` indicates that there is a syntax error near the unexpected symbol `newline' of bash:. What are we going to do with it?

  • Linux scheduled task backup docker database problem

    this is a backup script -sharp! bin bash docker_name=mysql_container data_dir= home ubuntu mysql_dump usr bin docker exec -it $docker_name usr bin mysqldump -u root -p root --all-databases > "$data_dir data_`date +%Y%m%d`.sql" A file wi...

    Mar.02,2021
  • Sudo apt-get update 403

    the following problems occurred when installing docker according to the docker document refer https: docs.docker.com insta. http: ppa.launchpad.net gusb. bionic InRelease 403 Forbidden [ IP: 91.189.95.8380] system ubuntu 18.04 Why does 403 a...

    Apr.01,2021
Menu