Trelby没有安装在16.04

尝试使用sudo dpkg -i trelby_2.2_all.deb安装trelby会产生此错误:

 Selecting previously unselected package trelby. (Reading database ... 267174 files and directories currently installed.) Preparing to unpack trelby_2.2_all.deb ... Unpacking trelby (2.2) ... dpkg: dependency problems prevent configuration of trelby: trelby depends on python-wxgtk2.8; however: Package python-wxgtk2.8 is not installed. dpkg: error processing package trelby (--install): dependency problems - leaving unconfigured Processing triggers for gnome-menus (3.13.3-6ubuntu3) ... Processing triggers for desktop-file-utils (0.22-1ubuntu5) ... Processing triggers for mime-support (3.59ubuntu1) ... Errors were encountered while processing: trelby 

它显然看起来像一个依赖问题,但我不知道如何解决这个问题。

有任何想法吗?

正如在Debian邮件列表中所写:

这是Trelby的一个问题: https : //github.com/oskusalerma/trelby/commit/50c46f2249ca5b094c5e712a872e1dadbd8dfdfa

看起来它已修复,但没有新的包构建。

您可能想向Trelby开发人员报告错误,并且最好让他们列出包的要求。 “Ubuntu / Debian”并没有告诉你太多。

您也可以考虑从源代码编译它。

我对Ubuntu 17.04上的.deb包有相同的依赖性问题,但是从源代码安装Trelby非常简单。

  1. 从存储库安装python-lxmlpython-wxgtk3.0

     sudo apt install python-lxml python-wxgtk3.0 
  2. 下载并解压缩Zip文件或克隆Git存储库 。 例:

     sudo apt install git git clone https://github.com/oskusalerma/trelby.git cd trelby 
  3. 导航到trelby文件夹并输入:

     sudo python setup.py install 

    完成后,您现在可以键入或添加指向/opt/trelby/bin/trelby的快捷方式来启动Trelby

当我尝试安装wxgtk3.0时,我设法让2.2工作,我收到了以下对话框:

 The following packages have unmet dependencies: trelby : Depends: python-wxgtk2.8 but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution). 

我按照建议尝试了apt-get -f installapt-get -f install了2.8软件包。 然后我重新安装了2.2 deb,一切都开始工作了。

我设法让Trelby今天在Ubuntu 16.04 64bit上工作:

  1. 从http://www.trelby.org/download下载tar.gz文件
  2. /trelby目录从tar.gz文件解压缩到/opt (使用sudo)
  3. 手动编辑文件并应用此处描述的更改(使用sudo): https : //github.com/oskusalerma/trelby/commit/50c46f2249ca5b094c5e712a872e1dadbd8dfdfa
    • (当然必须有一个更聪明的方法来做到这一点,但我不知道如何)
  4. 移动(再次使用sudo) /opt/trelby/trelby.desktop文件到/usr/share/applications
  5. 使用apt安装python-wxgtk3.0python-crypto (它们都在存储库中)

在此之后,Trelby可以从Dash发布。

如果有人可以优化这些步骤,那将是非常棒的:-)

试试这个: sudo dpkg -i trelby_2.2_all.deb --force-depends