Comment 6 for bug 1215440

Revision history for this message
pdecat (pdecat) wrote :

The commit that replaces 'test-VirtualBox' with 'OLDHOSTNAME' creates duplicated entries in keybindings and settings tables:

patrick@myhostname:~/workspace$ sudo aptitude install mythtv-database
The following NEW packages will be installed:
mythtv-database
0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/116 kB of archives. After unpacking 366 kB will be used.
Preconfiguring packages ...

Selecting previously unselected package mythtv-database.
(Reading database ... 315279 files and directories currently installed.)
Unpacking mythtv-database (from .../mythtv-database_2%3a0.27.0+fixes.20130918.033883b-0ubuntu0mythbuntu3_all.deb) ...
Setting up mythtv-database (2:0.27.0+fixes.20130918.033883b-0ubuntu0mythbuntu3) ...
ERROR 1062 (23000) at line 1148: Duplicate entry 'TV Frontend-CYCLEAUDIOCHAN-myhostname' for key 'PRIMARY'
dpkg: error processing mythtv-database (--configure):
subprocess installed post-installation script returned error exit status 1
No apport report written because MaxReports is reached already
Errors were encountered while processing:
mythtv-database
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up mythtv-database (2:0.27.0+fixes.20130918.033883b-0ubuntu0mythbuntu3) ...
ERROR 1062 (23000) at line 1148: Duplicate entry 'TV Frontend-CYCLEAUDIOCHAN-myhostname' for key 'PRIMARY'
dpkg: error processing mythtv-database (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
mythtv-database

This affected me and another user: http://ubuntuforums.org/showthread.php?t=2174537&p=12789159

Here is a pull request that fixes them back: https://github.com/MythTV/packaging/pull/34

Regards,
Patrick.