Setting up otrs2 (3.3.5-1) ...
dbconfig-common: writing config to /etc/dbconfig-common/otrs2.conf
Replacing config file /etc/otrs/database.pm with new version
apache2_invoke perl: already enabled
* Restarting web server apache2 [ OK ]
apache2_invoke rewrite: already enabled
* Restarting web server apache2 [ OK ]
apache2_invoke headers: already enabled
* Restarting web server apache2 [ OK ]
apache2_invoke deflate: already enabled
* Restarting web server apache2 [ OK ]
DBI connect('database=otrs;host=127.0.0.1;port=3306;','otrs',...) failed: Access denied for user 'otrs'@'localhost' (using password: YES) at /usr/share/otrs/Kernel/System/DB.pm line 252.
ERROR: OTRS-otrs.RebuildConfig.pl-10 Perl: 5.18.2 OS: linux Time: Tue Jan 27 11:57:50 2015
Message: Access denied for user 'otrs'@'localhost' (using password: YES)
Traceback (5689):
Module: Kernel::System::DB::new (OTRS 3.3.5) Line: 223
Module: ./bin/otrs.RebuildConfig.pl (unknown version) Line: 51
Got no DBObject! at /usr/share/otrs/Kernel/System/SysConfig.pm line 100.
dpkg: error processing package otrs2 (--configure):
subprocess installed post-installation script returned error exit status 255
Setting up rubygems (1.8.25-1bbox3~trusty1) ...
update-alternatives: error: alternative path /usr/bin/gem1.8 doesn't exist
dpkg: error processing package rubygems (--configure):
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
otrs2
rubygems
E: Sub-process /usr/bin/dpkg returned an error code (1)