Yesterday I was booting up my computer and it gave me this error message:
I was searching for a solution and came across this forum discussion :
https://ubuntuforums.org/showthread.php?t=2326216
So then I booted into recovery mode from the grub boot menu, as someone suggested and then try to run $ sudo apt-get update
.
Here is where I started struggling. I cannot get my computer to connect to the internet.
$ ping google.com
just gives me ping: unknown host google.com
So then I tried to run $ sudo dhclient eth0
but it returned this error message:
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
How can I fix this?
EDIT: journalctl | grep modules
gives me:
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'
Best Answer
OP solved their problem as follows:
[FAILED] Failed to start Load Kernel Modules
was a red-herring.rtc
is an obsolete module. The error message was removed by switching to tty1 (ctrl+alt+F1) and commenting outrtc
(putting#
at the start of the line) in/etc/modules
(using sudoedit).Now the computer would just boot to a blank screen.
Again in tty1, I then tried to connect to the internet, but
sudo dhclient eth0
gave me this error message :It turned out broken symlinks were to blame for that so to fix it:
and then
So then it was possible to do
sudo dhclient eth0
ping google.com
returnedunknown host google.com
butping 8.8.8.8
worked fine, so this was fixed by doingecho 'nameserver 8.8.8.8' | sudo tee /etc/resolv.conf
as advised by steeldriver in this commentWith internet connected at last, all problems were fixed by running: