mdquery command not found

In this troubleshooting guide we learn how to fix mdquery command not found error message

Introduction

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

mdquery: command not found

or when using sudo you get the following error message

sudo: mdquery: command not found

Solutions to mdquery: command not found

How To Fix mdquery: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu mdquery is provided by shibboleth-sp-utils package.

shibboleth-sp-utils is:

The Shibboleth System is a standards based software package for web single sign-on across or within organizational boundaries. It supports authorization and attribute exchange using the OASIS SAML 2.0 protocol. Shibboleth allows sites to make informed authorization decisions for individual access of protected online resources while allowing users to establish their identities with their local authentication systems.

This package contains the daemon that handles attribute requests and maintains session information for the SP. It is used internally by the Apache module (libapache2-mod-shib), but may be useful independently in some circumstances. It also contains some other useful Shibboleth SP utility programs and the FastCGI authorizer and responder.

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

sudo apt-get -y install shibboleth-sp-utils

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

You can also use apt command to install shibboleth-sp-utils.

sudo apt -y install shibboleth-sp-utils

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

sudo aptitude install shibboleth-sp-utils

Summary

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