我试着按照TFTP -社区帮助Wiki安装tftp软件包,但它不会安装(至少不正确)。
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: focaluser@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 virtlockdapt安装过程没有:
/etc/default/tftpd-hpa配置文件我原以为这两个人会发生,但他们没有。我到哪里去找面包屑/日志来解决这个问题?
发布于 2021-04-06 12:08:11
您在安装包时遗漏了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.https://askubuntu.com/questions/1329581
复制相似问题