I recently installed a GRUB theme from gnome-look.org on Ubuntu 20.04 LTS (my PC is Windows 10 dual-boot with Ubuntu). To install the theme successfully, the file at /etc/default/grub
needs to be edited.
So I used sudo gedit /etc/default/grub
command to do so. After editing when I save it I, see the following warning in Terminal:
(gedit:7169): Tepl-WARNING **: 21:13:18.135: GVfs metadata is not supported. Fallback to TeplMetadataManager. Either GVfs is not correctly installed or GVfs metadata are not supported on this platform. In the latter case, you should configure Tepl with --disable-gvfs-metadata.
Later on I also edited the grub menu by editing the file at /boot/grub/grub.cfg
by using sudo gedit /boot/grub/grub.cfg
.
Upon saving the file I got a similar warning
(gedit:8887): Tepl-WARNING **: 21:18:46.163: GVfs metadata is not supported. Fallback to TeplMetadataManager. Either GVfs is not correctly installed or GVfs metadata are not supported on this platform. In the latter case, you should configure Tepl with --disable-gvfs-metadata.
Can someone tell me the reason? And also how to deal with it?
This is not critical, the metadata seems to be only the last line number you were on, so the file will reopen in the same position. You can check with
gio info <path>
.Don't sudo gnome apps. Use "admin://" schema to tell gedit that it needs to escalate. You'll get a graphical escalate prompt.
gedit admin:///etc/default/grub
Good explanation on the escalation mess here:
https://easylinuxtipsproject.blogspot.com/p/about-root.html
Whenever you want to open a GUI application with sudo privileges from the
terminal
CLI, you must usesudo -H
, else you probably create a login loop.From
man sudo
we get the -H description...translated this means that if you don't use -H, these two files in your /home directory probably get changed to owner root:root, and you get a login loop...
The warning messages... they're just noise.
And, you should never manually edit /boot/grub/grub.cfg.
Update #1:
To reduce the need to manually edit /boot/grub/grub.cfg, edit/add the following to /etc/default/grub...
sudo update-grub
# write changesThis will allow GRUB to remember the last selected OS to boot, and will reboot to that same OS until a different OS is selected.
Having gvfs installed does not prevent the error message. In my own case, "gvfs is already the newest version (1.44.1-1ubuntu1)" but the error still pops up warning whenever I "gedit" a document, either with 'sudo gedit' or 'sudo -H gedit'. I have not found a clear direction on how to fix that tepl issue, my system works great, the warning comes only when using 'sudo gedit'.
However, I found a workaround that goes like this somewhere and 'sudo gedit' gives no errors or warnings:
" Alternatively you can put: export SUDO_EDITOR='/usr/bin/gedit -w' in your .bashrc file and then you can just do this to edit the file: sudoedit /etc/default/grub "
That's a warning by starting
gedit
withoutsudo-H
(see What does sudo -H do?). Make sure that you're starting it withor you may use a terminal editor like vi, vim or emacs.
I have only ubuntu 20.04, no multiboot, updated pkgs, sudo gedit and sudo -H gedit both continue to spew Tepl warnings, mostly re GVfs metadata.
the answering parties above have not addressed that issue, nor that it was not an issue until 20.04. from scanning pkgs, 20.04 uses 'libtepl-4-0' whose description via apt show is:
Tepl is a library that eases the development of GtkSourceView-based text editors and IDEs. Tepl is the acronym for “Text editor product line”. It serves as an incubator for GtkSourceView.
guess the error msg hint to config tepl may do the trick, if only it included which file to config, instead of just the options to apply! :)
You need to install gvfs by this command: