zypp-NameReqPrv command not found

In this troubleshooting guide we learn how to fix zypp-NameReqPrv command not found error message

Introduction

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

zypp-NameReqPrv: command not found

or when using sudo you get the following error message

sudo: zypp-NameReqPrv: command not found

Solutions to zypp-NameReqPrv: command not found

How To Fix zypp-NameReqPrv: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu zypp-NameReqPrv is provided by libzypp-bin package.

libzypp-bin is:

libzypp is the package management library that powers applications like YaST, zypper and the openSUSE/SLE implementation of PackageKit.

libzypp provides all the functionality for a package manager:

  • an API for package repository management, supporting most common repository metadata formats and signed repositories
  • an API for solving packages, products, patterns and patches (installation, removal, update and distribution upgrade operations) dependencies, with additional features like locking
  • an API for comitting the transaction to the system over a rpm target; supporting deltarpm calculation, media changing and installation order calculation
  • an API for browsing available and installed software, with some facilities for programs with an user interface
  • a suite of maintained solving testcases representing common and uncommon operations on Linux software management

This package contains command line tools shipped with the libzypp library.

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

sudo apt-get -y install libzypp-bin

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

You can also use apt command to install libzypp-bin.

sudo apt -y install libzypp-bin

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

sudo aptitude install libzypp-bin

Summary

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