I found this thread searching for CyberPanel pure-ftpd-mysql because I’m having a related error.
On an OpenVZ VPS running Ubuntu 22.04, the install logs contained a number of errors, but the install completed.
When I go to install Docker I’m having some kind of issue related to pure-ftpd-mysql
Reading package lists...
Building dependency tree...
Reading state information...
docker.io is already the newest version (24.0.5-0ubuntu1~22.04.1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up pure-ftpd-mysql (1.0.50-2.1) ...
/var/lib/dpkg/info/pure-ftpd-mysql.postinst: 34: update-inetd: not found
dpkg: error processing package pure-ftpd-mysql (--configure):
installed pure-ftpd-mysql package post-installation script subprocess returned error exit status 127
Errors were encountered while processing:
pure-ftpd-mysql
E: Sub-process /usr/bin/dpkg returned an error code (1)
Job for docker.service failed because the control process exited with error code.
See "systemctl status docker.service" and "journalctl -xeu docker.service" for details.
Docker successfully installed.[200]
But despite saying Docker is installed here, CyberPanel says Docker is not installed when I return to it in the web interface.
I follow the instructions provided above…
root@boring:/var/log# systemctl status docker.service
× docker.service - Docker Application Container Engine
Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2023-09-24 12:36:06 UTC; 23s ago
TriggeredBy: × docker.socket
Docs: https://docs.docker.com
Process: 1964 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=1/FAILURE)
Main PID: 1964 (code=exited, status=1/FAILURE)
Sep 24 12:36:04 boring.surrealpolitiks.com systemd[1]: docker.service: Main process exited, code=exited, status=1/FAILURE
Sep 24 12:36:04 boring.surrealpolitiks.com systemd[1]: docker.service: Failed with result 'exit-code'.
Sep 24 12:36:04 boring.surrealpolitiks.com systemd[1]: Failed to start Docker Application Container Engine.
Sep 24 12:36:06 boring.surrealpolitiks.com systemd[1]: docker.service: Scheduled restart job, restart counter is at 3.
Sep 24 12:36:06 boring.surrealpolitiks.com systemd[1]: Stopped Docker Application Container Engine.
Sep 24 12:36:06 boring.surrealpolitiks.com systemd[1]: docker.service: Start request repeated too quickly.
Sep 24 12:36:06 boring.surrealpolitiks.com systemd[1]: docker.service: Failed with result 'exit-code'.
Sep 24 12:36:06 boring.surrealpolitiks.com systemd[1]: Failed to start Docker Application Container Engine.
Thinking maybe I can remove/reinstall Docker from the CLI to solve the problem…
root@boring:/var/log# apt remove docker
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package 'docker' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up pure-ftpd-mysql (1.0.50-2.1) ...
/var/lib/dpkg/info/pure-ftpd-mysql.postinst: 34: update-inetd: not found
dpkg: error processing package pure-ftpd-mysql (--configure):
installed pure-ftpd-mysql package post-installation script subprocess returned error exit status 127
Errors were encountered while processing:
pure-ftpd-mysql
E: Sub-process /usr/bin/dpkg returned an error code (1)
Hmmm…
root@boring:/var/log# apt install docker
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
wmdocker
The following NEW packages will be installed:
docker wmdocker
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 14.3 kB of archives.
After this operation, 58.4 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu jammy/universe amd64 wmdocker amd64 1.5-2 [13.0 kB]
Get:2 http://archive.ubuntu.com/ubuntu jammy/universe amd64 docker all 1.5-2 [1,316 B]
Fetched 14.3 kB in 0s (51.8 kB/s)
Selecting previously unselected package wmdocker.
(Reading database ... 50972 files and directories currently installed.)
Preparing to unpack .../wmdocker_1.5-2_amd64.deb ...
Unpacking wmdocker (1.5-2) ...
Selecting previously unselected package docker.
Preparing to unpack .../archives/docker_1.5-2_all.deb ...
Unpacking docker (1.5-2) ...
Setting up wmdocker (1.5-2) ...
Setting up pure-ftpd-mysql (1.0.50-2.1) ...
/var/lib/dpkg/info/pure-ftpd-mysql.postinst: 34: update-inetd: not found
dpkg: error processing package pure-ftpd-mysql (--configure):
installed pure-ftpd-mysql package post-installation script subprocess returned error exit status 127
Setting up docker (1.5-2) ...
Processing triggers for man-db (2.10.2-1) ...
Errors were encountered while processing:
pure-ftpd-mysql
E: Sub-process /usr/bin/dpkg returned an error code (1)
Maybe I need to remove pure-ftpd-mysql?
root@boring:/var/log# apt remove pure-ftpd-mysql
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following package was automatically installed and is no longer required:
pure-ftpd-common
Use 'apt autoremove' to remove it.
The following packages will be REMOVED:
pure-ftpd-mysql
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 685 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 50979 files and directories currently installed.)
Removing pure-ftpd-mysql (1.0.50-2.1) ...
/var/lib/dpkg/info/pure-ftpd-mysql.prerm: 18: update-inetd: not found
dpkg: error processing package pure-ftpd-mysql (--remove):
installed pure-ftpd-mysql package pre-removal script subprocess returned error exit status 127
dpkg: too many errors, stopping
/var/lib/dpkg/info/pure-ftpd-mysql.postinst: 34: update-inetd: not found
dpkg: error while cleaning up:
installed pure-ftpd-mysql package post-installation script subprocess returned error exit status 127
Errors were encountered while processing:
pure-ftpd-mysql
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@boring:/var/log#
I’m running three other CyberPanel servers on Ubuntu 22.04 in my organization with no problems. The only thing I can see different is that this on OpenVZ and the other servers are on KVM.