Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #236824 > unrolled thread

Docker installation problem

Started by"Gary L. Roach" <garyroach719@gmail.com>
First post2021-07-04 01:20 +0200
Last post2021-07-04 06:20 +0200
Articles 5 — 4 participants

Back to article view | Back to linux.debian.user


Contents

  Docker installation problem "Gary L. Roach" <garyroach719@gmail.com> - 2021-07-04 01:20 +0200
    Re: Docker installation problem Georgi Naplatanov <gosho@oles.biz> - 2021-07-04 01:40 +0200
      Re: Docker installation problem "Gary L. Roach" <garyroach719@gmail.com> - 2021-07-04 02:40 +0200
        Re: Docker installation problem Greg Wooledge <greg@wooledge.org> - 2021-07-04 03:10 +0200
    Re: Docker installation problem Robbi Nespu <robbinespu@gmail.com> - 2021-07-04 06:20 +0200

#236824 — Docker installation problem

From"Gary L. Roach" <garyroach719@gmail.com>
Date2021-07-04 01:20 +0200
SubjectDocker installation problem
Message-ID<CwX5v-2ji-1@gated-at.bofh.it>

[Multipart message — attachments visible in raw view] — view raw

Hi all,

Operating System: Debian GNU/Linux 10
KDE Plasma Version: 5.14.5
Qt Version: 5.11.3
KDE Frameworks Version: 5.54.0
Kernel Version: 4.19.0-17-amd64
OS Type: 64-bit
Processors: 4 × AMD FX(tm)-4350 Quad-Core Processor
Memory: 15.6 GiB of RAM

I have been trying to get a working installation of Docker. This should 
be easy considering all of the information available. Alas, for me, this 
doesn't seem to be the case. My latest attempt was to use the 
instructions at 
*https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-debian-10* 
. I followed the instructions to the letter with the exception of 
skipping over the repository setup that I installed before. I got the 
following:

