7

This question already has an answer here:

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

/etc/apt/sources.list file:

deb http://archive.ubuntu.com/ubuntu bionic main
deb http://archive.ubuntu.com/ubuntu bionic-security main
deb http://archive.ubuntu.com/ubuntu 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 http://de.archive.ubuntu.com, for example.

marked as duplicate by Eric Carvalho, Charles Green, karel, Thomas, vidarlo Dec 28 '18 at 13:13

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • Also not working apt-install ntp ... – Voju Sep 2 '18 at 15:02
21

You need to enable the universe repository:

sudo add-apt-repository universe

then update

sudo apt update

and then install mc:

sudo apt install mc
  • sudo apt update is not necessary when adding a repo since it's initialized to latest contents. – Endrju Oct 29 '18 at 12:49
  • When refreshing existing repos - yes, but when adding, it downloads the contents automatically. Just did it. But of course your answer is correct - +1! – Endrju Oct 30 '18 at 16:07

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