6

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:

enter image description here

(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

enter image description here

(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?

3

Whenever you want to open a GUI application with sudo privileges from the terminal CLI, you must use sudo -H, else you probably create a login loop.

sudo -H gedit /etc/default/grub

From man sudo we get the -H description...

-H, --set-home
             Request that the security policy set the HOME environment
             variable to the home directory specified by the target user's
             password database entry.  Depending on the policy, this may
             be the default behavior.

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...

-rw------- 1 your_username your_username 441K Nov  2  2019 .ICEauthority
-rw------- 1 your_username your_username   58 Jun 23  2017 .Xauthority

The warning messages... they're just noise.

And, you should never manually edit /boot/grub/grub.cfg.

Update #1:

To lesson the need to manually edit /boot/grub/grub.cfg, edit/add the following to /etc/default/grub...

GRUB_DEFAULT=saved    # this is an edit
GRUB_SAVEDEFAULT=true # this is an add

sudo update-grub # write changes

This will allow GRUB to remember the last selected OS to boot, and will reboot to that same OS until a different OS is selected.

| improve this answer | |
  • I just use it to change the boot order. By default Ubuntu is above Windows and also there is an option for opening BIOS in boot menu. So I just remove the BIOS and shift Windows above Ubuntu. Also I change Windows Boot Manager to Windows – Abhay Patil May 6 at 11:51
  • @AbhayPatil There's a better way to do this. – heynnema May 6 at 14:05
  • What is the better way? – Abhay Patil May 9 at 8:05
  • 3
    I get the same error when using sudo -H gedit. This is after upgrading to 20.04. It did not happen on 19.10 – koyakun May 12 at 2:07
  • 1
    @koyakun "Why does it occur?" and "How to deal with it?". – Abhay Patil May 29 at 9:51
1

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:

Description: Text editor library for GTK

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! :)

| improve this answer | |
0

That's a warning by starting gedit without sudo-H (see What does sudo -H do?). Make sure that you're starting it with

sudo -H gedit file

or you may use a terminal editor like vi, vim or emacs.

| improve this answer | |
  • 1
    But why is sudo -H needed? And what is the problem with just sudo? – Abhay Patil May 5 at 16:19
  • 1
    Or nano, which doesn't require learning the vim/emacs' intricacies. – schrodigerscatcuriosity May 5 at 16:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.