E: Unable to locate package apt-transport-https

1,530 views
Skip to first unread message

Stein-Erik

unread,
Dec 1, 2016, 4:42:28 AM12/1/16
to Phusion Passenger Discussions

I am following the procedure on this web page:

  https://www.phusionpassenger.com/library/install/apache/install/oss/jessie/

More specifically, it says:

 These commands will install Passenger + Apache module through
 Phusion's APT repository.


      # Install Phusion PGP key and add HTTPS support for APT
    apt-key adv --keyserver hkp://keyserver.ubuntu.com:80
                --recv-keys 561F9B9CAC40B2F7
    apt-get install -y apt-transport-https ca-certificates

...

However, I get an error that I didn't get about a week ago:

Sending build context to Docker daemon  16.9 kB
Step 1 : FROM ruby:2.3.2
 ---> d0f948bdaa95
Step 2 : RUN apt-get update  && apt-get install -y sudo  && apt-get install -y nodejs  && apt-get install -y apache2  && rm -rf /var/lib/apt/lists/*
 ---> Using cache
 ---> 092546f22ee2
Step 3 : RUN apt-key adv       --keyserver hkp://keyserver.ubuntu.com:80       --recv-keys 561F9B9CAC40B2F7
 ---> Using cache
 ---> 93955013c221
Step 4 : RUN apt-get install -y apt-transport-https                        ca-certificates
 ---> Running in 3b9d5e3da049
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package apt-transport-https
The command '/bin/sh -c apt-get install -y apt-transport-https                        ca-certificates' returned a non-zero code: 100

Stein-Erik

Hongli Lai

unread,
Dec 1, 2016, 5:25:59 AM12/1/16
to phusion-passenger
The problem is the 'rm -rf /var/lib/apt/lists/*'. By deleting those files, 'apt-get install' does not work.

--
Phusion B.V. | Web Application deployment, scaling, and monitoring solutions

Web: http://www.phusion.nl/
E-mail: in...@phusion.nl
Chamber of commerce no: 63501007 (The Netherlands)

Stein-Erik

unread,
Dec 1, 2016, 7:15:17 AM12/1/16
to Phusion Passenger Discussions

Thanks a lot - that was it.

I was adding 'clean up' commands to make the docker image as small as possible.

I'll restructure it to only do that command at the end of all apt installations.

Best regards,
  Stein-Erik
Reply all
Reply to author
Forward
0 new messages