> apt install docker-ce
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> The following additional packages will be installed:
>   docker-ce-cli docker-ce-rootless-extras docker-scan-plugin
> Recommended packages:
>   slirp4netns
> The following NEW packages will be installed:
>   docker-ce docker-ce-cli docker-ce-rootless-extras docker-scan-plugin
> 0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
> Need to get 0 B/79.1 MB of archives.
> After this operation, 335 MB of additional disk space will be used.
> Do you want to continue? [Y/n]
> qt.qpa.screen: QXcbConnection: Could not connect to display
> /Could not connect to any X display./
> debconf: unable to initialize frontend: Kde
> debconf: (debconf-kde-helper terminated abnormally (exit status: 1))
> debconf: falling back to frontend: Qt
> debconf: unable to initialize frontend: Qt
> debconf: (Can't locate Debconf/FrontEnd/Qt.pm in @INC (you may need to 
> install the Debconf::FrontEnd::Qt module) (@INC contains: /etc/perl 
> /usr/local/lib/x86_64-linux-gnu/perl/5.28.1 
> /usr/local/share/perl/5.28.1 /usr/lib/x86_64-linux-gnu/perl5/5.28 
> /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.28 
> /usr/share/perl/5.28 /usr/local/lib/site_perl 
> /usr/lib/x86_64-linux-gnu/perl-base) at (eval 22) line 2.)
> debconf: falling back to frontend: Dialog
> Selecting previously unselected package docker-ce-cli.
> (Reading database ... 263049 files and directories currently installed.)
> Preparing to unpack 
> .../docker-ce-cli_5%3a20.10.7~3-0~debian-buster_amd64.deb ...
> Unpacking docker-ce-cli (5:20.10.7~3-0~debian-buster) ...
> Selecting previously unselected package docker-ce.
> Preparing to unpack 
> .../docker-ce_5%3a20.10.7~3-0~debian-buster_amd64.deb ...
> Unpacking docker-ce (5:20.10.7~3-0~debian-buster) ...
> Selecting previously unselected package docker-ce-rootless-extras.
> Preparing to unpack 
> .../docker-ce-rootless-extras_5%3a20.10.7~3-0~debian-buster_amd64.deb ...
> Unpacking docker-ce-rootless-extras (5:20.10.7~3-0~debian-buster) ...
> Selecting previously unselected package docker-scan-plugin.
> Preparing to unpack 
> .../docker-scan-plugin_0.8.0~debian-buster_amd64.deb ...
> Unpacking docker-scan-plugin (0.8.0~debian-buster) ...
> Setting up docker-scan-plugin (0.8.0~debian-buster) ...
> Setting up docker-ce-cli (5:20.10.7~3-0~debian-buster) ...
> Setting up docker-ce-rootless-extras (5:20.10.7~3-0~debian-buster) ...
> Setting up docker-ce (5:20.10.7~3-0~debian-buster) ...Could not 
> connect to any X display.
> Created symlink 
> /etc/systemd/system/multi-user.target.wants/docker.service → 
> /lib/systemd/system/docker.service.
> Created symlink /etc/systemd/system/sockets.target.wants/docker.socket 
> → /lib/systemd/system/docker.socket.
> Job for docker.service failed because the control process exited with 
> error code.
> See "systemctl status docker.service" and "journalctl -xe" for 
> details.Could not connect to any X display.
> invoke-rc.d: initscript docker, action "start" failed.
> ● docker.service - Docker Application Container Engine
>    Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor 
> preset: enabled)
>    Active: activating (auto-restart) (Result: exit-code) since Sat 
> 2021-07-03 15:54:00 PDT; 9ms ago
>      Docs: https://docs.docker.com
>   Process: 28141 ExecStart=/usr/bin/dockerd -H fd:// 
> --containerd=/run/containerd/containerd.sock (code=exited, 
> status=1/FAILURE)
>  Main PID: 28141 (code=exited, status=1/FAILURE)
> dpkg: error processing package docker-ce (--configure):
>  installed docker-ce package post-installation script subprocess 
> returned error exit status 1
> Processing triggers for man-db (2.8.5-2) ...
> Processing triggers for systemd (241-7~deb10u7) ...
> Errors were encountered while processing:
>  docker-ce
> E: Sub-process /usr/bin/dpkg returned an error code (1)
> root@debian:/var/run/docker# 
> https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-debian-10https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-debian-10https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-debian-10https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-debian-10
Note the error at docker.service and the /"Could not connect to any X 
display" problem/. I'm not sure what to do to fix this. Any help will be 
appreciated.

Gary R.

[toc] | [next] | [standalone]


#236825

