lpass command not found

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

Introduction

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

lpass: command not found

or when using sudo you get the following error message

sudo: lpass: command not found

Solutions to lpass: command not found

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

In Ubuntu lpass is provided by lastpass-cli package.

lastpass-cli is:

This application is a command line interface to the LastPass.com services. It brings both better security and convenience by allowing you to access, add, modify, and delete entries in your online LastPass vault, all from the terminal. You can also generate passwords for every server you use and securely store those passwords directly in LastPass. LastPass Enterprise features are supported as well, including Shared Folders.

Users who prefer the command line can access their data directly with “lpass ls” then using “lpass show -c –password Sitename” to put the Sitename password on the copy buffer. You can utilize “lpass show” to store passwords used in scripts, rather than putting passwords in the scripts themselves. LastPass can also be used as you work within the command line to help you login to servers. We’ve included some example scripts below.

The new tool is beneficial for LastPass users who want to use the command line to login to other machines as they work. There are examples such as contrib/examples/change-ssh-password.sh which shows automated password changing on a server. You could run it automatically on a nightly basis, regularly changing the password on the server as a security measure.

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

sudo apt-get -y install lastpass-cli

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

You can also use apt command to install lastpass-cli.

sudo apt -y install lastpass-cli

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

sudo aptitude install lastpass-cli

Summary

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