首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >tftp-hpa不会在Ubuntu 20.04上注册tftpd-hpa服务。

tftp-hpa不会在Ubuntu 20.04上注册tftpd-hpa服务。
EN

Ask Ubuntu用户
提问于 2021-04-06 11:29:08
回答 1查看 3.1K关注 0票数 0

我试着按照TFTP -社区帮助Wiki安装tftp软件包,但它不会安装(至少不正确)。

代码语言:javascript
复制
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
代码语言:javascript
复制
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) ...
代码语言:javascript
复制
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]
代码语言:javascript
复制
user@host:/etc/default$ sudo service tftpd-hpa status
Unit tftpd-hpa.service could not be found.
代码语言:javascript
复制
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安装过程没有:

  1. 创建并注册tftp-hda服务。
  2. 创建/etc/default/tftpd-hpa配置文件

我原以为这两个人会发生,但他们没有。我到哪里去找面包屑/日志来解决这个问题?

EN

回答 1

Ask Ubuntu用户

回答已采纳

发布于 2021-04-06 12:08:11

您在安装包时遗漏了d,即tftp-hpa是TFTP客户端,而tftpd-hpa是服务器。

如果您运行apt show tftp-hpa并读取描述,您将看到

代码语言:javascript
复制
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会返回

代码语言:javascript
复制
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.
票数 2
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1329581

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档