Bug 54202 - Error while installing dictionaries with command dpkg -i *
Summary: Error while installing dictionaries with command dpkg -i *
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
3.6.1.2 release
Hardware: Other Linux (All)
: high critical
Assignee: Not Assigned
URL:
Whiteboard: BSA
Keywords:
: 54419 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-08-29 11:48 UTC by Herbert Post
Modified: 2014-02-11 22:24 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Herbert Post 2012-08-29 11:48:42 UTC
Problem description: 
Unpacking replacement libreoffice3.6-dict-en ...




ERROR: unknown sub-command sync!
       Use unopkg --help (short -h) to print all options.
ERROR: Registration of extensions failed!
dpkg: warning: subprocess old post-removal script returned error exit status 1
dpkg - trying script from the new package instead ...
dpkg: error processing libreoffice3.6-dict-en_3.6.1.2-2_amd64.deb (--install):
 there is no script in the new version of the package - giving up




ERROR: unknown sub-command sync!
       Use unopkg --help (short -h) to print all options.
ERROR: Registration of extensions failed!
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 1
Preparing to replace libreoffice3.6-dict-es 3.6.0.4-104 (using libreoffice3.6-dict-es_3.6.1.2-2_amd64.deb) ...
Unpacking replacement libreoffice3.6-dict-es ...




ERROR: unknown sub-command sync!
       Use unopkg --help (short -h) to print all options.
ERROR: Registration of extensions failed!
dpkg: warning: subprocess old post-removal script returned error exit status 1
dpkg - trying script from the new package instead ...
dpkg: error processing libreoffice3.6-dict-es_3.6.1.2-2_amd64.deb (--install):
 there is no script in the new version of the package - giving up




ERROR: unknown sub-command sync!
       Use unopkg --help (short -h) to print all options.
ERROR: Registration of extensions failed!
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 1
Preparing to replace libreoffice3.6-dict-fr 3.6.0.4-104 (using libreoffice3.6-dict-fr_3.6.1.2-2_amd64.deb) ...
Unpacking replacement libreoffice3.6-dict-fr ...




ERROR: unknown sub-command sync!
       Use unopkg --help (short -h) to print all options.
ERROR: Registration of extensions failed!
dpkg: warning: subprocess old post-removal script returned error exit status 1
dpkg - trying script from the new package instead ...
dpkg: error processing libreoffice3.6-dict-fr_3.6.1.2-2_amd64.deb (--install):
 there is no script in the new version of the package - giving up




ERROR: unknown sub-command sync!
       Use unopkg --help (short -h) to print all options.
ERROR: Registration of extensions failed!
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 1


Steps to reproduce:
1. Run dpkg -i on the main installer Linux Deb (x64) dutch
2. ....
3. ....

Current behavior:
Applications are running just fine

Expected behavior:
No error messages during installation.

Platform (if different from the browser): 
Ubuntu 12.04 (up-to-date) x64
              
Browser: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.81 Safari/537.1
Comment 1 maurom1982 2012-08-30 11:46:54 UTC
I've found the same when trying to install LO 3.6.1.2 on Debian Squeeze.

Platform (if different from the browser): 
Debian GNU/Linux 6.0.5 (squeeze)

Browser: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.19 (KHTML, like Gecko)
Ubuntu/10.04 Chromium/18.0.1025.168 Chrome/18.0.1025.168 Safari/535.19
Comment 2 Adam Maćkowiak 2012-08-30 18:33:40 UTC
I have same problem on Kubuntu 12.04. I tried to install Polish dictionary from deb package.
Comment 3 NoOp 2012-08-30 19:19:46 UTC
It's not just the Dutch dictionary, it's also in the English US package as well on both 32bit and 64bit. Install errors:

http://pastebin.com/3aKwSYP1

And afterwards breaks the system(s) (32bit and 64bit):

$ sudo apt-get autoremove
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  libreoffice3.6-dict-en libreoffice3.6-dict-es libreoffice3.6-dict-fr
0 upgraded, 0 newly installed, 3 to remove and 0 not upgraded.
3 not fully installed or removed.
After this operation, 37.8 MB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 489328 files and directories currently installed.)
Removing libreoffice3.6-dict-en ...

ERROR: unknown sub-command sync!
       Use unopkg --help (short -h) to print all options.
ERROR: Registration of extensions failed!
dpkg: error processing libreoffice3.6-dict-en (--remove):
 subprocess installed post-removal script returned error exit status 1
Removing libreoffice3.6-dict-es ...

ERROR: unknown sub-command sync!
       Use unopkg --help (short -h) to print all options.
