appstream-generator command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
appstream-generator: command not found
or when using sudo you get the following error message
sudo: appstream-generator: command not found
Solutions to appstream-generator: command not found
How To Fix appstream-generator: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu appstream-generator is provided by appstream-generator package.
appstream-generator is:
AppStream is a cross-distribution effort for creating and sharing metadata of software components available in the package repositories of a distribution. It provides specifications for an unified software component metadata format as well as tools to read, write and validate the metadata.
This package contains a tool to generate collection metadata from package
repositories.
It will extract icons, download screenshots, validate and transform the
metadata and return XML or YAML files that can be read by AppStream clients,
such as software centers.
The appstream-generator
tool will also generate issue reports as
JSON documents and HTML pages.
To fix this problem, we can install more using the command below.
sudo apt-get -y install appstream-generator
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install appstream-generator.
sudo apt -y install appstream-generator
Or if you have aptitude installed you can use the following command.
sudo aptitude install appstream-generator
Summary
In this tutorial we learn how to fix appstream-generator command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.