![tftp-hpa 不会在 Ubuntu 20.04 上注册 tftpd-hpa 服务](https://linux22.com/image/936304/tftp-hpa%20%E4%B8%8D%E4%BC%9A%E5%9C%A8%20Ubuntu%2020.04%20%E4%B8%8A%E6%B3%A8%E5%86%8C%20tftpd-hpa%20%E6%9C%8D%E5%8A%A1.png)
我尝试按照以下说明安装 tftp-hpa 包TFTP - 社区帮助 Wiki,但它无法安装(至少无法正确安装)。
user@host:/etc/default$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.2 LTS
Release: 20.04
Codename: focal
user@host:/etc/default$ sudo apt install tftp-hpa -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
tftp-hpa
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 19.0 kB of archives.
After this operation, 63.5 kB of additional disk space will be used.
Get:1 http://cy.archive.ubuntu.com/ubuntu focal/main amd64 tftp-hpa amd64 5.2+20150808-1ubuntu4 [19.0 kB]
Fetched 19.0 kB in 0s (49.4 kB/s)
Selecting previously unselected package tftp-hpa.
(Reading database ... 245715 files and directories currently installed.)
Preparing to unpack .../tftp-hpa_5.2+20150808-1ubuntu4_amd64.deb ...
Unpacking tftp-hpa (5.2+20150808-1ubuntu4) ...
Setting up tftp-hpa (5.2+20150808-1ubuntu4) ...
Processing triggers for man-db (2.9.1-1) ...
user@host:/etc/default$ apt list --installed | grep tft
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
tftp-hpa/focal,now 5.2+20150808-1ubuntu4 amd64 [installed]
user@host:/etc/default$ sudo service tftpd-hpa status
Unit tftpd-hpa.service could not be found.
user@host:/etc/default$ ls
acpid anacron cacerts dbus intel-microcode libvirtd nss saned virtlogd
acpi-support apport console-setup grub irqbalance libvirt-guests openvpn ufw
alsa avahi-daemon crda grub.d kerneloops locale qemu-kvm useradd
amd64-microcode bsdmainutils cron im-config keyboard networkd-dispatcher rsync virtlockd
安装apt
过程不会:
- 创建并注册tftp-hda服务
- 创建
/etc/default/tftpd-hpa
配置文件
我预计会发生这两件事,但事实并非如此。我该去哪里寻找此问题的线索/日志?
答案1
您d
在安装包时错过了,即tftp-hpa
是 TFTP 客户端,而tftpd-hpa
是服务器。
如果你运行apt show tftp-hpa
并阅读描述,你会看到
Description: HPA's tftp client
Trivial File Transfer Protocol (TFTP) is a file transfer protocol, mainly to
serve boot images over the network to other machines (PXE).
.
tftp-hpa is an enhanced version of the BSD TFTP client and server. It
possesses a number of bugfixes and enhancements over the original.
.
This package contains the client.
另一方面,apt show tftpd-hpa
将返回
Description: HPA's tftp server
Trivial File Transfer Protocol (TFTP) is a file transfer protocol, mainly to
serve boot images over the network to other machines (PXE).
.
tftp-hpa is an enhanced version of the BSD TFTP client and server. It
possesses a number of bugfixes and enhancements over the original.
.
This package contains the server.