guess-upstream-metadata command not found

In this troubleshooting guide we learn how to fix guess-upstream-metadata command not found error message

Introduction

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

guess-upstream-metadata: command not found

or when using sudo you get the following error message

sudo: guess-upstream-metadata: command not found

Solutions to guess-upstream-metadata: command not found

How To Fix guess-upstream-metadata: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu guess-upstream-metadata is provided by python3-upstream-ontologist package.

python3-upstream-ontologist is:

The upstream ontologist discovers metadata about the upstream part of a package by reading common project metadata files. It currently supports:

  • setup.py/PKG-INFO files
  • package.json files
  • package.xml files
  • dist.ini files
  • META.json / META.yml files
  • GNU configure files
  • R DESCRIPTION files
  • pom.xml files
  • Cargo.toml files
  • and other formats

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

sudo apt-get -y install python3-upstream-ontologist

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

You can also use apt command to install python3-upstream-ontologist.

sudo apt -y install python3-upstream-ontologist

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

sudo aptitude install python3-upstream-ontologist

Summary

In this tutorial we learn how to fix guess-upstream-metadata command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.