今天,我尝试安装一个 tftp 服务器,以便在虚拟机(由 VMware ESX 4 提供支持)上为我们的网络设置 PXE 服务器,以简化服务器安装。基本安装(Debian 7.5.0 x64)运行顺利,但当我使用 aptitude 键入安装 tftpd-hpa 的命令时,安装程序出现错误。
root@bsl-lab-pxe:~# aptitude install tftpd-hpa
The following packages will be upgraded:
tftpd-hpa
1 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/47.6 kB of archives. After unpacking 110 kB will be freed.
Do you want to continue? [Y/n/?] y
Reading changelogs... Done
Preconfiguring packages ...
(Reading database ... 28425 files and directories currently installed.)
Preparing to replace tftpd-hpa 5.0-18 (using .../tftpd-hpa_5.2-4_amd64.deb) ...
[ ok ] Stopping HPA's tftpd: in.tftpd.
Unpacking replacement tftpd-hpa ...
Processing triggers for man-db ...
Setting up tftpd-hpa (5.2-4) ...
Installing new version of config file /etc/init.d/tftpd-hpa ...
adduser: `/usr/sbin/groupadd -g 106 tftp' exited from signal 11. Exiting.
dpkg: error processing tftpd-hpa (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
tftpd-hpa
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up tftpd-hpa (5.2-4) ...
adduser: `/usr/sbin/groupadd -g 106 tftp' exited from signal 11. Exiting.
dpkg: error processing tftpd-hpa (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
tftpd-hpa
我尝试重新配置该软件包,并将其完全删除(使用清除选项)并从头开始重新安装,但这两个选项都不起作用。由于两种最明显的故障排除方法不起作用,我仔细查看了实际输出。安装程序调用 user add,执行 groupadd 以创建组“tftp”,但最终出现错误。
/usr/sbin/groupadd -g 106 tftp' exited from signal 11. Exiting.
我想知道如果我直接执行该程序会发生什么,因此我继续在 CLI 中输入以下行:
groupadd -g 106 tftp
Segmentation fault
由于错误消息没有什么帮助,我查看了 syslog 和 dmesg 以获取更多信息。
dmesg:
root@bsl-lab-pxe:~# dmesg | tail -n20
[ 6.519734] RPC: Registered named UNIX socket transport module.
[ 6.519737] RPC: Registered udp transport module.
[ 6.519738] RPC: Registered tcp transport module.
[ 6.519739] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 6.604399] FS-Cache: Loaded
[ 6.638642] FS-Cache: Netfs 'nfs' registered for caching
[ 6.647444] Installing knfsd (copyright (C) 1996 [email protected]).
[ 372.174406] groupadd[2667]: segfault at 0 ip (null) sp 00007fff93b0cc98 error 14 in groupadd[400000+c000]
[ 373.850102] groupadd[2690]: segfault at 0 ip (null) sp 00007fffaa5f9558 error 14 in groupadd[400000+c000]
[ 684.850877] groupadd[2976]: segfault at 0 ip (null) sp 00007fff65247df8 error 14 in groupadd[400000+c000]
[ 686.028112] groupadd[2999]: segfault at 0 ip (null) sp 00007fffa1192cd8 error 14 in groupadd[400000+c000]
[ 836.532472] groupadd[3182]: segfault at 0 ip (null) sp 00007fffd4150458 error 14 in groupadd[400000+c000]
[ 909.654930] groupadd[3284]: segfault at 0 ip (null) sp 00007fffa1aae538 error 14 in groupadd[400000+c000]
[ 910.938959] groupadd[3305]: segfault at 0 ip (null) sp 00007fff710d92b8 error 14 in groupadd[400000+c000]
[ 989.342821] groupadd[3700]: segfault at 0 ip (null) sp 00007fff0a5070c8 error 14 in groupadd[400000+c000]
[ 990.920531] groupadd[3721]: segfault at 0 ip (null) sp 00007fff22c4e108 error 14 in groupadd[400000+c000]
[ 1000.975599] groupadd[3757]: segfault at 0 ip (null) sp 00007fff3e6483f8 error 14 in groupadd[400000+c000]
[ 1002.145736] groupadd[3778]: segfault at 0 ip (null) sp 00007fffab3d0dc8 error 14 in groupadd[400000+c000]
[ 1246.341294] groupadd[3810]: segfault at 0 ip (null) sp 00007fff73f17558 error 14 in groupadd[400000+c000]
[ 1251.001165] groupadd[3811]: segfault at 0 ip (null) sp 00007ffff4573668 error 14 in groupadd[400000+c000]
系统日志:
root@bsl-lab-pxe:~# cat /var/log/syslog | tail -n20
Jun 2 19:11:07 bsl-lab-pxe acpid: starting up with netlink and the input layer
Jun 2 19:11:07 bsl-lab-pxe acpid: 1 rule loaded
Jun 2 19:11:07 bsl-lab-pxe acpid: waiting for events: event logging is off
Jun 2 19:11:07 bsl-lab-pxe /usr/sbin/cron[2110]: (CRON) INFO (pidfile fd = 3)
Jun 2 19:11:07 bsl-lab-pxe /usr/sbin/cron[2111]: (CRON) STARTUP (fork ok)
Jun 2 19:11:07 bsl-lab-pxe /usr/sbin/cron[2111]: (CRON) INFO (Running @reboot jobs)
Jun 2 19:11:08 bsl-lab-pxe mpt-statusd: detected non-optimal RAID status
Jun 2 19:17:01 bsl-lab-pxe /USR/SBIN/CRON[2631]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Jun 2 19:17:12 bsl-lab-pxe kernel: [ 372.174406] groupadd[2667]: segfault at 0 ip (null) sp 00007fff93b0cc98 error 14 in groupadd[400000+c000]
Jun 2 19:17:14 bsl-lab-pxe kernel: [ 373.850102] groupadd[2690]: segfault at 0 ip (null) sp 00007fffaa5f9558 error 14 in groupadd[400000+c000]
Jun 2 19:21:09 bsl-lab-pxe mpt-statusd: detected non-optimal RAID status
Jun 2 19:22:25 bsl-lab-pxe kernel: [ 684.850877] groupadd[2976]: segfault at 0 ip (null) sp 00007fff65247df8 error 14 in groupadd[400000+c000]
Jun 2 19:22:27 bsl-lab-pxe kernel: [ 686.028112] groupadd[2999]: segfault at 0 ip (null) sp 00007fffa1192cd8 error 14 in groupadd[400000+c000]
Jun 2 19:24:57 bsl-lab-pxe kernel: [ 836.532472] groupadd[3182]: segfault at 0 ip (null) sp 00007fffd4150458 error 14 in groupadd[400000+c000]
Jun 2 19:26:11 bsl-lab-pxe kernel: [ 909.654930] groupadd[3284]: segfault at 0 ip (null) sp 00007fffa1aae538 error 14 in groupadd[400000+c000]
Jun 2 19:26:12 bsl-lab-pxe kernel: [ 910.938959] groupadd[3305]: segfault at 0 ip (null) sp 00007fff710d92b8 error 14 in groupadd[400000+c000]
Jun 2 19:27:30 bsl-lab-pxe kernel: [ 989.342821] groupadd[3700]: segfault at 0 ip (null) sp 00007fff0a5070c8 error 14 in groupadd[400000+c000]
Jun 2 19:27:32 bsl-lab-pxe kernel: [ 990.920531] groupadd[3721]: segfault at 0 ip (null) sp 00007fff22c4e108 error 14 in groupadd[400000+c000]
Jun 2 19:27:42 bsl-lab-pxe kernel: [ 1000.975599] groupadd[3757]: segfault at 0 ip (null) sp 00007fff3e6483f8 error 14 in groupadd[400000+c000]
Jun 2 19:27:43 bsl-lab-pxe kernel: [ 1002.145736] groupadd[3778]: segfault at 0 ip (null) sp 00007fffab3d0dc8 error 14 in groupadd[400000+c000]
我不知道该怎么做,如果可能的话,我想避免使用反向移植,但如果必须的话,我会这样做。有人遇到过类似的问题吗?或者有人能建议我可以在哪里找到其他错误消息/故障排除步骤吗?
我可能遗漏了所有提示、链接和问题(如果有的话,请见谅),非常欢迎。感谢您花时间和精力。
此致