我在设置纯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/目录,但是这导致没有真正创建配置文件,这是我想要的。
我如何完全删除纯ftpd,然后重新安装它从零?
发布于 2016-01-29 17:59:52
找到了这个问题的解决方案。它似乎纯粹-ftpd-公共也安装了,我认为这个软件包与配置文件和下面的命令解决了这个问题;
apt-get remove --purge pure-ftpd pure-ftpd-commonhttps://askubuntu.com/questions/726852
复制相似问题