in

LinuxLinux

APT-GET Command Not Found! {Fixed}?Ubuntu 18.04.2 LTS, 19.04 & Debian

How to fix apt get command not found error in Ubuntu 18.04 & 19.04 Debian based distros.

APT-GET Command Not Found
Reading Time: 4 minutes

A

pt-GET Command Not Found: APT-GET is the basic repo for Linux where you can get all the Software Package Tool. Each & every Ubuntu & Debian based Linux users will know this repo command. Before get into this article, APT means Advanced Package Tool, which allows you to search for software to install, manage & remove. This APT-GET command is quite powerful command in Ubuntu & Debian based Distros. This commad compiles the source code to install, manage & remove software packages.

The most commonly used command is apt-get, this command helps users to interact with APT library file.

Jump To:

Why APT-GET Command Not Found- Cause & Reason:

In Ubuntu & Debian based distros, This APT-GET command will work fine. If you receive output as “sudo apt-get: command not found”, Which means you main ubuntu files have been corrupted or maybe the Ubuntu was not installed correctly. Sometimes this may happen due to any misinterpreted updates or corruption occurs while installing the Ubuntu OS. If you remove any APT library files without your concern & then this error will occur in your PC. Luckily we have the solution to fix this error, Kindly follow the below steps

{Fix} APT-GET Command Not Found:

We providing the steps to check that your Ubuntu files are corrupted or not!, If it seems to be corrupted and then you don’t have the choice other than re-installing the Ubuntu OS in your PC ?.

Check this too  10 Interesting Usages of "!" Operator in Linux Commands
  • You need to run the Environment Variables for your user with the following command ~/$tecrobust/.bashrc, Replace tecrobust with your user ID
  • Now use the following command sudo /usr/bin/apt-get update, check if you get the same error!
  • If the above command not works! Then log in with your “ROOT” account & try the above steps.
  • Still, you facing the same error? Then search your system that you have the APT-Library files using the following command
$sudo find / -name 'apt-get'

The output of the above command is,

  • If you are unable to see the above output, which means the binary is not found.
  • Ubuntu was not installed in your system correctly.
  • You need to reinstall the OS in your system.

APT-GET Packages Uses:

Before installing any package, you need to update all the existing package, With the help of APT-GET command, you will easily update your system. Use the following command:

$sudo apt-get update

To Upgrade Packages:

$sudo apt-get upgrade

Difference Between Update & Upgrade:

The command Update will look for the new version of the package. The Command Upgrade will update the currently installed packages to the newer versions of the package.

Install Packages with APT-GET Command:

You can use this command to install any packages from the APT library, Use the following command:

$sudo apt-get install PACKAGE

Replace Package with your package name that you want to install in your PC.

Install Multiple Packages using APT-GET Command:

You can use this command to install multiple packages at the same time. Use the following command,

$sudo apt-get install PACKAGE1 PACKAGE2 PACKAGE3

Replace Package with your package name that you want to install in your PC.

Check this too  How to Install PIP for Python 2, Python 3 on Debian 10?

Remove Packages using APT-GET Command:

This APT-GET command will help you remove the installed packages from your PC. To do this, follow the below command:

$sudo apt-get remove PACKAGE

Replace Package with your package name that you want to remove in your PC.

Remove Multiple Packages:

You can use this command to remove multiple packages, Use the following command:

$sudo apt-get remove PACKAGE1 PACKAGE2 PACKAGE3

Replace Package with your package name that you want to remove in your PC.

Clean Up Device using APT-GET Command:

When you install packages from the APT library, The installation file PACKAGE.deb will be downloaded in your PC. You can find this downloaded file in the directory /var/cache/apt/packages. After installing the packages, you don’t need the installation file and so you can delete those installation files using the following command.

$sudo apt-get clean

To Remove Installation Files no longer updated or needed:

You can use the autoclean command to remove those file which is no longer needed. Use the following command:

$sudo apt-get autoclean

You can use the autoremove command to remove those files automatically by your system.

Verdict:

That’s it If you’re not able to fix the error “APT-GET: command not found”, We suggest you re-install the Ubuntu OS in your PC. The APT is the basic library file or binary file if it is not installed and then re-install the OS in your System.

Article Review
  • Content Explanation
  • Command Provided
  • Alternate ways to avoid this error
  • Commonly occurring apt get command error
4.8

Summary

For more articles, kindly view our HomePage

Leave a Reply

Your email address will not be published. Required fields are marked *

Written by Julian

Hello Folks! I'm Julian, Promoted to the Content writer for the category of Commands & Web Apps in Tec Robust. Enjoy my content & Learn more Linux Commands!

Contact me:
tecrobust [@] gmail.com
Sub: Message to Julian

Shotcut Ubuntu

Shotcut Ubuntu: How to Install Shotcut for Ubuntu 18.04 LTS and 19.04

Deja-dup Ubuntu

Deja-dup Ubuntu: How to Install Deja-dup for Ubuntu 18.04 LTS and 19.04