Can't install Midnight Commander [duplicate]

How do I install "Double Commander" or "Midnight Commander" file managers in Ubuntu 18.04?

I tried to install Midnight Commander with sudo apt-get install mc but got

Reading package lists... Done
Building dependency tree
Reading state information... Done
Package mc is not available, but is referred to by another package. 
This may mean that the package is missing, has been obsoleted, or is only available from another source
E: Package 'mc' has no installation candidate

Is there some working file managers for Ubuntu 18.04?


Solution 1:

Midnight Commander and Double Commander are already in the 18.04 repos, you just have to install it.

Judging by the errors you're getting, however, your system doesn't know that mc is actually installable and doesn't know what packages are available, so start with an update and then try and install:

sudo apt-get update
sudo apt-get install mc

You can install Double Commander by replacing mc with either doublecmd-gtk or doublecmd-qt in the command, if you wanted to.