我尝试安装 vsftpd ftp 服务器但出现此错误:
invoke-rc.d: unknown initscript, /etc/init.d/vsftpd not found.
dpkg: error processing package vsftpd (--configure):
subprocess installed post-installation script returned error exit status
100 Errors were encountered while processing:
vsftpd E: Sub-process /usr/bin/dpkg returned an error code (1)
为了安装它,我运行了以下命令:
sudo apt-get install vsftpd
我在 Cloud9 虚拟服务中的虚拟机中使用 Ubuntu 14.04。
该命令的输出如下sudo apt-get install -f --reinstall vsftpd
:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libck-connector0 ncurses-term openssh-sftp-server ssh-import-id
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 87 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
E: Internal Error, No file name for vsftpd:amd64
的输出sudo dpkg --configure vsftpd
为:
Setting up vsftpd (3.0.2-1ubuntu2.14.04.1) ...
vsftpd user (ftp) already exists, doing nothing.
vsftpd directory (/srv/ftp) already exists, doing nothing.
invoke-rc.d: unknown initscript, /etc/init.d/vsftpd not found.
dpkg: error processing package vsftpd (--configure):
subprocess installed post-installation script returned error exit status 100
Errors were encountered while processing:
vsftpd
的输出dpkg-query -s vsftpd
为:
Package: vsftpd
Status: deinstall ok half-configured
Priority: extra
Section: net
Installed-Size: 353
Maintainer: Ubuntu Developers <[email protected]>
Architecture: amd64
Version: 3.0.2-1ubuntu2.14.04.1
Replaces: ftp-server
Provides: ftp-server
Depends: debconf (>= 0.5) | debconf-2.0, sysv-rc (>= 2.88dsf-24) | file-rc (>= 0.8.16), libc6 (>= 2.15), libcap2 (>= 2.10), libpam0g (>= 0.99.7.1), libssl1.0.0 (>= 1.0.0), libwrap0 (>= 7.6-4~), adduser, libpam-modules, netbase
Recommends: logrotate
Conflicts: ftp-server
Conffiles:
/etc/systemd/system/vsftpd.service 15767a25695a9f148e9feb731c5a1f0b
/etc/vsftpd.conf b95bd4eef05d8db3a7f0e494723dae21
/etc/logrotate.d/vsftpd dac2cb7b9cfd8a03b4fa9ca3601a43a6
/etc/init/vsftpd.conf 4dcef85ff33f31f1f486865a94d800e8
/etc/pam.d/vsftpd e75200b7896d8b2c2f2590d0e3d4a6ef
/etc/ftpusers 839f3157aad792bafbbdcd932a95a345
Description: lightweight, efficient FTP server written for security
This package provides the "Very Secure FTP Daemon", written from
the ground up with security in mind.
.
It supports both anonymous and non-anonymous FTP access, PAM authentication,
bandwidth limiting, and the Linux sendfile() facility.
Homepage: http://vsftpd.beasts.org/
Original-Maintainer: Daniel Baumann <[email protected]>
并且该文件/etc/init.d/vsftpd
在我的系统中不存在。