After finishing a fresh install of elementary OS Loki I tried installing git using apt-get but got the following error:

E: Package 'git' has no installation candidate

I have tried installing apt but the same error occurs. All of my lists and therefore repositories are in order.

After further instpection I found that apt-get cannot find an installation candidate for any package.

1 Answer 1


For me all that was required was a restart after the first boot.

The following articles may be helpful if this error persists, though:

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.