Debian

無法在 Debian 8 上安裝 docker

  • February 9, 2016

這是我第一次與Debian打交道,我需要一個docker。我正在關注https://docs.docker.com/engine/installation/linux/debian/來安裝它,但是我遇到了錯誤:

% apt-get update
Ign cdrom://[Debian GNU/Linux 8.3.0 _Jessie_ - Official amd64 DVD Binary-1 20160123-19:03] jessie InRelease
Ign cdrom://[Debian GNU/Linux 8.3.0 _Jessie_ - Official amd64 DVD Binary-1 20160123-19:03] jessie Release.gpg
Ign cdrom://[Debian GNU/Linux 8.3.0 _Jessie_ - Official amd64 DVD Binary-1 20160123-19:03] jessie Release
Ign cdrom://[Debian GNU/Linux 8.3.0 _Jessie_ - Official amd64 DVD Binary-1 20160123-19:03] jessie/contrib amd64 Packages/DiffIndex
Ign cdrom://[Debian GNU/Linux 8.3.0 _Jessie_ - Official amd64 DVD Binary-1 20160123-19:03] jessie/main amd64 Packages/DiffIndex
Ign cdrom://[Debian GNU/Linux 8.3.0 _Jessie_ - Official amd64 DVD Binary-1 20160123-19:03] jessie/contrib Translation-en_CA
Ign cdrom://[Debian GNU/Linux 8.3.0 _Jessie_ - Official amd64 DVD Binary-1 20160123-19:03] jessie/main Translation-en_CA
Hit http://security.debian.org jessie/updates InRelease
Hit http://security.debian.org jessie/updates/main Sources
Hit http://security.debian.org jessie/updates/contrib Sources
Hit http://security.debian.org jessie/updates/main amd64 Packages
Hit http://security.debian.org jessie/updates/contrib amd64 Packages
Hit http://security.debian.org jessie/updates/contrib Translation-en
Hit http://security.debian.org jessie/updates/main Translation-en
Reading package lists... Done
% apt-get install apt-transport-https ca-certificates
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package apt-transport-https
%

更新 按照建議,我更新了/etc/apt/sources.list

% cat /etc/apt/sources.list
#
deb http://ftp.de.debian.org/debian/ jessie main
deb-src http://ftp.de.debian.org/debian/ jessie main

deb http://security.debian.org/ jessie/updates main
deb-src http://security.debian.org/ jessie/updates main

deb http://ftp.de.debian.org/debian/ jessie-updates main
deb-src http://ftp.de.debian.org/debian/ jessie-updates main

但是apt-cache show apt-transport-https返回錯誤(無法找到包 apt-transport-https),and apt-get install apt-transport-https返回與以前相同的失敗。

我應該看什麼來解決這個問題?謝謝。

軟體包 apt-transport-https 可在官方儲存庫中找到(用 選中apt-cache show apt-transport-https),但似乎沒有包含在您用於安裝的 DVD 中。

修改您的 sources.list 以使用 Internet 儲存庫而不是 DVD 應該可以修復它。另請參閱: https ://unix.stackexchange.com/questions/16370/apt-get-prompts-for-cds-when-installing-packages-how-do-i-make-it-stop

引用自:https://serverfault.com/questions/755040