otrs 给出“子进程 /usr/bin/dpkg 返回错误代码 (1)”

otrs 给出“子进程 /usr/bin/dpkg 返回错误代码 (1)”

我安装了otrs像这样:

sudo apt-get install otrs

最后它给了我下面这个错误。

Setting otrs2 (3.1.7 + dfsg1-5) ...
dbconfig-common: writing config to / etc/dbconfig-common/otrs2.conf
Replacing config file / etc / OTRS / database.pm with new version
Already perl module enabled
Already rewrite module enabled
  * Reloading web server config apache2: Could not reliably determining the server's fully qualified domain name, using 127.0.1.1 for ServerName
                                                                                                                                            [OK]
DBI connect ('database = OTRS, host = localhost, port = 3306;', 'OTRS', ...) failed: Access denied for user'' @ 'localhost' to database 'OTRS' at / usr / share / OTRS / Kernel / System / DB.pm line 256
ERROR: OTRS-otrs.RebuildConfig.pl-10 Perl: 5.14.2 OS: linux Time: Wed March 13 2013 12:01:17

  Message: Access denied for user'' @ 'localhost' to database 'OTRS'

  Traceback (7612):
    Module: Kernel :: System :: DB :: new (v1.144.2.1) Line: 227
    Module:. / Bin / otrs.RebuildConfig.pl (v1.14) Line: 55

Got no DBObject! at / usr / share / OTRS / Kernel / System / SysConfig.pm line 103.
dpkg: error processing otrs2 (- configure):
  subprocess installed post-installation script returned error exit status 255 back
Errors were encountered while processing:
  otrs2
E: Sub-process / usr / bin / dpkg returned an error code (1)

我有一个荷兰语的 Ubuntu,上面的错误我将其复制/粘贴到谷歌翻译中

答案1

这是 Ubuntu 软件包的问题。虽然 OTRS Debian 软件包维护得很好,但 Ubuntu 软件包(源自 Debian 软件包)却有问题,而且似乎没人真正关心它。在此处查看所有错误报告:

https://bugs.launchpad.net/ubuntu/+source/otrs2

因此,如果您想从包管理器安装 OTRS,请选择 Debian,或者如果您想在 Ubuntu 上安装 OTRS,请查看以下步骤:

http://wiki.otterhub.org/index.php?title=Installation_on_Ubuntu_Lucid_Lynx_(10.4)

(是的,我知道它是为 Ubuntu 10.04 和 OTRS 3.0.x 编写的,但过程实际上非常相同)

相关内容