FromGeorgi Naplatanov <gosho@oles.biz>
Date2021-07-04 01:40 +0200
Message-ID<CwXoR-2q7-1@gated-at.bofh.it>
In reply to#236824
On 7/4/21 2:17 AM, Gary L. Roach wrote:
> Hi all,
> 
> Operating System: Debian GNU/Linux 10
> KDE Plasma Version: 5.14.5
> Qt Version: 5.11.3
> KDE Frameworks Version: 5.54.0
> Kernel Version: 4.19.0-17-amd64
> OS Type: 64-bit
> Processors: 4 × AMD FX(tm)-4350 Quad-Core Processor
> Memory: 15.6 GiB of RAM
> 
> I have been trying to get a working installation of Docker. This should
> be easy considering all of the information available. Alas, for me, this
> doesn't seem to be the case. My latest attempt was to use the
> instructions at
> *https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-debian-10*
> . I followed the instructions to the letter with the exception of
> skipping over the repository setup that I installed before. I got the
> following:
> 
>> apt install docker-ce
>> Reading package lists... Done
>> Building dependency tree       
>> Reading state information... Done
>> The following additional packages will be installed:
>>   docker-ce-cli docker-ce-rootless-extras docker-scan-plugin
>> Recommended packages:
>>   slirp4netns
>> The following NEW packages will be installed:
>>   docker-ce docker-ce-cli docker-ce-rootless-extras docker-scan-plugin
>> 0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
>> Need to get 0 B/79.1 MB of archives.
>> After this operation, 335 MB of additional disk space will be used.
>> Do you want to continue? [Y/n]
>> qt.qpa.screen: QXcbConnection: Could not connect to display
>> /Could not connect to any X display./
>> debconf: unable to initialize frontend: Kde
>> debconf: (debconf-kde-helper terminated abnormally (exit status: 1))
>> debconf: falling back to frontend: Qt
>> debconf: unable to initialize frontend: Qt
>> debconf: (Can't locate Debconf/FrontEnd/Qt.pm in @INC (you may need to
>> install the Debconf::FrontEnd::Qt module) (@INC contains: /etc/perl
>> /usr/local/lib/x86_64-linux-gnu/perl/5.28.1
>> /usr/local/share/perl/5.28.1 /usr/lib/x86_64-linux-gnu/perl5/5.28
>> /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.28
>> /usr/share/perl/5.28 /usr/local/lib/site_perl
>> /usr/lib/x86_64-linux-gnu/perl-base) at (eval 22) line 2.)
>> debconf: falling back to frontend: Dialog
>> Selecting previously unselected package docker-ce-cli.
>> (Reading database ... 263049 files and directories currently installed.)
>> Preparing to unpack
>> .../docker-ce-cli_5%3a20.10.7~3-0~debian-buster_amd64.deb ...
>> Unpacking docker-ce-cli (5:20.10.7~3-0~debian-buster) ...
>> Selecting previously unselected package docker-ce.
>> Preparing to unpack
>> .../docker-ce_5%3a20.10.7~3-0~debian-buster_amd64.deb ...
>> Unpacking docker-ce (5:20.10.7~3-0~debian-buster) ...
>> Selecting previously unselected package docker-ce-rootless-extras.
>> Preparing to unpack
>> .../docker-ce-rootless-extras_5%3a20.10.7~3-0~debian-buster_amd64.deb ...
>> Unpacking docker-ce-rootless-extras (5:20.10.7~3-0~debian-buster) ...
>> Selecting previously unselected package docker-scan-plugin.
>> Preparing to unpack
>> .../docker-scan-plugin_0.8.0~debian-buster_amd64.deb ...
>> Unpacking docker-scan-plugin (0.8.0~debian-buster) ...
>> Setting up docker-scan-plugin (0.8.0~debian-buster) ...
>> Setting up docker-ce-cli (5:20.10.7~3-0~debian-buster) ...
>> Setting up docker-ce-rootless-extras (5:20.10.7~3-0~debian-buster) ...
>> Setting up docker-ce (5:20.10.7~3-0~debian-buster) ...Could not
>> connect to any X display.
>> Created symlink
>> /etc/systemd/system/multi-user.target.wants/docker.service →
>> /lib/systemd/system/docker.service.
>> Created symlink /etc/systemd/system/sockets.target.wants/docker.socket
>> → /lib/systemd/system/docker.socket.
>> Job for docker.service failed because the control process exited with
>> error code.
>> See "systemctl status docker.service" and "journalctl -xe" for
>> details.Could not connect to any X display.
>> invoke-rc.d: initscript docker, action "start" failed.
>> ● docker.service - Docker Application Container Engine
>>    Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor
>> preset: enabled)
>>    Active: activating (auto-restart) (Result: exit-code) since Sat
>> 2021-07-03 15:54:00 PDT; 9ms ago
>>      Docs: https://docs.docker.com
>>   Process: 28141 ExecStart=/usr/bin/dockerd -H fd://
>> --containerd=/run/containerd/containerd.sock (code=exited,
>> status=1/FAILURE)
>>  Main PID: 28141 (code=exited, status=1/FAILURE)
>> dpkg: error processing package docker-ce (--configure):
>>  installed docker-ce package post-installation script subprocess
>> returned error exit status 1
>> Processing triggers for man-db (2.8.5-2) ...
>> Processing triggers for systemd (241-7~deb10u7) ...
>> Errors were encountered while processing:
>>  docker-ce
>> E: Sub-process /usr/bin/dpkg returned an error code (1)
>> root@debian:/var/run/docker#
>> https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-debian-10https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-debian-10https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-debian-10https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-debian-10
> Note the error at docker.service and the /"Could not connect to any X
> display" problem/. I'm not sure what to do to fix this. Any help will be
> appreciated.
> 

Hi Gary,

try to reconfigure debconf with following command as root:

# dpkg-reconfigure debconf

and choose "Dialog" as interface to use.

Then try to install docker again.

