Debian 9.8 install lacks apt, apt-get, aptitude

apt
sysadmin
apt-get
debian
#1

So how do I install the programs I use all the time that aren’t in the default install?
which dpkg Command not found ; (just like the apt suite of tools)

mike, in phoenix

0 Likes

#2

apt tools are loaded once you request a program from the software tool. You then need to add the key words “contrib non-free” to the ends of the lines in /etc/apt/sources.list. So this problem is solved. Thanks.

mike

0 Likes

#3

Hey @mike welcome to nixCraft forum.

Yes, you need to have repo enabled.

Second, you must run apt/apt-get/dpkg command as root user. For example:

sudo apt update
sudo apt-get upgrade
sudo apt-get install nginx
0 Likes