Package ‘git’ has no installation candidate?

I’m trying to install some dependencies and I get errors. For example, with git, I get “package git has no installation candidate’

With libx11-dev and several other prerequisites, I get “unable to locate package”.

2

1 Answer

First of all after installation you have to run

sudo apt-get update && sudo dpkg --configure -a

Thi sinitiates your package manager additionaly to keep everything clean

sudo apt-get autoremove && sudo apt-get autoclean

No you are ready to go. start by searching the package you want to install

sudo apt-cache search git

This will bring you the search result and you can do

sudo apt-get install git

If still appears same error then check for content in apt source file probably in /etc/apt/sources.list.d/
However you can always simplify the process by using GUI software called package manager. You can launch that software by searching in menu.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like