1

This is the first time I deal with Debian, and I need a docker. I was following https://docs.docker.com/engine/installation/linux/debian/ to get it installed, however I faced the error:

% 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
%

UPDATE As recommended, I updated /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

However apt-cache show apt-transport-https returns error (Unable to locate package apt-transport-https), and apt-get install apt-transport-https returns the same fail as before.

What should I be looking at to fix this? Thanks.

5
  • You didn't finish updating your repositories. Feb 9, 2016 at 20:34
  • @Michaeil, can you tell me what exactly I have missed? I think all the required repos are liste in sources.list
    – Mark
    Feb 9, 2016 at 20:40
  • 2
    You don't have the Debian jessie repo. You only have the jessie updates repo (and listed twice). Feb 9, 2016 at 20:42
  • I updated sources.list, please see my original post. However still doesn't help.
    – Mark
    Feb 9, 2016 at 20:51
  • If you're still experiencing this problem, please do apt-get update and provide the output.
    – gxx
    Feb 10, 2016 at 0:26

1 Answer 1

3

The package apt-transport-https is available in the official repositories (checked with apt-cache show apt-transport-https) but does not seem to be included on the DVD you have used for installation.

Modifying your sources.list to use internet repositories instead of the DVD should fix it. See also here: https://unix.stackexchange.com/questions/16370/apt-get-prompts-for-cds-when-installing-packages-how-do-i-make-it-stop

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .