如何在 Ubuntu 18.04.1 上安装 Midnight Commander?

Voj*_*oju 27 package-management midnight-commander 18.04

我无法mc在 Ubuntu 18.04.1 上安装 Midnight Commander ( )。

/etc/apt/sources.list 文件:

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
Run Code Online (Sandbox Code Playgroud)

这是我尝试安装时得到的答复:

$ 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
Run Code Online (Sandbox Code Playgroud)

这没有帮助(#1):

$ sudo apt-get update
Run Code Online (Sandbox Code Playgroud)

这没有帮助(#2):

$ sudo add-apt-repository ppa:eugenesan/ppa
sudo apt-get update
sudo apt-get install mc
Run Code Online (Sandbox Code Playgroud)

http://de.archive.ubuntu.com例如,将 mirror 更改为 也无济于事。

moo*_*765 55

您需要启用universe存储库:

sudo add-apt-repository 宇宙

然后安装mc

sudo apt 安装 mc

  • 添加 repo 时不需要 `sudo apt update`,因为它已初始化为最新内容。 (2认同)