运行更新管理器会导致崩溃并出现以下错误:
** (do-release-upgrade:11138): WARNING **: Failed to load shared library 'libwebkit2gtk-4.0.so.37' referenced by the typelib: /usr/lib/x86_64-linux-gnu/libwebkit2gtk-4.0.so.37: undefined symbol: wl_proxy_marshal_constructor_versioned
/usr/lib/python3/dist-packages/gi/types.py:205: Warning: cannot derive 'DistUpgrade+ReleaseNotesViewerWebkit+ReleaseNotesViewerWebkit' from non-derivable parent type 'void'
_gobject.type_register(cls, namespace.get('__gtype_name__'))
Traceback (most recent call last):
File "/usr/bin/do-release-upgrade", line 169, in <module>
fetcher.run()
File "/usr/lib/python3/dist-packages/DistUpgrade/DistUpgradeFetcherCore.py", line 275, in run
if not self.showReleaseNotes():
File "/usr/lib/python3/dist-packages/DistUpgrade/DistUpgradeFetcher.py", line 62, in showReleaseNotes
res = self._try_show_release_notes_webkit()
File "/usr/lib/python3/dist-packages/DistUpgrade/DistUpgradeFetcher.py", line 72, in _try_show_release_notes_webkit
from .ReleaseNotesViewerWebkit import ReleaseNotesViewerWebkit
File "/usr/lib/python3/dist-packages/DistUpgrade/ReleaseNotesViewerWebkit.py", line 39, in <module>
class ReleaseNotesViewerWebkit(WebKit.WebView):
File "/usr/lib/python3/dist-packages/gi/types.py", line 213, in __init__
super(GObjectMeta, cls).__init__(name, bases, dict_)
File "/usr/lib/python3/dist-packages/gi/types.py", line 193, in __init__
cls._type_register(cls.__dict__)
File "/usr/lib/python3/dist-packages/gi/types.py", line 205, in _type_register
_gobject.type_register(cls, namespace.get('__gtype_name__'))
RuntimeError: could not create new GType: DistUpgrade+ReleaseNotesViewerWebkit+ReleaseNotesViewerWebkit (subclass of void)
我之前遇到过这个问题,导致我无法运行控制中心,但我通过使用有问题文件的旧版本解决了这个问题。但是,新文件和旧文件都无法解决这个问题,我觉得这次我必须找到问题的根源,而不是采用廉价的解决方法。我甚至不知道从哪里开始。我尝试修复该软件包,但它只是说它已经有最新版本了。
答案1
您是否先进行了发行版升级 ($ sudo apt-get dist-upgrade),并且安装了 update-manager-core。dist-upgrade 不会将您升级到新版本(16 到 18)。它管理当前版本中更复杂的升级,其中的内容可能在后台发生变化。也许您可以升级到新版本。