2012/4/2 Rene Engelhard <r...@debian.org>: > On Mon, Apr 02, 2012 at 07:06:26PM +0300, Teodor MICU wrote: >> I've had this problem on my homestation. I fixed it by setting >> "LANG=C" and run the upgrade again. [..] > > I *think* that this is just by chance. I also get a error with just C > the first time. > > The error itself might be different, but if one fixes the root cause it will > probably fix both (the "cannot determine language" is misleading yes, but > afaict > it means "I, unopkg and the UNO runtime environment don't work")...
Ok, based on previous experience I was brave to upgrade my laptop this morning (~200 packages including libreoffice*). Indeed, it didn't work flawlessly and the culprit is "python-uno". And after this I recall that on the homestation I had to remove the lock file manually and run the upgrade again. So, it's about two things which make it work for me: LANG=C and removal of lock file. Note that I put on hold (via apt_preferences) all *cairo* packages to avoid the ugliness I've got on my homestation after upgrade. Thanks
Preparing to replace libreoffice-writer 1:3.4.6-2 (using .../libreoffice-writer_1%3a3.5.2~rc2-1_amd64.deb) ... Unpacking replacement libreoffice-writer ... Preparing to replace libreoffice-calc 1:3.4.6-2 (using .../libreoffice-calc_1%3a3.5.2~rc2-1_amd64.deb) ... Unpacking replacement libreoffice-calc ... Preparing to replace libreoffice-base 1:3.4.6-2 (using .../libreoffice-base_1%3a3.5.2~rc2-1_amd64.deb) ... Unpacking replacement libreoffice-base ... Preparing to replace libreoffice-base-core 1:3.4.6-2 (using .../libreoffice-base-core_1%3a3.5.2~rc2-1_amd64.deb) ... Unpacking replacement libreoffice-base-core ... Preparing to replace libreoffice-java-common 1:3.4.6-2 (using .../libreoffice-java-common_1%3a3.5.2~rc2-1_all.deb) ... Unpacking replacement libreoffice-java-common ... Preparing to replace libreoffice-impress 1:3.4.6-2 (using .../libreoffice-impress_1%3a3.5.2~rc2-1_amd64.deb) ... Unpacking replacement libreoffice-impress ... Preparing to replace libreoffice-draw 1:3.4.6-2 (using .../libreoffice-draw_1%3a3.5.2~rc2-1_amd64.deb) ... Unpacking replacement libreoffice-draw ... Preparing to replace libreoffice-gtk 1:3.4.6-2 (using .../libreoffice-gtk_1%3a3.5.2~rc2-1_amd64.deb) ... Unpacking replacement libreoffice-gtk ... Preparing to replace libreoffice-gnome 1:3.4.6-2 (using .../libreoffice-gnome_1%3a3.5.2~rc2-1_amd64.deb) ... Unpacking replacement libreoffice-gnome ... Preparing to replace python-uno 1:3.4.6-2 (using .../python-uno_1%3a3.5.2~rc2-1_amd64.deb) ... ERROR: Cannot determine language! Exception details: (com.sun.star.uno.RuntimeException) { { Message = "Cannot determine language!", Context = (com.sun.star.uno.XInterface) @0 } } unopkg failed. terminate called after throwing an instance of 'com::sun::star::uno::RuntimeException' /var/lib/dpkg/tmp.ci/preinst: line 11: 10033 Aborted /usr/lib/libreoffice/program/unopkg sync -v --shared "-env:BUNDLED_EXTENSIONS_USER=file:///usr/lib/libreoffice/share/prereg/bundled" "-env:UserInstallation=file://$INSTDIR" "-env:UNO_JAVA_JFW_INSTALL_DATA=file://$d/share/config/javasettingsunopkginstall.xml" "-env:JFW_PLUGIN_DO_NOT_CHECK_ACCESSIBILITY=1" dpkg: error processing /var/cache/apt/archives/python-uno_1%3a3.5.2~rc2-1_amd64.deb (--unpack): subprocess new pre-installation script returned error exit status 134 configured to not write apport reports Preparing to replace libreoffice-math 1:3.4.6-2 (using .../libreoffice-math_1%3a3.5.2~rc2-1_amd64.deb) ... Unpacking replacement libreoffice-math ... Preparing to replace libreoffice-style-galaxy 1:3.4.6-2 (using .../libreoffice-style-galaxy_1%3a3.5.2~rc2-1_all.deb) ... Unpacking replacement libreoffice-style-galaxy ... Preparing to replace libreoffice-style-tango 1:3.4.6-2 (using .../libreoffice-style-tango_1%3a3.5.2~rc2-1_all.deb) ... Unpacking replacement libreoffice-style-tango ... Preparing to replace libreoffice-core 1:3.4.6-2 (using .../libreoffice-core_1%3a3.5.2~rc2-1_amd64.deb) ... rmdir: failed to remove `/var/lib/libreoffice/basis3.4': Directory not empty Unpacking replacement libreoffice-core ... Preparing to replace libreoffice-common 1:3.4.6-2 (using .../libreoffice-common_1%3a3.5.2~rc2-1_all.deb) ... Unpacking replacement libreoffice-common ... Preparing to replace libreoffice 1:3.4.6-2 (using .../libreoffice_1%3a3.5.2~rc2-1_amd64.deb) ... Unpacking replacement libreoffice ... Preparing to replace libreoffice-filter-binfilter 1:3.4.6-2 (using .../libreoffice-filter-binfilter_1%3a3.5.2~rc2-1_amd64.deb) ... Unpacking replacement libreoffice-filter-binfilter ... Preparing to replace libreoffice-report-builder-bin 1:3.4.6-2 (using .../libreoffice-report-builder-bin_1%3a3.5.2~rc2-1_amd64.deb) ... Unpacking replacement libreoffice-report-builder-bin ... Preparing to replace libreoffice-filter-mobiledev 1:3.4.6-2 (using .../libreoffice-filter-mobiledev_1%3a3.5.2~rc2-1_all.deb) ... Unpacking replacement libreoffice-filter-mobiledev ... Preparing to replace libreoffice-emailmerge 1:3.4.6-2 (using .../libreoffice-emailmerge_1%3a3.5.2~rc2-1_all.deb) ... Unpacking replacement libreoffice-emailmerge ... Preparing to replace libreoffice-l10n-de 1:3.4.6-2 (using .../libreoffice-l10n-de_1%3a3.5.2~rc2-1_all.deb) ... Unpacking replacement libreoffice-l10n-de ... Preparing to replace libreoffice-help-de 1:3.4.6-2 (using .../libreoffice-help-de_1%3a3.5.2~rc2-1_all.deb) ... Unpacking replacement libreoffice-help-de ... Preparing to replace libreoffice-help-en-us 1:3.4.6-2 (using .../libreoffice-help-en-us_1%3a3.5.2~rc2-1_all.deb) ... Unpacking replacement libreoffice-help-en-us ... Preparing to replace libreoffice-l10n-ro 1:3.4.6-2 (using .../libreoffice-l10n-ro_1%3a3.5.2~rc2-1_all.deb) ... Unpacking replacement libreoffice-l10n-ro ... Preparing to replace libtotem-plparser17 2.32.6-3 (using .../libtotem-plparser17_3.4.0-1_amd64.deb) ... Unpacking replacement libtotem-plparser17 ... Processing triggers for man-db ... Processing triggers for mime-support ... Processing triggers for desktop-file-utils ... Processing triggers for gnome-menus ... Processing triggers for menu ... Processing triggers for hicolor-icon-theme ... Processing triggers for gnome-icon-theme ... Processing triggers for shared-mime-info ... Processing triggers for gconf2 ... Processing triggers for install-info ... Errors were encountered while processing: /var/cache/apt/archives/python-uno_1%3a3.5.2~rc2-1_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1) root@r2:~# apt-get dist-upgrade Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt-get -f install' to correct these. The following packages have unmet dependencies: python-uno : Depends: libreoffice-core (= 1:3.4.6-2) but 1:3.5.2~rc2-1 is installed E: Unmet dependencies. Try using -f. root@r2:~# apt-cache policy python-uno python-uno: Installed: 1:3.4.6-2 Candidate: 1:3.5.2~rc2-1 Version table: 1:3.5.2~rc2-1 0 500 http://ftp.ro.debian.org/debian/ unstable/main amd64 Packages 500 http://ftp.de.debian.org/debian/ unstable/main amd64 Packages *** 1:3.4.6-2 0 500 http://ftp.ro.debian.org/debian/ wheezy/main amd64 Packages 100 /var/lib/dpkg/status root@r2:~# apt-get -f install Reading package lists... Done Building dependency tree Reading state information... Done Correcting dependencies... Done The following extra packages will be installed: python-uno The following packages will be upgraded: python-uno 1 upgraded, 0 newly installed, 0 to remove and 1 not upgraded. 129 not fully installed or removed. Need to get 0 B/309 kB of archives. After this operation, 189 kB disk space will be freed. Do you want to continue [Y/n]? Retrieving bug reports... Done Parsing Found/Fixed information... Done Reading changelogs... Done (Reading database ... 341695 files and directories currently installed.) Preparing to replace python-uno 1:3.4.6-2 (using .../python-uno_1%3a3.5.2~rc2-1_amd64.deb) ... ERROR: unopkg cannot be started. The lock file indicates it as already running. If this does not apply, delete the lock file at: /var/lib/libreoffice/share/prereg/.lock dpkg: error processing /var/cache/apt/archives/python-uno_1%3a3.5.2~rc2-1_amd64.deb (--unpack): subprocess new pre-installation script returned error exit status 1 configured to not write apport reports Errors were encountered while processing: /var/cache/apt/archives/python-uno_1%3a3.5.2~rc2-1_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1) root@r2:~# rm -vf /var/lib/libreoffice/share/prereg/.lock removed `/var/lib/libreoffice/share/prereg/.lock' root@r2:~# apt-get -f install Reading package lists... Done Building dependency tree Reading state information... Done Correcting dependencies... Done The following extra packages will be installed: python-uno The following packages will be upgraded: python-uno 1 upgraded, 0 newly installed, 0 to remove and 1 not upgraded. 129 not fully installed or removed. Need to get 0 B/309 kB of archives. After this operation, 189 kB disk space will be freed. Do you want to continue [Y/n]? Retrieving bug reports... Done Parsing Found/Fixed information... Done Reading changelogs... Done (Reading database ... 341695 files and directories currently installed.) Preparing to replace python-uno 1:3.4.6-2 (using .../python-uno_1%3a3.5.2~rc2-1_amd64.deb) ... Synchronizing repository for bundled extensions Disabling: script-provider-for-python Disabling: pythonscript.py unopkg done. Unpacking replacement python-uno ... Setting up gvfs-common (1.12.0-1) ... Setting up libglib2.0-0:amd64 (2.32.0-3) ... [..] Setting up libreoffice-l10n-de (1:3.5.2~rc2-1) ... Setting up libreoffice-l10n-ro (1:3.5.2~rc2-1) ... Setting up libreoffice-style-galaxy (1:3.5.2~rc2-1) ... Setting up libreoffice-style-tango (1:3.5.2~rc2-1) ... Setting up libreoffice-common (1:3.5.2~rc2-1) ... Installing new version of config file /etc/bash_completion.d/libreoffice.sh ... Setting up libreoffice-core (1:3.5.2~rc2-1) ... Setting up python-uno (1:3.5.2~rc2-1) ... Setting up libreoffice-base-core (1:3.5.2~rc2-1) ... Setting up libreoffice-writer (1:3.5.2~rc2-1) ... Setting up libreoffice-calc (1:3.5.2~rc2-1) ... Setting up libreoffice-draw (1:3.5.2~rc2-1) ... Setting up libreoffice-impress (1:3.5.2~rc2-1) ... Setting up libreoffice-math (1:3.5.2~rc2-1) ... Setting up libreoffice-java-common (1:3.5.2~rc2-1) ... Setting up libreoffice-base (1:3.5.2~rc2-1) ... Setting up libreoffice-report-builder-bin (1:3.5.2~rc2-1) ... Setting up libreoffice-filter-mobiledev (1:3.5.2~rc2-1) ... Setting up libreoffice (1:3.5.2~rc2-1) ... Setting up libreoffice-filter-binfilter (1:3.5.2~rc2-1) ... Setting up libreoffice-gtk (1:3.5.2~rc2-1) ... Setting up libreoffice-gnome (1:3.5.2~rc2-1) ... Setting up libreoffice-help-de (1:3.5.2~rc2-1) ... Setting up libreoffice-help-en-us (1:3.5.2~rc2-1) ... Processing triggers for libreoffice-common ... Synchronizing repository for bundled extensions Enabling: Script provider for Python Enabling: components.rdb unopkg done. Setting up libreoffice-emailmerge (1:3.5.2~rc2-1) ... Processing triggers for menu ...