ERROR: Registration of extensions failed!
dpkg: error processing libreoffice3.6-dict-es (--remove):
 subprocess installed post-removal script returned error exit status 1
No apport report written because MaxReports is reached already
Removing libreoffice3.6-dict-fr ...

ERROR: unknown sub-command sync!
       Use unopkg --help (short -h) to print all options.
ERROR: Registration of extensions failed!
dpkg: error processing libreoffice3.6-dict-fr (--remove):
 subprocess installed post-removal script returned error exit status 1
No apport report written because MaxReports is reached already
Errors were encountered while processing:
 libreoffice3.6-dict-en
 libreoffice3.6-dict-es
 libreoffice3.6-dict-fr
E: Sub-process /usr/bin/dpkg returned an error code (1)

This bug appears to be a duplicate & regression of:
https://bugs.freedesktop.org/show_bug.cgi?id=41237
[ Installation of dictionaries failed with ""/singletons/com.sun.star.deployment.ExtensionManager": loading component library failed""]

Using the method mentioned in that bug report and Bug 41290 - dictionaries do not install in daily builds as of 28/9/2011:
<http://www.piprime.fr/1480/manually-remove-broken-package-debian-ubuntu/>
I was able to clean the system:

$ sudo mv /var/lib/dpkg/info/libreoffice3.6-dict-en.* /tmp/
$ sudo dpkg --remove --force-remove-reinstreq libreoffice3.6-dict-en
$ sudo mv /var/lib/dpkg/info/libreoffice3.6-dict-es.* /tmp/
$ sudo dpkg --remove --force-remove-reinstreq libreoffice3.6-dict-es
$ sudo mv /var/lib/dpkg/info/libreoffice3.6-dict-fr.* /tmp/
$ sudo dpkg --remove --force-remove-reinstreq libreoffice3.6-dict-fr

$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Not sure whether to reopen 41237, or if this bug's title should be change to inclued other dictionaries as well.
Comment 4 NoOp 2012-08-30 19:20:46 UTC
Changed importance to high as the bug affects the installation of other packages via dpkg and apt-get.
Comment 5 NoOp 2012-08-30 20:01:00 UTC
Maybe this is the problem:

$ debdiff libreoffice3.6-dict-en_3.6.0.4-104_i386.deb libreoffice3.6-dict-en_3.6.1.2-2_i386.deb
[The following lists of changes regard files as different if they have
different names, permissions or owners.]

Files in first .deb but not in second
-------------------------------------
-rwxr-xr-x  root/root   DEBIAN/postinst
-rwxr-xr-x  root/root   DEBIAN/postrm

Control files: lines which differ (wdiff format)
------------------------------------------------
Installed-Size: [-26208-] {+26224+}
Version: [-3.6.0.4-104-] {+3.6.1.2-2+}

Same for -es and -fr (missing postinst & postrm files) - and same on 64bit .deb files.
Comment 6 NoOp 2012-09-04 00:54:36 UTC
No issues with reinstalling 3.6.04 over 3.6.1:
Setting up libreoffice3.6-dict-en (3.6.0.4-104) ...
SUCCESS: unopkg returns successful!
Setting up libreoffice3.6-dict-es (3.6.0.4-104) ...
SUCCESS: unopkg returns successful!
Setting up libreoffice3.6-dict-fr (3.6.0.4-104) ...
SUCCESS: unopkg returns successful!

Breaks dpkg with 3.6.1.1:
Processing triggers for menu ...
Errors were encountered while processing:
 libreoffice3.6-dict-en_3.6.1.1-1_i386.deb
 libreoffice3.6-dict-es_3.6.1.1-1_i386.deb
 libreoffice3.6-dict-fr_3.6.1.1-1_i386.deb

And as with 3.6.1.2:
$ debdiff libreoffice3.6-dict-en_3.6.0.4-104_i386.deb libreoffice3.6-dict-en_3.6.1.1-1_i386.deb
[The following lists of changes regard files as different if they have
different names, permissions or owners.]

Files in first .deb but not in second
-------------------------------------
-rwxr-xr-x  root/root   DEBIAN/postinst
-rwxr-xr-x  root/root   DEBIAN/postrm

Control files: lines which differ (wdiff format)
------------------------------------------------
Installed-Size: [-26208-] {+26220+}
Version: [-3.6.0.4-104-] {+3.6.1.1-1+}

Nor did I have any issues with installing 3.5.5rc3 over 3.5.6.2.
Comment 7 Maximiliano Castañón 2012-09-15 23:48:23 UTC
(In reply to comment #3)
> It's not just the Dutch dictionary, it's also in the English US package as well
> on both 32bit and 64bit. Install errors:
> 
> http://pastebin.com/3aKwSYP1
> 
> And afterwards breaks the system(s) (32bit and 64bit):
> 
> $ sudo apt-get autoremove
> Reading package lists... Done
> Building dependency tree       
> Reading state information... Done
> The following packages will be REMOVED:
>   libreoffice3.6-dict-en libreoffice3.6-dict-es libreoffice3.6-dict-fr
> 0 upgraded, 0 newly installed, 3 to remove and 0 not upgraded.
> 3 not fully installed or removed.
> After this operation, 37.8 MB disk space will be freed.
> Do you want to continue [Y/n]? y
> (Reading database ... 489328 files and directories currently installed.)
> Removing libreoffice3.6-dict-en ...
> 
> ERROR: unknown sub-command sync!
>        Use unopkg --help (short -h) to print all options.
> ERROR: Registration of extensions failed!
> dpkg: error processing libreoffice3.6-dict-en (--remove):
>  subprocess installed post-removal script returned error exit status 1
> Removing libreoffice3.6-dict-es ...
> 
> ERROR: unknown sub-command sync!
>        Use unopkg --help (short -h) to print all options.
> ERROR: Registration of extensions failed!
> dpkg: error processing libreoffice3.6-dict-es (--remove):
>  subprocess installed post-removal script returned error exit status 1
> No apport report written because MaxReports is reached already
> Removing libreoffice3.6-dict-fr ...
> 
> ERROR: unknown sub-command sync!
>        Use unopkg --help (short -h) to print all options.
> ERROR: Registration of extensions failed!
> dpkg: error processing libreoffice3.6-dict-fr (--remove):
>  subprocess installed post-removal script returned error exit status 1
> No apport report written because MaxReports is reached already
> Errors were encountered while processing:
>  libreoffice3.6-dict-en
>  libreoffice3.6-dict-es
>  libreoffice3.6-dict-fr
> E: Sub-process /usr/bin/dpkg returned an error code (1)
> 
> This bug appears to be a duplicate & regression of:
> https://bugs.freedesktop.org/show_bug.cgi?id=41237
> [ Installation of dictionaries failed with
> ""/singletons/com.sun.star.deployment.ExtensionManager": loading component
> library failed""]
> 
> Using the method mentioned in that bug report and Bug 41290 - dictionaries do
> not install in daily builds as of 28/9/2011:
> <http://www.piprime.fr/1480/manually-remove-broken-package-debian-ubuntu/>
> I was able to clean the system:
> 
> $ sudo mv /var/lib/dpkg/info/libreoffice3.6-dict-en.* /tmp/
> $ sudo dpkg --remove --force-remove-reinstreq libreoffice3.6-dict-en
> $ sudo mv /var/lib/dpkg/info/libreoffice3.6-dict-es.* /tmp/
> $ sudo dpkg --remove --force-remove-reinstreq libreoffice3.6-dict-es
> $ sudo mv /var/lib/dpkg/info/libreoffice3.6-dict-fr.* /tmp/
> $ sudo dpkg --remove --force-remove-reinstreq libreoffice3.6-dict-fr
> 
> $ sudo apt-get -f install
> Reading package lists... Done
> Building dependency tree       
> Reading state information... Done
> 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
> 
> Not sure whether to reopen 41237, or if this bug's title should be change to
> inclued other dictionaries as well.

That happen with EN, ES, FR, AN... something is wrong with all of them or just english...
Comment 8 Urmas 2012-09-16 05:01:24 UTC
To a loonix bin.
Comment 9 Daniel Espinosa 2012-11-07 22:20:25 UTC
I have the same problem with dict- in en, es, fr and an.

I've try to remove from my Ubuntu 12.04 but I can't, upgrades also fails.
Comment 10 Daniel Espinosa 2012-11-27 23:37:08 UTC
Check at:
http://forum.mepiscommunity.org/viewtopic.php?t=33488&p=305138

To get your DEB data base back and remove completely dict packages.
Comment 11 bfoman (inactive) 2013-03-18 14:02:57 UTC
*** Bug 54419 has been marked as a duplicate of this bug. ***
Comment 12 NoOp 2013-10-05 17:20:18 UTC
Recommend that this bug be closed. I can no longer reproduce and LO 3.x reached EOL in August 2013:
<https://wiki.documentfoundation.org/ReleasePlan>
Comment 13 retired 2014-02-11 22:24:54 UTC
Worksforme as of comment 12.