ubuntu-defaults-template command not found

In this troubleshooting guide we learn how to fix ubuntu-defaults-template command not found error message

Introduction

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

ubuntu-defaults-template: command not found

or when using sudo you get the following error message

sudo: ubuntu-defaults-template: command not found

Solutions to ubuntu-defaults-template: command not found

How To Fix ubuntu-defaults-template: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu ubuntu-defaults-template is provided by ubuntu-defaults-builder package.

ubuntu-defaults-builder is:

This tool allows you to create a “default settings” package for Ubuntu. The “ubuntu-defaults-template” script will generate a source package with the customizable settings (e. g. desktop/background.jpg and webbrowser/bookmarks-menu.txt). When built and installed, it will take the necessary actions to modify the system-wide defaults for desktops, programs, etc.

The main purpose for this is to provide a standard and safe way to create localized Ubuntu images, or OEM custom projects.

You can customize the following settings:

  • Web browser start page, default search engine, and bookmarks (supports Firefox right now)
  • Unity/Unity 2D launchers
  • Desktop background (for GNOME right now)
  • Default desktop session in LightDM/gdm
  • Default radio stations in Rhythmbox and Banshee
  • Extra dependencies (Depends: and Recommends:), i. e. packages that are installed by default on the customized image
  • Internationalization (default locale, keyboard layout, language support) (only for built images, not configured by the defaults package itself)

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

sudo apt-get -y install ubuntu-defaults-builder

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

You can also use apt command to install ubuntu-defaults-builder.

sudo apt -y install ubuntu-defaults-builder

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

sudo aptitude install ubuntu-defaults-builder

Summary

In this tutorial we learn how to fix ubuntu-defaults-template command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.