无法启动加载内核模块Ubuntu 16.04
昨天我启动了我的电脑,它给了我这个错误信息:
我正在寻找解决方案并遇到了这个论坛讨论: https : //ubuntuforums.org/showthread.php?t = 23226216
然后我从grub启动菜单启动进入恢复模式,正如有人建议的那样,然后尝试运行$ sudo apt-get update
。
这是我开始挣扎的地方。 我无法让我的电脑连接到互联网。
$ ping google.com
只是给我ping: unknown host google.com
所以然后我尝试运行$ sudo dhclient eth0
但它返回了此错误消息:
run-parts: failed to stat component /etc/dhcp/dhclient-enter-hooks.d/debug: No such file or directory run-parts: failed to stat component /etc/dhcp/dhclient-exit-hooks.d/debug: No such file or directory run-parts: failed to stat component /etc/dhcp/dhclient-enter-hooks.d/debug: No such file or directory RTNETLINK answers: File exists run-parts: failed to stat component /etc/dhcp/dhclient-exit-hooks.d/debug: No such file or directory
我怎样才能解决这个问题?
编辑: journalctl | grep modules
journalctl | grep modules
给了我:
systemd-modules-load[214]: Inserted module 'lp' systemd-modules-load[214]: Inserted module 'ppdev' systemd-modules-load[214]: Inserted module 'parport_pc' systemd-modules-load[214]: Failed to find module 'rtc' systemd[1]: systemd-modules-load.service: Main process exited, code=exited, status1/FAILURE systemd[1]: systemd-modules-load.service: Unit entered failed state systemd[1]: systemd-modules-load.service: Failed with result 'exit-code'
OP解决了他们的问题如下:
[FAILED] Failed to start Load Kernel Modules
是一个红鲱鱼。 rtc
是一个过时的模块。 通过切换到tty1(ctrl + alt + F1)并在/etc/modules
注释掉rtc
(在行的开头放置#
)(使用sudoedit)来删除错误消息。
现在计算机只会启动到空白屏幕。
再次在tty1,我然后尝试连接到互联网,但sudo dhclient eth0
给了我这个错误消息:
failed to stat component /etc/dhcp/dhclient-enter-hooks.d/debug: No such file or directory failed to stat component /etc/dhcp/dhclient-exit-hooks.d/debug: No such file or directory
事实certificate,破坏的符号链接应该归咎于此,以便解决它:
cd /etc/dhcp/dhclient-enter-hooks.d sudo rm debug sudo ln -s ../debug.dbkg-new debug`
然后
cd /etc/dhcp/dhclient-exit-hooks.d sudo rm debug sudo ln -s ../debug.dbkg-new debug
那么就可以做sudo dhclient eth0
ping google.com
返回了unknown host google.com
但ping 8.8.8.8
工作正常,所以这是通过echo 'nameserver 8.8.8.8' | sudo tee /etc/resolv.conf
修复echo 'nameserver 8.8.8.8' | sudo tee /etc/resolv.conf
echo 'nameserver 8.8.8.8' | sudo tee /etc/resolv.conf
由steeldriver在此评论中提供建议
最后连接互联网,所有问题都通过运行来解决:
sudo apt-get update dpkg --configure -a sudo apt full-upgrade -f sudo apt -f install