Debian Minimal故障排查可按以下步骤进行:
收集信息
tail -f /var/log/syslog、dmesg、journalctl。lshw、dmidecode。基础检查
sudo apt update && sudo apt upgrade。服务与进程排查
systemctl status <服务名>,重启异常服务systemctl restart <服务名>。top、htop、ps aux。网络诊断
ping 8.8.8.8,检查IP配置ip addr show。ufw status、iptables -L。/etc/network/interfaces、/etc/resolv.conf。软件包与文件系统
sudo apt install -f。fsck(需从Live CD/USB操作)。内核与驱动
dmesg | grep error,确认驱动兼容性。sudo apt-get install --reinstall linux-image-$(uname -r)。高级工具与社区支持
strace跟踪程序执行:strace <命令>。注意:操作前备份重要数据,避免误删系统文件。