未知的 gedit fstab 失败

未知的 gedit fstab 失败

最近我进入了;

sudo gedit /etc/fstab

我得到的答复是,

(gedit:66385): dconf-WARNING **: 22:49:56.775: failed to commit changes to dconf: Failed to execute child process “dbus-launch” (No such file or directory)

(gedit:66385): dconf-WARNING **: 22:49:56.778: failed to commit changes to dconf: Failed to execute child process “dbus-launch” (No such file or directory)

(gedit:66385): dconf-WARNING **: 22:49:56.890: failed to commit changes to dconf: Failed to execute child process “dbus-launch” (No such file or directory)

(gedit:66385): dconf-WARNING **: 22:49:56.890: failed to commit changes to dconf: Failed to execute child process “dbus-launch” (No such file or directory)

(gedit:66385): dconf-WARNING **: 22:49:56.890: failed to commit changes to dconf: Failed to execute child process “dbus-launch” (No such file or directory)

** (gedit:66385): WARNING **: 08:22:33.104: Set document metadata failed: Setting attribute metadata::gedit-position not supported

(gedit:66385): dconf-WARNING **: 08:22:33.113: failed to commit changes to dconf: Failed to execute child process “dbus-launch” (No such file or directory)*

自从我上次成功使用以来,机器唯一的物理变化就是将我的主文件夹移至 SSD 驱动器分区。如果系统崩溃,可以尝试保存数据。

这应该会对此产生影响吗,或者是其他原因。新安装的 Ubuntu 22.04 已完全更新、升级和刷新。

随意观察后我发现,应用程序打开和光标响应甚至文本突出显示都存在延迟,直到我释放鼠标按钮之后。

正在寻找途径来调查 fstab 编辑的原因?

干杯

虚拟新手,布鲁斯……

答案1

在您~/.bashrc

export EDITOR=$(type -p gedit)
export VISUAL=$(type -p gedit)

然后,source .bashrc

现在,你可以sudoedit /etc/fstab。阅读man sudoedit

以下是具体操作sudoedit

  1. 验证用户身份(如sudo)。
  2. 创建该文件的临时副本,以供root用户可以编辑。
  3. 作为用户,调用$VISUAL来编辑临时文件。
  4. 当编辑器退出时,如果文件被改变,则将root临时sudoedit文件复制回目标文件。

我已成功sudoedit使用 emacsclient、、、和作为。vimvinanoed$VISUAL

相关内容