Comment 5 for bug 1118153

Revision history for this message
IRIE Shinsuke (irie) wrote :

Please don't move files (libsent-config and libjulius-dev) without setting Breaks and Replaces in debian/control!!!!

Downgrading from 4.2.2-0ubuntu2 to 4.2.2-0ubuntu1 fails as follows:

$ sudo apt-get install julius=4.2.2-0ubuntu1 libjulius-dev=4.2.2-0ubuntu1
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
  libjcode-pm-perl
Use 'apt-get autoremove' to remove it.
Suggested packages:
  julius-voxforge
The following packages will be DOWNGRADED:
  julius libjulius-dev
0 upgraded, 0 newly installed, 2 downgraded, 0 to remove and 0 not upgraded.
Need to get 0 B/1,552 kB of archives.
After this operation, 60.4 kB disk space will be freed.
Do you want to continue [Y/n]?
dpkg: warning: downgrading julius from 4.2.2-0ubuntu2 to 4.2.2-0ubuntu1
(Reading database ... 477242 files and directories currently installed.)
Preparing to replace julius 4.2.2-0ubuntu2 (using .../julius_4.2.2-0ubuntu1_amd64.deb) ...
Unpacking replacement julius ...
dpkg: error processing /var/cache/apt/archives/julius_4.2.2-0ubuntu1_amd64.deb (--unpack):
 trying to overwrite '/usr/bin/libsent-config', which is also in package libjulius-dev 4.2.2-0ubuntu2
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
dpkg: warning: downgrading libjulius-dev from 4.2.2-0ubuntu2 to 4.2.2-0ubuntu1
Preparing to replace libjulius-dev 4.2.2-0ubuntu2 (using .../libjulius-dev_4.2.2-0ubuntu1_amd64.deb) ...
Unpacking replacement libjulius-dev ...
Processing triggers for man-db ...
Errors were encountered while processing:
 /var/cache/apt/archives/julius_4.2.2-0ubuntu1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
$