Kali - atftpd kali-linux-headless kali-linux-default 尚未配置

Kali - atftpd kali-linux-headless kali-linux-default 尚未配置

当我尝试升级我的 Kali 时,收到此错误:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  hydra hydra-gtk libgs9 libnet-libidn-perl
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
3 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Setting up atftpd (0.7.git20210202-3) ...
/var/lib/dpkg/info/atftpd.config: 3: /etc/default/atftpd: 69: not found
dpkg: error processing package atftpd (--configure):
 installed atftpd package post-installation script subprocess returned error exit status 127
dpkg: dependency problems prevent configuration of kali-linux-headless:
 kali-linux-headless depends on atftpd; however:
  Package atftpd is not configured yet.

dpkg: error processing package kali-linux-headless (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of kali-linux-default:
 kali-linux-default depends on kali-linux-headless; however:
  Package kali-linux-headless is not configured yet.

dpkg: error processing package kali-linux-default (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 atftpd
 kali-linux-headless
 kali-linux-default
E: Sub-process /usr/bin/dpkg returned an error code (1)

我搜索了如何配置/安装这 3 个软件包(atftpd、kali-linux-headless 和 kali-linux-default)。我搜索了很长时间,但没有找到任何东西。有人能帮我解决这个问题吗?

答案1

我终于找到解决办法了!

您必须删除并清除 pkg,然后再次安装,如下所示:

sudo apt remove --purge atftpd

sudo apt clean

sudo apt autoremove

sudo apt-get install atftpd

并更新:

sudo apt-get update && apt-get upgrade

相关内容