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