Kind regards
Georgi

[toc] | [prev] | [next] | [standalone]


#236826

From"Gary L. Roach" <garyroach719@gmail.com>
Date2021-07-04 02:40 +0200
Message-ID<CwYkV-2YU-1@gated-at.bofh.it>
In reply to#236825
Thank you Georgi. That fixed the problem. I wonder how many of the other 
problems I have been have are due to debconf being screwed up. What 
tipped you off? This is not an obvious cause.

Thanks

Gary R.

On 7/3/21 4:39 PM, Georgi Naplatanov wrote:
> On 7/4/21 2:17 AM, Gary L. Roach wrote:
>> Hi all,
>>
>> Operating System: Debian GNU/Linux 10
>> KDE Plasma Version: 5.14.5
>> Qt Version: 5.11.3
>> KDE Frameworks Version: 5.54.0
>> Kernel Version: 4.19.0-17-amd64
>> OS Type: 64-bit
>> Processors: 4 × AMD FX(tm)-4350 Quad-Core Processor
>> Memory: 15.6 GiB of RAM
>>
>> I have been trying to get a working installation of Docker. This should
>> be easy considering all of the information available. Alas, for me, this
>> doesn't seem to be the case. My latest attempt was to use the
>> instructions at
>> *https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-debian-10*
>> . I followed the instructions to the letter with the exception of
>> skipping over the repository setup that I installed before. I got the
>> following:
>>
>>> apt install docker-ce
>>> Reading package lists... Done
>>> Building dependency tree
>>> Reading state information... Done
>>> The following additional packages will be installed:
>>>    docker-ce-cli docker-ce-rootless-extras docker-scan-plugin
>>> Recommended packages:
>>>    slirp4netns
>>> The following NEW packages will be installed:
>>>    docker-ce docker-ce-cli docker-ce-rootless-extras docker-scan-plugin
>>> 0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
>>> Need to get 0 B/79.1 MB of archives.
>>> After this operation, 335 MB of additional disk space will be used.
>>> Do you want to continue? [Y/n]
>>> qt.qpa.screen: QXcbConnection: Could not connect to display
>>> /Could not connect to any X display./
>>> debconf: unable to initialize frontend: Kde
>>> debconf: (debconf-kde-helper terminated abnormally (exit status: 1))
>>> debconf: falling back to frontend: Qt
>>> debconf: unable to initialize frontend: Qt
>>> debconf: (Can't locate Debconf/FrontEnd/Qt.pm in @INC (you may need to
>>> install the Debconf::FrontEnd::Qt module) (@INC contains: /etc/perl
>>> /usr/local/lib/x86_64-linux-gnu/perl/5.28.1
>>> /usr/local/share/perl/5.28.1 /usr/lib/x86_64-linux-gnu/perl5/5.28
>>> /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.28
>>> /usr/share/perl/5.28 /usr/local/lib/site_perl
>>> /usr/lib/x86_64-linux-gnu/perl-base) at (eval 22) line 2.)
>>> debconf: falling back to frontend: Dialog
>>> Selecting previously unselected package docker-ce-cli.
>>> (Reading database ... 263049 files and directories currently installed.)
>>> Preparing to unpack
>>> .../docker-ce-cli_5%3a20.10.7~3-0~debian-buster_amd64.deb ...
>>> Unpacking docker-ce-cli (5:20.10.7~3-0~debian-buster) ...
>>> Selecting previously unselected package docker-ce.
>>> Preparing to unpack
>>> .../docker-ce_5%3a20.10.7~3-0~debian-buster_amd64.deb ...
>>> Unpacking docker-ce (5:20.10.7~3-0~debian-buster) ...
>>> Selecting previously unselected package docker-ce-rootless-extras.
>>> Preparing to unpack
>>> .../docker-ce-rootless-extras_5%3a20.10.7~3-0~debian-buster_amd64.deb ...
>>> Unpacking docker-ce-rootless-extras (5:20.10.7~3-0~debian-buster) ...
>>> Selecting previously unselected package docker-scan-plugin.
>>> Preparing to unpack
>>> .../docker-scan-plugin_0.8.0~debian-buster_amd64.deb ...
>>> Unpacking docker-scan-plugin (0.8.0~debian-buster) ...
>>> Setting up docker-scan-plugin (0.8.0~debian-buster) ...
>>> Setting up docker-ce-cli (5:20.10.7~3-0~debian-buster) ...
>>> Setting up docker-ce-rootless-extras (5:20.10.7~3-0~debian-buster) ...
>>> Setting up docker-ce (5:20.10.7~3-0~debian-buster) ...Could not
>>> connect to any X display.
>>> Created symlink
>>> /etc/systemd/system/multi-user.target.wants/docker.service →
>>> /lib/systemd/system/docker.service.
>>> Created symlink /etc/systemd/system/sockets.target.wants/docker.socket
>>> → /lib/systemd/system/docker.socket.
>>> Job for docker.service failed because the control process exited with
>>> error code.
>>> See "systemctl status docker.service" and "journalctl -xe" for
>>> details.Could not connect to any X display.
>>> invoke-rc.d: initscript docker, action "start" failed.
>>> ● docker.service - Docker Application Container Engine
>>>     Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor
>>> preset: enabled)
>>>     Active: activating (auto-restart) (Result: exit-code) since Sat
>>> 2021-07-03 15:54:00 PDT; 9ms ago
>>>       Docs: https://docs.docker.com
>>>    Process: 28141 ExecStart=/usr/bin/dockerd -H fd://
>>> --containerd=/run/containerd/containerd.sock (code=exited,
>>> status=1/FAILURE)
>>>   Main PID: 28141 (code=exited, status=1/FAILURE)
>>> dpkg: error processing package docker-ce (--configure):
>>>   installed docker-ce package post-installation script subprocess
>>> returned error exit status 1
>>> Processing triggers for man-db (2.8.5-2) ...
>>> Processing triggers for systemd (241-7~deb10u7) ...
>>> Errors were encountered while processing:
>>>   docker-ce
>>> E: Sub-process /usr/bin/dpkg returned an error code (1)
>>> root@debian:/var/run/docker#
>>> https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-debian-10https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-debian-10https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-debian-10https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-debian-10
>> Note the error at docker.service and the /"Could not connect to any X
>> display" problem/. I'm not sure what to do to fix this. Any help will be
>> appreciated.
>>
> Hi Gary,
>
> try to reconfigure debconf with following command as root:
>
> # dpkg-reconfigure debconf
>
> and choose "Dialog" as interface to use.
>
> Then try to install docker again.
>
> Kind regards
> Georgi
>

