无法更改gedit首选项和终端首选项不保存

我是Ubuntu和Linux的新手。 我刚开始将它用于我的一个大学课程,而不是让我们所有人在我们的机器上安装Linux,他们让我们安装了一个虚拟机(不确定这是不是问题)。 无论如何,正如标题所说,我无法改变我在gedit中的偏好。 每次我想用gedit编辑文件或尝试更改我遇到此代码的首选项:

(gedit:760): dconf-WARNING **: failed to commit changes to dconf: GDBus.Error:org.gtk.GDBus.UnmappedGError.Quark._g_2dfile_2derror_2dquark.Code4: Failed to create file '/home/dev/.config/dconf/user.DAFJCY': No such file or directory (gedit:760): dconf-WARNING **: failed to commit changes to dconf: GDBus.Error:org.gtk.GDBus.UnmappedGError.Quark._g_2dfile_2derror_2dquark.Code4: Failed to create file '/home/dev/.config/dconf/user.YCYLCY': No such file or directory (gedit:760): dconf-WARNING **: failed to commit changes to dconf: GDBus.Error:org.gtk.GDBus.UnmappedGError.Quark._g_2dfile_2derror_2dquark.Code4: Failed to create file '/home/dev/.config/dconf/user.KGR6BY': No such file or directory (gedit:760): dconf-WARNING **: failed to commit changes to dconf: GDBus.Error:org.gtk.GDBus.UnmappedGError.Quark._g_2dfile_2derror_2dquark.Code4: Failed to create file '/home/dev/.config/dconf/user.PYA9BY': No such file or directory (gedit:760): dconf-WARNING **: failed to commit changes to dconf: GDBus.Error:org.gtk.GDBus.UnmappedGError.Quark._g_2dfile_2derror_2dquark.Code4: Failed to create file '/home/dev/.config/dconf/user.MV98BY': No such file or directory 

我仍然可以正确编辑代码和所有内容,但每次运行gedit时都会收到这些警告。 当我尝试更改首选项时,我遇到了相同的代码,但只有一个警告。 我还注意到,当我想改变我的终端偏好时,他们不会在下次打开终端时保存。

在查看我的.config文件之后,我注意到那里没有dconf目录/文件; 只有标有xfce4的东西。 任何帮助表示赞赏,我可以根据需要提供其他信息。 谢谢。

我遇到了同样的问题(在Windows 10创建者更新后,在Windows上使用Ubuntu上的Bash),安装后它就消失了:

 sudo apt-get install dconf-editor dbus-x11 

另请参阅https://www.reddit.com/r/Windows10/comments/4rsmzp/bash_on_windows_getting_dbus_and_x_server_working/ )

如果你想摆脱警告:

 cd mkdir .config/dconf 

关于保存偏好:

在更改某些偏好之前:

 ~/.config/dconf$ file user user: GVariant Database file, version 0 rinzwind@schijfwereld:~/.config/dconf$ ls -l user -rw-rw-r-- 1 rinzwind rinzwind 20023 mrt 13 09:20 user 

更改后:

 rinzwind@schijfwereld:~/.config/dconf$ ls -l user -rw-rw-r-- 1 rinzwind rinzwind 20302 mrt 13 09:21 user 

所以看起来在添加目录后也会修复它。