On Trusty the dpkg error message "trying to overwrite '<file>' , which is also in package <pkg>" is not multi-arch compliant because it lacks the architecture of foreign packages.
Current/faulty output:
Preparing to unpack deb-file-conflict-i386-2_1_i386.deb ...
Unpacking deb-file-conflict-i386-2 (1) ...
dpkg: error processing archive deb-file-conflict-i386-2_1_i386.deb (--install):
trying to overwrite '/var/lib/conflicting-file/conflicting-file', which is also in package deb-file-conflict-i386-1 1
Errors were encountered while processing:
deb-file-conflict-i386-2_1_i386.deb
The correct output would be:
Preparing to unpack deb-file-conflict-i386-2_1_i386.deb ...
Unpacking deb-file-conflict-i386-2:i386 (1) ...
dpkg: error processing archive deb-file-conflict-i386-2_1_i386.deb (--install):
trying to overwrite '/var/lib/conflicting-file/conflicting-file', which is also in package deb-file-conflict-i386-1:i386 1
Errors were encountered while processing:
deb-file-conflict-i386-2_1_i386.deb
This faulty error message makes it harder to fix conflicting file issues because the error message can be misleading.
Furthermore this is a regression as the error message in Precise shows the architecture.
Hi everyone,
On Trusty the dpkg error message "trying to overwrite '<file>' , which is also in package <pkg>" is not multi-arch compliant because it lacks the architecture of foreign packages.
Current/faulty output: conflict- i386-2_ 1_i386. deb ... conflict- i386-2 (1) ... conflict- i386-2_ 1_i386. deb (--install): conflicting- file/conflictin g-file' , which is also in package deb-file- conflict- i386-1 1 conflict- i386-2_ 1_i386. deb
Preparing to unpack deb-file-
Unpacking deb-file-
dpkg: error processing archive deb-file-
trying to overwrite '/var/lib/
Errors were encountered while processing:
deb-file-
The correct output would be: conflict- i386-2_ 1_i386. deb ... conflict- i386-2: i386 (1) ... conflict- i386-2_ 1_i386. deb (--install): conflicting- file/conflictin g-file' , which is also in package deb-file- conflict- i386-1: i386 1 conflict- i386-2_ 1_i386. deb
Preparing to unpack deb-file-
Unpacking deb-file-
dpkg: error processing archive deb-file-
trying to overwrite '/var/lib/
Errors were encountered while processing:
deb-file-
This faulty error message makes it harder to fix conflicting file issues because the error message can be misleading.
Furthermore this is a regression as the error message in Precise shows the architecture.
Best,
Michael