aptly command not found
In this troubleshooting guide we learn how to fix aptly command not found error message
Introduction
When you run more command in linux terminal / console, you get the following error message
aptly: command not found
or when using sudo you get the following error message
sudo: aptly: command not found
Solutions to aptly: command not found
How To Fix aptly: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu aptly is provided by aptly package.
aptly is:
It offers several features making it easy to manage Debian package repositories:
- make mirrors of remote Debian/Ubuntu repositories, limiting by components/architectures
- take snapshots of mirrors at any point in time, fixing state of repository at some moment of time
- publish snapshot as Debian repository, ready to be consumed by apt
- controlled update of one or more packages in snapshot from upstream mirror, tracking dependencies
- merge two or more snapshots into one
This is the main package, it contains the aptly command-line utility.
To fix this problem, we can install more using the command below.
sudo apt-get -y install aptly
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install aptly.
sudo apt -y install aptly
Or if you have aptitude installed you can use the following command.
sudo aptitude install aptly
Summary
In this tutorial we learn how to fix aptly command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.