报错代码
Details: Augeas parsing/serializing error: Iterated lens matched less than it should at /usr/share/augeas/lenses/dist/hosts.aug:23.12-.42:
分析
/etc/hosts 文件中最后 1 行没有以 “\n” 结尾
解决方法
# echo >> /etc/hosts
参考文献
https://www.suse.com/zh-cn/support/kb/doc/?id=000019057