16

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?

wjandrea
  • 14,236
  • 4
  • 48
  • 98
  • Midnight Commander is in the repos, what messages do you get when you try and do sudo apt-get install mc? – Thomas Ward Jul 31 '18 at 16:51
  • 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

    – Loctarogar Jul 31 '18 at 16:52
  • Run sudo apt-get update && sudo apt-get install mc. It sounds like your system doesn't know what's available in the repositories. Once it finishes its "Update" task, it should then be able to install mc – Thomas Ward Jul 31 '18 at 16:56
  • Maybe the universe repo isn't enabled? – DK Bose Jul 31 '18 at 17:03
  • 1
    @DKBose it's enabled by default since a long time ago. More likely they just installed and haven't done an apt-get update yet – Thomas Ward Jul 31 '18 at 17:04
  • FYI: Double Commander packages are named doublecmd-gtk and doublecmd-qt. – N0rbert Jul 31 '18 at 19:41
  • for Ubuntu Server this helps https://askubuntu.com/questions/1071392/ubuntu-18-04-1-mc – fedd Nov 22 '18 at 18:37

1 Answers1

20

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.

Thomas Ward
  • 74,764