我曾mono-complete
和mono-devel
安装我的Ubuntu 18.10服务器上两三个月,现在运行一些依赖于它的应用程序。我正在使用Mono 5.18.0.225。在发生问题之前,我做了一个标准sudo apt update
,看到列表中有许多Mono软件包要升级,然后做了一个sudo apt upgrade
。对于大多数安装来说,它运行正常,然后终端不断吐出错误以及错误和错误。无论我尝试做什么,几乎无休止的错误将反复打印几秒钟:
- sudo apt升级
- sudo apt --fix-打破安装
- sudo apt remove mono-complete mono-devel
- sudo apt自动删除
似乎无法升级或删除。如果无法升级,我会尝试删除并尝试重新安装,但删除也同样失败。
错误中提到无法找到gdb或lldb。然后,我尝试手动制作和安装gdb,因为我无法使用apt ...尝试这样做将要求您运行sudo apt --fix-broken install
哪个会吐出相同的错误。gdb-8.2安装成功。打印出的错误会稍有变化,并包含对gdb的引用(因为现在已安装),但仍未找到任何地方。
- 单声道如何首先中断?
- 为什么要尝试删除产生错误的软件包?
- 解决此问题的最佳方法是什么?我宁愿不必重新安装Ubuntu Server并进行所有备份。
对于错误中打印出的内容(在gdb安装之前):
Aborted (core dumped)
E: installing Assembly /usr/share/cli-common/policies.d/libgtk2.0-cil/policy.2.8.gtk-sharp.dll failed
E: Installation of policy.2.8.gtk-sharp with /usr/share/cli-common/runtimes.d/mono failed
* Installing 1 assembly from policy.2.8.pango-sharp into Mono
Stacktrace:
/proc/self/maps:
41308000-41338000 rwxp 00000000 00:00 0
55b153398000-55b1537e1000 r-xp 00000000 08:02 3159129 /usr/bin/mono-sgen
... cutting some of this out ...
7fb557c3b000-7fb557c88000 r--p 00000000 08:02 3160431 /usr/lib/mono/gac/Mono.Security/4.0.0.0__0738eb9f132ed756/Mono.Security.dll
Memory around native instruction pointer (0x7fb5556e2c8f):
0x7fb5556e2c7f 20 48 09 d6 41 0f b6 53 05 48 c1 e2 28 48 09 f2 H..A..S.H..(H..
0x7fb5556e2c8f 66 41 0f 38 32 4b 06 66 0f 6f 05 b2 82 49 00 66 fA.82K.f.o...I.f
0x7fb5556e2c9f 0f 38 00 c8 66 48 0f 7e c8 66 48 0f 3a 16 ce 01 .8..fH.~.fH.:...
0x7fb5556e2caf 48 09 c6 48 09 d6 41 0f b6 c2 41 0f b6 53 09 48 H..H..A...A..S.H
Native stacktrace:
/usr/bin/mono(+0x129f8d) [0x55b1534c1f8d]
/usr/bin/mono(+0x12a295) [0x55b1534c2295]
/usr/bin/mono(+0xbfd2f) [0x55b153457d2f]
/usr/bin/mono(+0x414e8) [0x55b1533d94e8]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x12dd0) [0x7fb558343dd0]
/usr/lib/mono/aot-cache/amd64/mscorlib.dll.so(+0x123c8f) [0x7fb5556e2c8f]
Waiting for dumping threads to resume
Debug info from gdb:
mono_gdb_render_native_backtraces not supported on this platform, unable to find gdb or lldb
=================================================================
Got a SIGILL while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================
Aborted (core dumped)
E: installing Assembly /usr/share/cli-common/policies.d/libgtk2.0-cil/policy.2.8.pango-sharp.dll failed
E: Installation of policy.2.8.pango-sharp with /usr/share/cli-common/runtimes.d/mono failed
^[[1mdpkg:^[[0m error processing package mono-gac (--configure):
installed mono-gac package post-installation script subprocess returned error exit status 29
apt remove
因为它说dpkg已中断,我必须手动运行sudo dpkg --configure -a
,但是此命令只会导致上述错误。