Ubuntu 16.04 和 Katoolin 删除失败

Ubuntu 16.04 和 Katoolin 删除失败

不幸的是,我按照以下步骤安装了 Katoolin这些步骤。安装后,我尝试使用此解决方案。现在,我看到这个奇怪的菜单。我无法截取屏幕截图,截取屏幕截图时菜单会关闭)

最糟糕的截图,我知道

所以我的问题是,我怎样才能删除这个东西?

我的软件中心不再运行了!

这是我在终端运行软件中心命令的输出:

/usr/bin/software-center:25: 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, GObject
ERROR:root:DebFileApplication import
Traceback (most recent call last):
  File "/usr/share/software-center/softwarecenter/db/__init__.py", line 6, in <module>
    from .debfile import DebFileApplication, DebFileOpenError
  File "/usr/bin/software-center", line 128, in <module>
    from softwarecenter.ui.gtk3.app import SoftwareCenterAppGtk3
  File "/usr/share/software-center/softwarecenter/ui/gtk3/app.py", line 54, in <module>
    from softwarecenter.db.application import Application
  File "/usr/share/software-center/softwarecenter/db/application.py", line 28, in <module>
    import softwarecenter.distro
  File "/usr/share/software-center/softwarecenter/distro/__init__.py", line 201, in <module>
    distro_instance = _get_distro()
  File "/usr/share/software-center/softwarecenter/distro/__init__.py", line 176, in _get_distro
    module = __import__(distro_module_name, globals(), locals(), [], level)
ImportError: No module named kaliile "/usr/share/software-center/softwarecenter/db/debfile.py", line 25, in <module>
    from softwarecenter.db.application import Application, AppDetails
  File "/usr/share/software-center/softwarecenter/db/application.py", line 28, in <module>
    import softwarecenter.distro
  File "/usr/share/software-center/softwarecenter/distro/__init__.py", line 201, in <module>
    distro_instance = _get_distro()
  File "/usr/share/software-center/softwarecenter/distro/__init__.py", line 176, in _get_distro
    module = __import__(distro_module_name, globals(), locals(), [], level)
ImportError: No module named kali
Traceback (most recent call last):
  File "/usr/bin/software-center", line 128, in <module>
    from softwarecenter.ui.gtk3.app import SoftwareCenterAppGtk3
  File "/usr/share/software-center/softwarecenter/ui/gtk3/app.py", line 54, in <module>
    from softwarecenter.db.application import Application
  File "/usr/share/software-center/softwarecenter/db/application.py", line 28, in <module>
    import softwarecenter.distro
  File "/usr/share/software-center/softwarecenter/distro/__init__.py", line 201, in <module>
    distro_instance = _get_distro()
  File "/usr/share/software-center/softwarecenter/distro/__init__.py", line 176, in _get_distro
    module = __import__(distro_module_name, globals(), locals(), [], level)
ImportError: No module named kali

答案1

基于此解决方案我修复了它。以下解决方案已修复我的问题:

gksu gedit /etc/*release

像这样更改文件(这是针对 15.10 的,但您可以进行相应的更改)

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=Xenial Xerus
DISTRIB_DESCRIPTION="Ubuntu 16.04"

保存并关闭文件。

gksu gedit /etc/*issue


sudo apt-get install --reinstall software-center

相关内容