pure-ftpd 安装失败(无法检查目录 /etc/pure-ftpd/conf)

pure-ftpd 安装失败(无法检查目录 /etc/pure-ftpd/conf)

我在设置 pure-ftpd 时遇到了一些问题。我决定在重新安装之前将其完全删除,但是我在使用 卸载程序之前意外删除了配置文件apt-get。我现在的问题是重新安装(或尝试重新安装)导致安装失败,并显示以下输出;

root@server:~# apt-get install pure-ftpd
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  libfile-copy-recursive-perl openbsd-inetd update-inetd
The following NEW packages will be installed
  libfile-copy-recursive-perl openbsd-inetd pure-ftpd update-inetd
0 to upgrade, 4 to newly install, 0 to remove and 2 not to upgrade.
Need to get 0 B/277 kB of archives.
After this operation, 929 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Preconfiguring packages ...
Selecting previously unselected package libfile-copy-recursive-perl.
(Reading database ... 54154 files and directories currently installed.)
Preparing to unpack .../libfile-copy-recursive-perl_0.38-1_all.deb ...
Unpacking libfile-copy-recursive-perl (0.38-1) ...
Selecting previously unselected package update-inetd.
Preparing to unpack .../update-inetd_4.43_all.deb ...
Unpacking update-inetd (4.43) ...
Selecting previously unselected package openbsd-inetd.
Preparing to unpack .../openbsd-inetd_0.20091229-2ubuntu3_amd64.deb ...
Unpacking openbsd-inetd (0.20091229-2ubuntu3) ...
Selecting previously unselected package pure-ftpd.
Preparing to unpack .../pure-ftpd_1.0.36-1.1_amd64.deb ...
Unpacking pure-ftpd (1.0.36-1.1) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for ureadahead (0.100.0-16) ...
Setting up libfile-copy-recursive-perl (0.38-1) ...
Setting up update-inetd (4.43) ...
Setting up openbsd-inetd (0.20091229-2ubuntu3) ...
 * Stopping internet superserver inetd                                                                                                                           [ OK ]
 * Not starting internet superserver: no services enabled
Processing triggers for ureadahead (0.100.0-16) ...
Setting up pure-ftpd (1.0.36-1.1) ...
Starting ftp server: /usr/sbin/pure-ftpd-wrapper: Couldn't examine directory /etc/pure-ftpd/conf: No such file or directory
invoke-rc.d: initscript pure-ftpd, action "start" failed.
dpkg: error processing package pure-ftpd (--configure):
 subprocess installed post-installation script returned error exit status 2
Processing triggers for ureadahead (0.100.0-16) ...
Errors were encountered while processing:
 pure-ftpd
E: Sub-process /usr/bin/dpkg returned an error code (1)

我尝试再次创建/etc/pure-ftpd//etc/pure-ftpd/conf//etc/pure-ftpd/auth/目录,但是这导致没有实际创建任何配置文件,而这是我想要的。

我该如何完全删除 pure-ftpd 然后从头开始重新安装它?

答案1

找到这个问题的解决方案。看来 pure-ftpd-common 也安装了,我想这个包和配置文件一起工作,以下命令可以解决这个问题;

apt-get remove --purge pure-ftpd pure-ftpd-common

相关内容