我尝试使用 playdeb/getdeb,但它不起作用。所以我去终端看看发生了什么。问题是我不知道这实际上意味着什么或如何修复它。任何帮助解决这个问题的帮助都将不胜感激。
~$ apturl apt:enemy-territoy
/usr/lib/python3/dist-packages/AptUrl/gtk/GtkUI.py:1: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
from gi.repository import Gtk
(apturl-gtk:11037): Gtk-WARNING **: Theme parsing error: gtk.css:90:44: Failed to import: Error opening file: No such file or directory
ERROR:root:importing aptdaemon
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/AptUrl/gtk/backend/__init__.py", line 40, in get_backend
from .InstallBackendAptdaemon import InstallBackendAptdaemon
File "/usr/lib/python3/dist-packages/AptUrl/gtk/backend/InstallBackendAptdaemon.py", line 10, in <module>
from UpdateManager.backend import InstallBackend
File "/usr/lib/python3/dist-packages/UpdateManager/backend/__init__.py", line 14, in <module>
from UpdateManager.Dialogs import Dialog
ImportError: No module named 'UpdateManager.Dialogs'
Traceback (most recent call last):
File "/usr/bin/apturl-gtk", line 43, in <module>
ui = GtkUI()
File "/usr/lib/python3/dist-packages/AptUrl/gtk/GtkUI.py", line 38, in __init__
self.backend = get_backend(self.dia)
File "/usr/lib/python3/dist-packages/AptUrl/gtk/backend/__init__.py", line 48, in get_backend
from .InstallBackendSynaptic import InstallBackendSynaptic
File "/usr/lib/python3/dist-packages/AptUrl/gtk/backend/InstallBackendSynaptic.py", line 12, in <module>
from UpdateManager.backend import InstallBackend
File "/usr/lib/python3/dist-packages/UpdateManager/backend/__init__.py", line 14, in <module>
from UpdateManager.Dialogs import Dialog
ImportError: No module named 'UpdateManager.Dialogs'
答案1
我重新安装apturl
解决了这个问题。
sudo apt-get remove apturl apturl-common
sudo apt-get install apturl apturl-common
希望能帮助到你。
答案2
这为我解决了这个问题:
sudo apt-get install update-manager python3-update-manager
缺少 Python 模块。似乎是 Ubuntu 18.04 中的一个依赖项错误