38

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.

Zanna
  • 70,465
Voju
  • 499

1 Answers1

66

You need to enable the universe repository:

sudo add-apt-repository universe

and then install mc:

sudo apt install mc
mook765
  • 15,925
  • 3
    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