我已经安装了resolvconf,但出于某种原因
● resolvconf-pull-resolved.service
Loaded: loaded (/lib/systemd/system/resolvconf-pull-resolved.service; static; vendor preset: enabled)
Active: inactive (dead) since Mon 2018-09-24 13:11:46 UTC; 4s ago
Process: 10656 ExecStart=/bin/sh -c cat /run/systemd/resolve/stub-resolv.conf | /sbin/resolvconf -a systemd-resolved (code=exited, status=0/SUCCESS)
Main PID: 10656 (code=exited, status=0/SUCCESS)
Sep 24 13:11:46 Inspire systemd[1]: Starting resolvconf-pull-resolved.service...
Sep 24 13:11:46 Inspire systemd[1]: Started resolvconf-pull-resolved.service.和日志
journalctl | grep resolvconf
Sep 24 12:58:39 Inspire sudo[9844]: root : TTY=pts/0 ; PWD=/etc ; USER=root ; COMMAND=/usr/local/bin/apt install resolvconf
Sep 24 12:58:46 Inspire systemd[1]: Started resolvconf-pull-resolved.path.
Sep 24 12:58:53 Inspire systemd[1]: Starting resolvconf-pull-resolved.service..发布于 2018-09-24 13:41:01
我认为该服务运行良好,只是预计不会继续运行。它运行以下命令:
/bin/sh -c cat /run/systemd/resolve/stub-resolv.conf | /sbin/resolvconf -a systemd-resolved阅读resolvconf的手册页显示:
解析器包包括运行时名称服务器信息的简单数据库和通知应用程序更改该信息的简单框架。因此,Resolvconf将自己设置为提供名称服务器信息的程序和使用该信息的应用程序之间的中介。使用解析程序将信息添加到数据库中或从数据库中删除。有关可用选项的讨论,请参阅下面的选项部分。
以及-a选项:
-a IFACE.PROG添加或覆盖记录IFACE.PROG,如果启用更新,则运行更新脚本。当使用此选项时,必须以resolv.conf(5)文件的格式对其标准输入进行解析。文件中的每一行必须以换行符结束。
它似乎创建了解析器数据库,然后退出。
发布于 2022-05-06 20:44:27
为了解决这个问题,您需要遵循以下步骤。
systemctl start resolvconf.service
systemctl enable resolvconf.service
systemctl start resolvconf-pull-resolved.service
systemctl enable resolvconf-pull-resolved.service
systemctl start resolvconf
systemctl enable resolvconf
dpkg-reconfigure resolvconf享受吧!
https://askubuntu.com/questions/1078011
复制相似问题