我正在尝试使用设置一些参数augtool
但出现奇怪的错误
Linux$ sudo augtool set /files/etc/abrt/abrt-action-save-package-data.conf/OpenGPGCheck no
error: Failed to execute command
saving failed (run 'print /augeas//error' for details)
我从错误中得到以下输出:
Linux$ sudo augtool print /augeas//error
/augeas/files/etc/abrt/abrt-action-save-package-data.conf/error = "parse_failed"
/augeas/files/etc/abrt/abrt-action-save-package-data.conf/error/pos = "167"
/augeas/files/etc/abrt/abrt-action-save-package-data.conf/error/line = "6"
/augeas/files/etc/abrt/abrt-action-save-package-data.conf/error/char = "0"
/augeas/files/etc/abrt/abrt-action-save-package-data.conf/error/lens = "/usr/share/augeas/lenses/libreport.aug:20.14-.43:"
/augeas/files/etc/abrt/abrt-action-save-package-data.conf/error/message = "Iterated lens matched less than it should"
相同的命令适用于其他盒子。不确定缺少什么?
操作系统:CentOS7
augtool 1.1.0 <http://augeas.net/>
Copyright (C) 2007-2011 David Lutterkort
License LGPLv2+: GNU LGPL version 2.1 or later
<http://www.gnu.org/licenses/lgpl-2.1.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by David Lutterkort
更新
augtool> print /augeas/files/etc/abrt/abrt-action-save-package-data.conf/error
/augeas/files/etc/abrt/abrt-action-save-package-data.conf/error = "parse_failed"
/augeas/files/etc/abrt/abrt-action-save-package-data.conf/error/pos = "167"
/augeas/files/etc/abrt/abrt-action-save-package-data.conf/error/line = "6"
/augeas/files/etc/abrt/abrt-action-save-package-data.conf/error/char = "0"
/augeas/files/etc/abrt/abrt-action-save-package-data.conf/error/lens = "/usr/share/augeas/lenses/libreport.aug:20.14-.43:"
/augeas/files/etc/abrt/abrt-action-save-package-data.conf/error/message = "Iterated lens matched less than it should"
augtool>
/etc/abrt/abrt-action-save-package-data.conf
# With this option set to "yes",
# only crashes in signed packages will be analyzed.
# the list of public keys used to check the signature is
# in the file gpg_keys
#
OpenGPGCheck = no
# Blacklisted packages
#
BlackList = nspluginwrapper, valgrind, strace, mono-core
# Process crashes in executables which do not belong to any package?
#
ProcessUnpackaged = yes
# Blacklisted executable paths (shell patterns)
#
BlackListedPaths = /usr/share/doc/*, */example*, /usr/bin/nspluginviewer, /usr/lib/xulrunner-*/plugin-container
# interpreters names
Interpreters = python2, python2.7, python, python3, python3.3, perl, perl5.16.2