apt-offline-gui-pkexec command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
apt-offline-gui-pkexec: command not found
or when using sudo you get the following error message
sudo: apt-offline-gui-pkexec: command not found
Solutions to apt-offline-gui-pkexec: command not found
How To Fix apt-offline-gui-pkexec: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu apt-offline-gui-pkexec is provided by apt-offline-gui package.
apt-offline-gui is:
apt-offline is an Offline APT Package Manager.
apt-offline can fully update and upgrade an APT based distribution without connecting to the network, all of it transparent to APT.
apt-offline can be used to generate a signature on a machine (with no network). This signature contains all download information required for the APT database system. This signature file can be used on another machine connected to the internet (which need not be a Debian box and can even be running windows) to download the updates. The downloaded data will contain all updates in a format understood by APT and this data can be used by apt-offline to update the non-networked machine.
apt-offline can also fetch bug reports and make them available offline.
This package contains the graphical user interface to apt-offline.
To fix this problem, we can install more using the command below.
sudo apt-get -y install apt-offline-gui
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install apt-offline-gui.
sudo apt -y install apt-offline-gui
Or if you have aptitude installed you can use the following command.
sudo aptitude install apt-offline-gui
Summary
In this tutorial we learn how to fix apt-offline-gui-pkexec command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.