Like, you might have forgotten to run apt-get update or apt update command before installing any packages so in that case you need to try updating your Server packages first before installing any new package. Hence it is confirmed that in my case issue was with the missing repository information in my server.īut what if the repository information is also there and still you are getting the same error ? Well, in that case you need to check other bunch of things that can cause this error. You can check this easily by running cat /etc/apt/sources.list command as you can see below.Īs you can see above, this time it worked and now I am able to install my package. To resolve this issue, first thing that you need to check is the repository list in your Debian System. While this error can come due to multiple issues so to understand the root cause of the error we need to go step by step. I was getting the Package 'openssh-server' has no installation candidate error when I was trying to install openssh-server package in my freshly built Debian 11 System using apt-get install openssh-server command as you can see below. Solved: Package "package_name" has no installation candidate in Debian So without any further delay let's dive in directly and see what can be done to solve this error. This is a very common error in a freshly built Debian based systems so I thought to write an article about this so that it will help you guys as well. Last night when I was trying to install Openssh Server packages in my freshly built Debian 11 server, then I noticed "package 'openssh-server' has no installation candidate" error which was stopping me to install any new packages. In this article, we will look to solve Package "package_name" has no installation candidate error on Debian based servers.
0 Comments
Leave a Reply. |