I include some a collection
dns-nameservers 8.8.8.8
in my/etc/system/interfaces
.I want to reload this config without reboot.Nevertheless, when I attempted:
I got a
sudo service networking restart
I got a
Unit networking.services not found
errorJun 29 16:58:43 kog-sppkvm-200.localhost systemd1: Unit network.service entered failed state. Hint: Some lines were ellipsized, use -l to show in full. # systemctl restart network. Restarting networking on a desktop machine will cause dbus and a bunch of service to stop and never be started again, usually leading to the whole system being unusable. As Ubuntu does event based network bring up, there quite simply isn't a way to undo it all and redo it all, so a restart just isn't plain possible.
sudo /etc/init.d/networking restart
I got
/etc/init.chemical/networking: control not found
How can I repair this?I make use of Ubuntu Machine 18.04.2 LTS
CodePurinCodePurin
1 Response
Since edition 15.04, Ubuntu arrives with systemd as default instead of initd. systemd-networkd specifically
Make use of
systemctl restart networking
Aroly7Aroly7
Not really the response you're searching for? Browse other questions marked linuxnetworkingubuntu or talk to your very own question.
I've been attempting to obtain hibernate working on a clean install of Ubuntu 18.04 LTS.
It works beautifully making use of
sudo pm-hibernate
from command-line.I adopted directions to give me a menus choice by creating the document
/etc/polkit-1/localauthority/50-local.g/com.ubuntu.enable-hibernate.pkla
This created the menus option, but it had been obviously carrying out something different, because upon re-power-up, the system starts new as if from a 'difficult' shutdown, whilst with
pm-hibernate
the system restores to exactly where I was at.Through various efforts, I've now dropped the menu option, although there remains an option for 'Hibernate' under Settings-gt;Energy.
I has been trying to get the menu choice to use
pm-hibernate
rather ofsystemctl hibernate
.I believe (but I'michael not sure) that the issue arrived with
sudo apt remove hibernate
I don't know how to obtain back the menu choice, which appeared after generating the
polkit
file above. That file still exists and is definitely unchanged.So I attempted:
sudo systemctl restart polkitd.support
which replied with:Also though:
reviews:
- First I would like to get
polkit
working once again - As a split issue I'll after that consult how to control which hibernate program it utilizes (
pm-hibernate
orsystemctl hibernate
) because one of those works wonderfully for me, and the various other fails.
StewartStewart