最近我进入了;
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
:
- 验证用户身份(如
sudo
)。 - 创建该文件的临时副本,以供
root
用户可以编辑。 - 作为用户,调用
$VISUAL
来编辑临时文件。 - 当编辑器退出时,如果文件被改变,则将
root
临时sudoedit
文件复制回目标文件。
我已成功sudoedit
使用 emacsclient
、、、和作为。vim
vi
nano
ed
$VISUAL