xdg-user-dirs-gtk-update command not found

In this troubleshooting guide we learn how to fix xdg-user-dirs-gtk-update command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

xdg-user-dirs-gtk-update: command not found

or when using sudo you get the following error message

sudo: xdg-user-dirs-gtk-update: command not found

Solutions to xdg-user-dirs-gtk-update: command not found

How To Fix xdg-user-dirs-gtk-update: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu xdg-user-dirs-gtk-update is provided by xdg-user-dirs-gtk package.

xdg-user-dirs-gtk is:

xdg-user-dirs is a tool to help manage “well known” user directories like the desktop folder and the music folder. It also handles localization (i.e. translation) of the filenames.

This extension sets the Gtk bookmark file and tracks changes of the locale to notify the user on login about changed directory names.

To fix this problem, we can install more using the command below.

sudo apt-get -y install xdg-user-dirs-gtk

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install xdg-user-dirs-gtk.

sudo apt -y install xdg-user-dirs-gtk

Or if you have aptitude installed you can use the following command.

sudo aptitude install xdg-user-dirs-gtk

Summary

In this tutorial we learn how to fix xdg-user-dirs-gtk-update command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.