Unix & Linux: Unable to locate package `docker-ce` on a 64bit ubuntu (5 Solutions!!)
Описание
Unix & Linux: Unable to locate package `docker-ce` on a 64bit ubuntu
The Question: I'm trying to install Docker on a Ubuntu 64 machine following https://
docs.docker.com/engine/installation/linux/ubuntu/#install-using-the-repository.
Sadly Ubuntu seems it is not able to locate the docker-ce package. Any idea to
fix it or at least to track what is happening ?
Here some details for you...
$ uname --all; sudo grep docker /etc/apt/sources.list; sudo apt-get install
docker-ce
Linux ubuntu 4.4.0-62-generic #83-Ubuntu SMP Wed Jan 18 14:10:15 UTC 2017
x86_64 x86_64 x86_64 GNU/Linux
deb [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable.
# deb-src [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable.
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package docker-ce
Solutions: Please watch the whole video to see all solutions, in order of how many people found them helpful
== This solution helped 210 people ==
**** Ubuntu 20.04 (Focal) ****
sudo apt install apt-transport-https ca-certificates curl software-properties-
common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/
ubuntu focal stable"
**** Ubuntu 19.10 (Eoan) ****
sudo apt install apt-transport-https ca-certificates curl software-properties-
common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/
ubuntu eoan stable"
**** Ubuntu 19.04 (Disco) ****
sudo apt install apt-transport-https ca-certificates curl software-properties-
common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/
ubuntu disco stable"
**** Ubuntu 18.10 (Cosmic) ****
sudo apt install apt-transport-https ca-certificates curl software-properties-
common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/
ubuntu bionic test"
**** Ubuntu 18.04 (bionic) ****
sudo apt install apt-transport-https ca-certificates curl software-properties-
common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/
ubuntu bionic stable"
**** Ubuntu 17.10 ****
docker-ce package is available on the official docker (Ubutu Artful) repository
, to install it use the following commands :
sudo apt install apt-transport-https ca-certificates curl software-properties-
common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/
ubuntu artful stable"
**** Ubuntu 16.04 ****
You can install docker-ce on Ubuntu as follows:
sudo apt-get install apt-transport-https ca-certificates curl software-
properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/
ubuntu xenial stable"
Run the following:
sudo apt update
apt-cache search docker-ce
sample output:
docker-ce - Docker: the open-source application container engine
Install docker-ce:
For Ubuntu 16.04 you need to run sudo apt update. For Ubuntu 18.04 and higher,
add-apt-repository will execute apt update automatically:
sudo apt install docker-ce
Docker , https://docs.docker.com/install/linux/docker-ce/ubuntu/#os-
requirements
With thanks & praise to God, and with thanks to the many people who have made this project possible! | Content (except music & images) licensed under cc by-sa 3.0 | Music: https://www.bensound.com/royalty-free-music | Images: https://stocksnap.io/license & others | With thanks to user kubacech (https://unix.stackexchange.com/users/261045), user Kevdog777 (https://unix.stackexchange.com/users/20752), user Johan (https://unix.stackexchange.com/users/286396), user Hieu (https://unix.stackexchange.com/users/102003), user GAD3R (https://unix.stackexchange.com/users/153195), user ENDEESA (https://unix.stackexchange.com/users/280927), user danidemi (https://unix.stackexchange.com/users/85598), and the Stack Exchange Network (http://unix.stackexchange.com/questions/363048). Trademarks are property of their respective owners. Disclaimer: All information is provided "AS IS" without warranty of any kind. You are responsible for your own actions. Please contact me if anything is amiss at Roel D.OT VandePaar A.T gmail.com.
Рекомендуемые видео



















