mono-run 阻止在 Ubuntu 22.04 上重新配置软件包

mono-run 阻止在 Ubuntu 22.04 上重新配置软件包

最近我不得不重新安装 Ubuntu。返回 Ubuntu 22.04 后,我恢复了/usr/local/var文件夹,这造成了巨大的混乱,因为软件包被写为已安装,尽管当有人试图在终端中输入命令时,它们似乎并未安装。

通常我会遵循建议从这里它解决了问题,但这次我觉得我把事情搞得更糟了。由于 Pinta 未配置,无法安装,因此mono-runtime我从系统中移除了它们。现在mono-runtime似乎已安装但未配置:当我输入时,sudo apt install mono-runtime我得到

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
mono-runtime is already the newest version (6.8.0.105+dfsg-3.2).
mono-runtime set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
4 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.

但是当我打字时Y我得到

Setting up mono-runtime (6.8.0.105+dfsg-3.2) ...
update-alternatives: error: alternative path /usr/bin/mono doesn't exist
dpkg: error processing package mono-runtime (--configure):
 installed mono-runtime package post-installation script subprocess returned error exit status 2
dpkg: dependency problems prevent configuration of libmono-i18n4.0-cil:
 libmono-i18n4.0-cil depends on mono-runtime (>= 6.8.0.105); however:
  Package mono-runtime is not configured yet.
 libmono-i18n4.0-cil depends on mono-runtime (<< 6.8.0.106); however:
  Package mono-runtime is not configured yet.

dpkg: error processing package libmono-i18n4.0-cil (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libmono-i18n-west4.0-cil:
 libmono-i18n-west4.0-cil depends on libmono-i18n4.0-cil (>= 4.0.0~alpha1); however:
  Package libmono-i18n4.0-cil is not configured yet.

dpkg: error processing package libmono-i18n-west4.0-cil (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libmono-corlib4.5-cil:
 libmono-corlib4.5-cil depends on mono-runtime (>= 6.8.0.105); however:
  Package mono-runtime is not configured yet.
 libmono-corlib4.5-cil dependNo apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                                                       No apport report written because the error message indicates its a followup error from a previous failure.
                              No apport report written because MaxReports is reached already
                                                                                            s on mono-runtime (<< 6.8.0.106); however:
  Package mono-runtime is not configured yet.

dpkg: error processing package libmono-corlib4.5-cil (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 mono-runtime
 libmono-i18n4.0-cil
 libmono-i18n-west4.0-cil
 libmono-corlib4.5-cil

有人知道如何解决这个问题而不需要重新格式化系统吗?

相关内容