How to Fix ‘App Installation Errors’ Issue in Linux PC – Guide
Please use them if you want to download them. In this article, we will do a brief discussion about all the application installation errors and their solutions that are commonly found on the Linux platform. So, if you are someone who is quite curious about this topic, please keep reading. It has been noticed that users encounter various types of errors when booting up and start the installation process on Kali which if it is severe it takes a long time to fix them all. There are many errors and people using this Kali Linux platform are unaware of certain solutions that can be used to fix the installation error on their own. In such a situation, they rely on an expert to fix it for them, but as far as I know, some of the installation errors encountered are quite simple that almost anyone can fix just by following a certain number of steps correctly and knowing how to don’t trust some experts, you keep encountering these installation errors.
Resetting the dpkg package database
Let’s use a simple command to reconfigure the dpkg database as this error can be caused due to some interruption during the installation. After running this command, try the installation and check whether you are facing the same error or not.
Force install package
Since dpkg was not the problem, try this command to forcibly install the problematic package. We are going to show you two different commands, which actually work similarly, will fix the broken dependencies to end the error.
OR
could not get lock /var/lib/dpkg/lock
This error can be encountered when using apt-get command in terminal. This error basically tells us that dpkg is not available for use at the moment. This can explain two things, there is already an app being installed or the app installation was interrupted in the middle of the process.
Find and kill the process
In this method, we will manually find the process that is running and then we will have to manually stop/kill the process(es).
OR
Now you have the process number, let’s use the following command to kill the process,
OR
If you don’t search and find out the process number/process id, use the following command to kill all running processes,
When deleting the lock
In case the above fix didn’t work in your case, we will try to delete the lock to get rid of the error, use the following command to do that, Run these commands one by one and check the lock directory for the error itself, then use the rm command. For example, if your error contains /var/cache/apt/archives/lock, just use the directory.
add-apt-repository: command not found
This error is encountered when you are trying to add new software from the PPA (Personal Package Archive) repository. PPA is one of many ways used to install software on Linux system. First we will use the following command to update/synchronize the repository database, If the run completes without any errors, just proceed to the next step. Actually add-apt-repository is not like the other command package found on Ubuntu/Debian systems, let’s install the software-properties-common package to install add-apt-repository.
Final note
I hope you like the guide How to Fix ‘App Installation Errors’ Issue in Linux PC. In case if you have any query regards this article you may ask us. Also, please share your love by sharing this article with your friends.