当我启动我的 Ubuntu 服务器时,DNS 解析不起作用。您可以通过查看 resolv.conf 最容易地看到这一点:
~ # cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
# 127.0.0.53 is the systemd-resolved stub resolver.
# run "systemd-resolve --status" to see details about the actual nameservers.
Run Code Online (Sandbox Code Playgroud)
然后我启用已解决的服务:
~ # systemctl enable systemd-resolved.service
Run Code Online (Sandbox Code Playgroud)
事情按预期工作:
~ # cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY …Run Code Online (Sandbox Code Playgroud) 我现在无法安装或删除任何软件包。每个 aptitude 或 dpkg 命令都会失败
dpkg: error: duplicate file trigger interest for filename
`/usr/share/icons/hicolor' and package `hicolor-icon-theme'
Run Code Online (Sandbox Code Playgroud)
我尝试了dpkg 中的 sed 技巧:错误:重复文件触发了文件名 `/usr/lib/gio/modules' 和包 `libglib2.0-0:i386' 的兴趣,但这对我不起作用。
我正在使用 3.2.0-32 运行 12.10。
编辑1:
ls -al /usr/share/icons/hicolor`
total 92
drwxr-xr-x 15 root root 4096 Jun 19 18:56 .
drwxr-xr-x 3 root root 4096 Mar 24 23:11 ..
drwxr-xr-x 15 root root 4096 Apr 1 2009 128x128
drwxr-xr-x 15 root root 4096 Apr 1 2009 16x16
drwxr-xr-x 15 root root 4096 …Run Code Online (Sandbox Code Playgroud)