软件包 mc 不可用,但被另一个软件包 (i386) 引用

软件包 mc 不可用,但被另一个软件包 (i386) 引用

将 Ubuntu 18.04 升级到 20.04 后无法安装 Midnight Commander。

版本 Linux

$ sudo lsb_release -a No LSB modules are available. Distributor
ID: Ubuntu Description: Ubuntu 20.04.2 LTS Release: 20.04
Codename:   focal

源列表

deb ----://mirror.yandex.ru/ubuntu/ focal main 
deb ----://archive.ubuntu.com/ubuntu focal main 
deb ----://mirror.yandex.ru/ubuntu/ focal-updates main 
deb ----://mirror.yandex.ru/ubuntu/ focal universe

我尝试了其他来源,但没有帮助

deb mirror://mirrors.ubuntu.com/mirrors.txt focal main restricted universe multiverse
deb-src mirror://mirrors.ubuntu.com/mirrors.txt focal main restricted universe multiverse

deb mirror://mirrors.ubuntu.com/mirrors.txt focal-updates main restricted universe multiverse
deb-src mirror://mirrors.ubuntu.com/mirrors.txt focal-updates main restricted universe multiverse

deb mirror://mirrors.ubuntu.com/mirrors.txt focal-security main restricted universe multiverse
deb-src mirror://mirrors.ubuntu.com/mirrors.txt focal-security main restricted universe multiverse

deb mirror://mirrors.ubuntu.com/mirrors.txt focal-backports main restricted universe multiverse
deb-src mirror://mirrors.ubuntu.com/mirrors.txt focal-backports main restricted universe multiverse

deb ----://archive.canonical.com/ubuntu focal partner
deb-src ----://archive.canonical.com/ubuntu focal partner

更新软件包列表

$ sudo apt update 
Hit:1 ----://mirror.yandex.ru/ubuntu focal InRelease
Hit:2 ----://mirror.yandex.ru/ubuntu focal-updates InRelease          
Hit:3 ----://archive.ubuntu.com/ubuntu focal InRelease                
Hit:4 ----://archive.canonical.com/ubuntu focal InRelease             
Reading package lists... 
Done Building dependency tree        
Reading state information... Done 
4 packages can be upgraded. 
Run 'apt list --upgradable' to see them.

尝试安装 mc

$ sudo apt 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 However the following packages replace it:  
  mc-data
E: Package 'mc' has no installation candidate

结果命令 dkpg

$ dpkg -l mc*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                    Version           Architecture Description
+++-=======================-=================-============-==========================================================
rc  mc                      3:4.8.19-1        i386         Midnight Commander - a powerful file manager
ii  mc-data                 3:4.8.24-2ubuntu1 all          Midnight Commander - a powerful file manager -- data files
un  mcedit                  <none>            <none>       (no description available)
rc  mcp-account-manager-uoa 3.8.6-0ubuntu9.2  i386         GNOME multi-protocol chat and call client (UOA plugin)

我不知道该如何修复。您可能知道吗?

答案1

我检查源代码https://mirror.yandex.ru/ubuntu/dists/focal/universe/ 找不到包 mc

https://mirror.yandex.ru/ubuntu/dists/focal/universe/binary-i386/Packages.gz

但发现

https://mirror.yandex.ru/ubuntu/dists/focal/universe/binary-amd64/Packages.gz

这意味着该软件包不适用于 x86 架构,但可用于 x64。

如果需要安装“mc”,需要从以下位置下载https://launchpad.net

cd /tmp/
sudo apt remove mc-data
wget http://launchpadlibrarian.net/448485168/mc-data_4.8.23-1_all.deb
wget http://launchpadlibrarian.net/448485186/mc_4.8.23-1_i386.deb
sudo dpkg -i mc-data_4.8.23-1_all.deb
sudo dpkg -i mc_4.8.23-1_i386.deb

我们现在可以运行“mc”,但不能运行“apt full-upgrade”,因为此命令安装了较新的“mc-data”并删除了与其不兼容的“mc”。

相关内容