smbclient command not found

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

Introduction

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

smbclient: command not found

or when using sudo you get the following error message

sudo: smbclient: command not found

Solutions to smbclient: command not found

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

In Ubuntu smbclient is provided by smbclient package.

smbclient is:

Samba is an implementation of the SMB/CIFS protocol for Unix systems, providing support for cross-platform file and printer sharing with Microsoft Windows, OS X, and other Unix systems.

This package contains command-line utilities for accessing Microsoft Windows and Samba servers, including smbclient, smbtar, and smbspool. Utilities for mounting shares locally are found in the package cifs-utils.

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

sudo apt-get -y install smbclient

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

You can also use apt command to install smbclient.

sudo apt -y install smbclient

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

sudo aptitude install smbclient

Summary

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