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

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
ghxjk
帖子: 1
注册时间: 2018-02-10 9:11
系统: windows 7

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

#1

帖子 ghxjk » 2018-02-10 9:54

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


求各路大神指点
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

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

#2

帖子 poloshiao » 2018-02-10 11:10

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
回复