How can I install Midnight Commander on Ubuntu 18.04.1? [duplicate]

I can't install Midnight Commander (mc) on Ubuntu 18.04.1.

/etc/apt/sources.list file:

deb bionic main deb bionic-security main deb bionic-updates main 

And this is the reply I get when I try to install:

$ sudo apt-get install mc 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 

This didn't help (#1):

$ sudo apt-get update 

This didn't help (#2):

$ sudo add-apt-repository ppa:eugenesan/ppa sudo apt-get update sudo apt-get install mc 

It also didn't help to change mirror to , for example.

2

1 Answer

You need to enable the universe repository:

sudo add-apt-repository universe

and then install mc:

sudo apt install mc
3

You Might Also Like