更新:看起来它正在avahi-dnsconfd
添加8.8.8.8
和添加8.8.4.4
到我的/etc/resolv.conf
文件中。我在 /var/log/syslog 中找到了这个:
Jan 4 17:00:21 freewill nm-dispatcher: req:1 'up' [ens33]: start running ordered scripts...
Jan 4 17:00:21 freewill avahi-dnsconfd[3579]: New DNS Server 8.8.4.4 (interface: 2.IPv4)
Jan 4 17:00:21 freewill avahi-dnsconfd[3579]: New DNS Server 8.8.8.8 (interface: 2.IPv4)
Run Code Online (Sandbox Code Playgroud)
我怎样才能让Ubuntu的从DHCP获取DNS服务器只和未使用的avahi(的mDNS)用于获取DNS服务器?
我正在测试 Ubuntu Mate 16.04.1 LTS,但遇到了麻烦,因为有些东西不断将 Google 的 DNS 服务器添加到/etc/resolv.conf
:
josh@freewill:~$ cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS …
Run Code Online (Sandbox Code Playgroud) 这里有点Linux noob,我正在尝试安装VMware,我终于可以离开终端并完成简单的工作,哈哈,但现在我又被卡住了。
我遵循了这些说明,当我到达提取文件夹的这一部分时,安装程序没有打开。
我尝试vmware-modconfig --console --install-all
在终端中运行,但最后一行说的是“无法安装所有模块,请检查日志以获取详细信息”
日志文件的最后几行说:
x’ defined but not used [-Wunused-function]
cc1: some warnings being treated as errors
make[2]: *** [/tmp/modconfig-exlEke/vmci-only/linux/driver.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [_module_/tmp/modconfig-exlEke/vmci-only] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.8.0-19-generic'
make: *** [vmci.ko] Error 2
make: Leaving directory `/tmp/modconfig-exlEke/vmci-only'
Unable to install all modules. See log for details.
Run Code Online (Sandbox Code Playgroud)
聊天中的一位用户说这看起来像是内核模块的问题。如何在 Ubuntu 13.04 内核下安装 VMware Workstation 9 3.8.0-19-generic
?
我试图重新安装一个 snap 包,我想要我的设置。我snap save
在删除快照之前做了一个。现在我试图用snap restore
它来恢复保存的快照,但它失败了:
root@josh-workstation:/# snap restore lxd 1
error: invalid argument for snapshot set id: expected a non-negative integer argument (see 'snap help saved')
Run Code Online (Sandbox Code Playgroud)
但是,我按照snap help restore
and的指示进行操作snap help saved
,所以...有什么关系?
root@josh-workstation:/# snap help restore
Usage:
snap restore [restore-OPTIONS] <snap> <id>...
The restore command replaces the current user, system and
configuration data of included snaps, with the corresponding data from
the specified snapshot.
Run Code Online (Sandbox Code Playgroud)