[toc] | [prev] | [next] | [standalone]


#236827

FromGreg Wooledge <greg@wooledge.org>
Date2021-07-04 03:10 +0200
Message-ID<CwYNX-3o5-3@gated-at.bofh.it>
In reply to#236826
On Sat, Jul 03, 2021 at 05:30:18PM -0700, Gary L. Roach wrote:
> What tipped
> you off?

Probably this:

> > > > /Could not connect to any X display./
> > > > debconf: unable to initialize frontend: Kde

[toc] | [prev] | [next] | [standalone]


#236832

FromRobbi Nespu <robbinespu@gmail.com>
Date2021-07-04 06:20 +0200
Message-ID<Cx1LP-5fN-1@gated-at.bofh.it>
In reply to#236824
On 7/4/21 7:17 AM, Gary L. Roach wrote:
> I have been trying to get a working installation of Docker. This should 
> be easy considering all of the information available. Alas, for me, this 
> doesn't seem to be the case. My latest attempt was to use the 
> instructions at 
> *https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-debian-10* 
> . I followed the instructions to the letter with the exception of 
> skipping over the repository setup that I installed before. I got the 
> following:

what is on your repos? Mine are:

$ grep "docker" /etc/apt/sources.list
deb [arch=amd64] https://download.docker.com/linux/debian/ bullseye stable

and docker are working fine. I use it for my springboot development to 
host database.


-- 
Robbi Nespu <robbinespu AT SPAMFREE gmail DOT com>
D311 B5FF EEE6 0BE8 9C91 FA9E 0C81 FA30 3B3A 80BA
https://robbinespu.gitlab.io | https://mstdn.social/@robbinespu

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web