我无法启动口径应用程序。我试过重新安装它。然而,它仍然给了我以下的信息,每次。
calibre, version 2.55.0
ERROR: Startup error: There was an error during calibre startup. Parts of calibre may not function. Click Show details to learn more.
Traceback (most recent call last):
File "/usr/lib/calibre/calibre/gui2/main.py", line 276, in initialize_db_stage2
self.start_gui(db)
File "/usr/lib/calibre/calibre/gui2/main.py", line 216, in start_gui
main.initialize(self.library_path, db, self.listener, self.actions)
File "/usr/lib/calibre/calibre/gui2/ui.py", line 261, in initialize
self.system_tray_icon = factory(app_id='com.calibre-ebook.gui').create_system_tray_icon(parent=self, title='calibre')
File "/usr/lib/calibre/calibre/gui2/dbus_export/widgets.py", line 232, in create_system_tray_icon
ans = StatusNotifierItem(parent=parent, title=title, app_id=self.app_id, category=category)
File "/usr/lib/calibre/calibre/gui2/dbus_export/tray.py", line 44, in __init__
self.dbus_api = StatusNotifierItemAPI(self, **kw)
File "/usr/lib/calibre/calibre/gui2/dbus_export/tray.py", line 114, in __init__
self.dbus_name = BusName(self.name, bus=bus, do_not_queue=True)
File "/usr/lib/calibre/calibre/utils/dbus_service.py", line 238, in __new__
raise NameExistsException(name)
NameExistsException: Bus name already exists: org.kde.StatusNotifierItem-3230-1需要帮助来解决这个问题。
发布于 2016-06-11 20:17:47
你是通过apt-get安装的吗?我发现有能力的人相当挑剔和脆弱。
我以前曾经通过手动重新安装python-dbus包来纠正上面粘贴的错误,但是同样的修复在随后的错误重新出现时没有起作用。
最后,我听从了开发人员的建议,直接安装了它:
sudo -v && wget -nv -O- https://raw.githubusercontent.com/kovidgoyal/calibre/master/setup/linux-installer.py | sudo python -c "import sys; main=lambda:sys.stderr.write('Download failed\n'); exec(sys.stdin.read()); main()"这导致了主要是的无故障安装(在Ubuntu和OpenSUSE上)。
在正式安装页面上有其他安装选项(除了上面列出的选项):
用于Linux的下载口径
本页内容如下:
请不要使用您的分发提供的口径包,因为这些往往是错误/过时。相反,请使用下面描述的二进制安装。
我最初忽略了这个建议,因为我通常更喜欢从默认的包管理器安装包。但就口径而言,我花了大量时间来解决和修复那些最终通过遵循官方安装指南而避免的问题。
如果您确实通过apt进行安装,请确保在尝试上述操作之前删除(卸载)。
https://askubuntu.com/questions/770643
复制相似问题