Debug apt / Installing Docker - Unable to locate package docker-ce
Olivia Zamora
I have followed official instructions for Docker installation - Debian Jessie.
In
/etc/apt/sources.listit says now,deb [arch=amd64] jessie stableapt-get updateseems to download packages correctly (output below)- but then, on
apt-get install docker-ce, the system reports to be "unable to locate package docker-ce".
How can I debug what is happening? Never had this before.
Output of apt-get update:
Hit jessie InRelease
Hit jessie/updates InRelease
Hit jessie/all Sources
Hit jessie/updates/main Sources
Hit jessie/updates/contrib Sources
Hit jessie/all i386 Packages
Hit jessie/updates/main i386 Packages
Hit jessie/updates/contrib i386 Packages
Hit jessie/updates/contrib Translation-en
Hit jessie InRelease
Hit jessie/updates/main Translation-en
Ign jessie InRelease
Hit jessie/stable amd64 Packages
Hit jessie-updates InRelease
Hit jessie Release.gpg
Get:1 jessie/stable Translation-en_US [587 B]
Ign jessie/all Translation-en_US
Ign jessie/all Translation-en
Hit jessie-updates/main Sources
Get:2 jessie/stable Translation-en [584 B]
Hit jessie-updates/contrib Sources
Get:3 jessie/stable Translation-en_US [587 B]
Get:4 jessie-updates/main i386 Packages/DiffIndex [8,884 B]
Get:5 jessie/stable Translation-en [584 B]
Hit jessie-updates/contrib i386 Packages
Hit jessie-updates/contrib Translation-en
Get:6 jessie/stable Translation-en_US [587 B]
Get:7 jessie-updates/main Translation-en/DiffIndex [3,688 B]
Get:8 jessie/stable Translation-en [584 B]
Hit jessie Release
Get:9 jessie/stable Translation-en_US [587 B]
Hit jessie/main Sources
Get:10 jessie/stable Translation-en [584 B]
Hit jessie/contrib Sources
Hit jessie/main i386 Packages
Get:11 jessie/stable Translation-en_US [587 B]
Ign jessie/stable Translation-en_US
Hit jessie/contrib i386 Packages
Hit jessie/contrib Translation-en
Hit jessie/main Translation-en
Get:12 jessie/stable Translation-en [584 B]
Ign jessie/stable Translation-en 2 Answers
To install docker-ce on debian jessie:
After adding deb [arch=amd64] jessie stable to your /etc/sources.list. ( you don't need the software-properties-common package or the add-apt-repository command)
Install the required package:
sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates curlAdd the gpg key:
curl -fsSl | sudo apt-get key add -Update and search for docker-ce package:
sudo apt-get update
apt-cache search docker-ceThen install the docker-ce package:
sudo apt-get install docker-ce 1 Specific answer for linuxmint user. Description: Linux Mint 20.1 Codename: ulyssa
While offical release (ubuntu), have the necessary file and the official docker installation method using dpkg. You can download manually the necessary file and install it using dpkg
I try the official script to install but it fails.
Disclaimer, it may have unintended drawback
It avaliable on snap, just do sudo snap install docker