Docker安装在Linux Mint 19 Tara上
我试图在Linux上安装docker 详情如下-Docker安装在Linux Mint 19 Tara上,linux,docker,ubuntu,linux-mint,cinnamon,Linux,Docker,Ubuntu,Linux Mint,Cinnamon,我试图在Linux上安装docker 详情如下- Mint version 19, Code name : Tara, PackageBase : Ubuntu Bionic Cinnamon (64-bit) 参考链接: 步骤: 1. sudo apt-get remove docker docker-engine docker.io 2. sudo apt-get update 3. sudo apt-get install apt-transport
Mint version 19,
Code name : Tara,
PackageBase : Ubuntu Bionic
Cinnamon (64-bit)
参考链接:
步骤:
1. sudo apt-get remove docker docker-engine docker.io
2. sudo apt-get update
3. sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
4. curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
5. sudo apt-key fingerprint 0EBFCD88
6. sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
7. sudo apt-get update
8. sudo apt-get install docker-ce
对于步骤6,我检查了lsb_版本-cs
xxxxxxxxx:~$ lsb_release -cs
tara
我在第7步看到了这个问题
xxxxxxxxxxx:~$ sudo apt-get update
Ign:1 http://packages.linuxmint.com tara InRelease
Hit:2 http://packages.linuxmint.com tara Release
Hit:3 http://la-mirrors.evowise.com/ubuntu bionic InRelease
Hit:4 http://la-mirrors.evowise.com/ubuntu bionic-updates InRelease
Ign:5 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:7 http://la-mirrors.evowise.com/ubuntu bionic-backports InRelease
Hit:8 http://archive.canonical.com/ubuntu bionic InRelease
Get:9 http://security.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]
Hit:10 http://dl.google.com/linux/chrome/deb stable Release
Ign:11 https://download.docker.com/linux/ubuntu tara InRelease
Err:13 https://download.docker.com/linux/ubuntu tara Release
404 Not Found [IP: 2600:9000:2045:3c00:3:db06:4200:93a1 443]
Reading package lists... Done
E: The repository 'https://download.docker.com/linux/ubuntu tara Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
作为步骤8的效果,我看到下面的错误
xxxxxxxx:~$ sudo apt-get install docker-ce
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package docker-ce is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'docker-ce' has no installation candidate
看起来linux mint Tara或Ubuntu Bionic与Docker之间存在一些问题
有人能告诉我如何解决问题并安装docker吗?docker存储库位于
https://download.docker.com/linux/ubuntu
不知道LinuxMint的代码名tara
。使用Ubuntu的代码名,bionic
也就是说,上面的第6步应该是:
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(. /etc/os-release; echo "$UBUNTU_CODENAME") stable"
这是因为LinuxMint构建在Ubuntu之上。在这一步中,我们只是将Linux Mint代码名(由lsb_release-cs
返回)替换为Ubuntu基本代码名(由/etc/os release;echo“$Ubuntu_codename”
返回)
因为您已经运行了错误的命令(使用Linux Mint代码名),所以您可能会发现您继续看到带有
apt get update
的警告。要修复这些问题,可以删除相应的文件(从/etc/apt/sources.list.d/
中说tara
,或者使用另一个GUI或命令行工具为您完成此操作的人。我投票关闭此问题,因为它不是关于编程的,而是关于Linux的使用。我建议在上重新问这个问题。@peterh关于stackoverflow的问题并非每一个都是关于编程。在这个问题中提出的主题是真正的问题,因为我在docker的手册中没有找到关于在linux上安装的任何明确细节。请查看该主题的答案以获得更清晰的信息。@ShivrejJadhav加入评论聊天。FWIW我发现la-mirrors.evowise非常不一致。请尝试math.ucdavis.edu server insteadUse“$(./etc/os release;echo“$UBUNTU_CODENAME”)”而不是“$(lsb_release-cs)”。我检查了它的工作原理)很棒的信息!我将把它添加到上面的答案中。这在linux mint 19.2中不起作用。我在这里找到了解决方案: