AFAIK, package installation needs user inputs for configuring packages. debconf uses frontend Dialog and expects environment variable TERM to be set. If you skip this step by adding "RUN DEBIAN_FRONTED=noninteractive" to the dockerfile, might solve the problem. Or otherwise, need to find a way to configure packages in dockerfile.
Thanks, Roshan Deniyage Associate Technical Lead WSO2, Inc: http://wso2.com Mobile : +94 777636406 Twitter : *https://twitter.com/roshku <https://twitter.com/roshku>* LinkedIn : https://www.linkedin.com/in/roshandeniyage On Wed, Oct 1, 2014 at 1:19 PM, Vishanth Balasubramaniam <[email protected] > wrote: > Removing the Training-group. > > On Wed, Oct 1, 2014 at 12:53 PM, Vishanth Balasubramaniam < > [email protected]> wrote: > >> Hi, >> >> I am currently working on creating a cassandra cartridge for apache >> stratos using docker. >> Even though the cartridge gets successfully built, the following error >> messages occurred. >> >> ---> c2bbd571afe5 >> Step 4 : RUN apt-get install -y openssh-server >> ---> Running in 25f73db5e21c >> >> Unpacking openssh-server (from >> .../openssh-server_1%3a5.9p1-5ubuntu1.4_amd64.deb) ... >> debconf: unable to initialize frontend: Dialog >> debconf: (TERM is not set, so the dialog frontend is not usable.) >> debconf: falling back to frontend: Readline >> debconf: unable to initialize frontend: Readline >> debconf: (Can't locate Term/ReadLine.pm in @INC (@INC contains: /etc/perl >> /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 >> /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 >> /usr/local/lib/site_perl .) at >> /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.) >> debconf: falling back to frontend: Teletype >> >> Setting up ca-certificates (20130906ubuntu0.12.04.1) ... >> debconf: unable to initialize frontend: Dialog >> debconf: (TERM is not set, so the dialog frontend is not usable.) >> debconf: falling back to frontend: Readline >> debconf: unable to initialize frontend: Readline >> debconf: (Can't locate Term/ReadLine.pm in @INC (@INC contains: /etc/perl >> /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 >> /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 >> /usr/local/lib/site_perl .) at >> /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.) >> debconf: falling back to frontend: Teletype >> 164 added, 0 removed; done. >> done. >> Setting up krb5-locales (1.10+dfsg~beta1-2ubuntu0.5) ... >> Setting up openssh-client (1:5.9p1-5ubuntu1.4) ... >> debconf: unable to initialize frontend: Dialog >> debconf: (TERM is not set, so the dialog frontend is not usable.) >> debconf: falling back to frontend: Readline >> debconf: unable to initialize frontend: Readline >> debconf: (Can't locate Term/ReadLine.pm in @INC (@INC contains: /etc/perl >> /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 >> /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 >> /usr/local/lib/site_perl .) at >> /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.) >> debconf: falling back to frontend: Teletype >> Setting up wget (1.13.4-2ubuntu1.1) ... >> Setting up xauth (1:1.0.6-1) ... >> Setting up openssh-server (1:5.9p1-5ubuntu1.4) ... >> debconf: unable to initialize frontend: Dialog >> debconf: (TERM is not set, so the dialog frontend is not usable.) >> debconf: falling back to frontend: Readline >> debconf: unable to initialize frontend: Readline >> debconf: (Can't locate Term/ReadLine.pm in @INC (@INC contains: /etc/perl >> /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 >> /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 >> /usr/local/lib/site_perl .) at >> /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.) >> debconf: falling back to frontend: Teletype >> >> invoke-rc.d: policy-rc.d denied execution of stop. >> >> Looking forward to know what causes this issue. >> >> Thank you, >> >> -- >> *Vishanth Balasubramaniam* >> Software Engineer >> WSO2 Inc.; http://wso2.com >> lean.enterprise.middleware >> >> mobile: *+94771737718* >> about me: *http://about.me/vishanth <http://about.me/vishanth>* >> >> > > > -- > *Vishanth Balasubramaniam* > Software Engineer > WSO2 Inc.; http://wso2.com > lean.enterprise.middleware > > mobile: *+94771737718* > about me: *http://about.me/vishanth <http://about.me/vishanth>* > >
