分页: 1 / 1

在VMware安装的ubuntu16.04中重启tftp-hpa出现错误

发表于 : 2018-02-10 9:54
ghxjk
chen@ubuntu:~$ sudo service tftpd-hpa restart
Job for tftpd-hpa.service failed because the control process exited with error code. See "systemctl status tftpd-hpa.service" and "journalctl -xe" for details.
chen@ubuntu:~$ systemctl status tftpd-hpa.service
● tftpd-hpa.service - LSB: HPA's tftp server
Loaded: loaded (/etc/init.d/tftpd-hpa; bad; vendor preset: enabled)
Active: failed (Result: exit-code) since Fri 2018-02-09 20:15:21 CST; 36s ago
Docs: man:systemd-sysv-generator(8)
Process: 3721 ExecStart=/etc/init.d/tftpd-hpa start (code=exited, status=1/FAI

Feb 09 20:15:21 ubuntu systemd[1]: Starting LSB: HPA's tftp server...
Feb 09 20:15:21 ubuntu tftpd-hpa[3721]: * Starting HPA's tftpd in.tftpd
Feb 09 20:15:21 ubuntu systemd[1]: tftpd-hpa.service: Control process exited, co
Feb 09 20:15:21 ubuntu systemd[1]: Failed to start LSB: HPA's tftp server.
Feb 09 20:15:21 ubuntu systemd[1]: tftpd-hpa.service: Unit entered failed state.
Feb 09 20:15:21 ubuntu systemd[1]: tftpd-hpa.service: Failed with result 'exit-c
chen@ubuntu:~$
chen@ubuntu:~$ journalctl -xe
Feb 09 20:15:21 ubuntu sudo[3711]: chen : TTY=pts/4 ; PWD=/home/chen ; USER=
Feb 09 20:15:21 ubuntu sudo[3711]: pam_unix(sudo:session): session opened for us
Feb 09 20:15:21 ubuntu systemd[1]: Stopped LSB: HPA's tftp server.
-- Subject: Unit tftpd-hpa.service has finished shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/li ... temd-devel
--
-- Unit tftpd-hpa.service has finished shutting down.
Feb 09 20:15:21 ubuntu systemd[1]: Starting LSB: HPA's tftp server...
-- Subject: Unit tftpd-hpa.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/li ... temd-devel
--
-- Unit tftpd-hpa.service has begun starting up.
Feb 09 20:15:21 ubuntu tftpd-hpa[3721]: * Starting HPA's tftpd in.tftpd
Feb 09 20:15:21 ubuntu tftpd[3736]: unknown option -?
Feb 09 20:15:21 ubuntu systemd[1]: tftpd-hpa.service: Control process exited, co
Feb 09 20:15:21 ubuntu systemd[1]: Failed to start LSB: HPA's tftp server.
-- Subject: Unit tftpd-hpa.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/li ... temd-devel
--
-- Unit tftpd-hpa.service has failed.
--
-- The result is failed.
Feb 09 20:15:21 ubuntu systemd[1]: tftpd-hpa.service: Unit entered failed state.
Feb 09 20:15:21 ubuntu systemd[1]: tftpd-hpa.service: Failed with result 'exit-c
Feb 09 20:15:21 ubuntu sudo[3711]: pam_unix(sudo:session): session closed for us

chen@ubuntu:~$ dpkg -l | grep tftp
ii tftp 0.17-18ubuntu2 amd64 Trivial file transfer protocol client
ii tftpd 0.17-18ubuntu2 amd64 Trivial file transfer protocol server
rc tftpd-hpa 5.2+20150808-1ubuntu1.16.04.1 amd64 HPA's tftp server


chen@ubuntu:~$ cat /etc/issue
************************************************
************************************************
VMware Easy Install

PLEASE WAIT! VMware Tools is currently being
installed on your system. Depending on the
version of Ubuntu you are installing, you may
log in below and use the system during the
installation. Otherwise, please wait for the
graphical environment to launch. Thank you.

************************************************
************************************************
chen@ubuntu:~$ cat /proc/version
Linux version 4.4.0-112-generic (buildd@lgw01-amd64-010) (gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.5) ) #135-Ubuntu SMP Fri Jan 19 11:48:36 UTC 2018


求各路大神指点

Re: 在VMware安装的ubuntu16.04中重启tftp-hpa出现错误

发表于 : 2018-02-10 11:10
poloshiao
dpkg -l | grep tftp
rc tftpd-hpa 5.2+20150808-1ubuntu1.16.04.1 amd64 HPA's tftp server
1. http://manpages.ubuntu.com/manpages/xen ... ery.1.html
r = Remove
c = Config-files
意思是 已列為待移除
systemctl status tftpd-hpa.service
● tftpd-hpa.service - LSB: HPA's tftp server
Loaded: loaded (/etc/init.d/tftpd-hpa; bad; vendor preset: enabled)
Active: failed (Result: exit-code) since Fri 2018-02-09 20:15:21 CST; 36s ago
2. 還未成功被 started
sudo service tftpd-hpa restart
3. 未曾被 started 所以不存在 restart