[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#206936: upgrading openoffice.org : "ln: `ooo/dicts': File exists" (solved)



Hi,

i386 box, sid (daily upgrade)

# apt-get upgrade
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages have been kept back
  harden-localflaws mc
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
3 not fully installed or removed.
Need to get 0B of archives.
After unpacking 0B of additional disk space will be used.
Do you want to continue? [Y/n]
Reading changelogs... Done
Setting up openoffice.org (1.0.99+1.1rc3-1) ...
Updating OpenOffice.org's dictionary list... done.
Creating symlink...
ln: `ooo/dicts': File exists
run-parts: /usr/share/openoffice.org-debian-files/hooks/postinst.d/ooo_link exited with return code 1
dpkg: error processing openoffice.org (--configure):
 subprocess post-installation script returned error exit status 1
<cut>
E: Sub-process /usr/bin/dpkg returned an error code (1)

which gives :
$ dpkg -l | grep -i openoffice | grep -v ii
iF openoffice.org 1.0.99+1.1rc3-1 high-quality office productivity suite iU openoffice.org-debian-files 1.0.99+1.1rc3-2 Debian specific parts of OpenOffice.org iU openoffice.org-help-fr 1.1+20030814-1 OpenOffice.org office suite help (French)

and
# ll -AR /usr/lib/openoffice/share/dict/
/usr/lib/openoffice/share/dict/:
total 4
 590360    4 drwxr-xr-x    2 root     root         4096 Sep  5 21:30 ooo

/usr/lib/openoffice/share/dict/ooo:
total 0
586418 0 lrwxrwxrwx 1 root root 24 Aug 20 08:59 dicts -> /usr/share/myspell/dicts
(duno where this link come from).

# ll -A /usr/share/myspell/dicts/
total 3948
1095506 0 lrwxrwxrwx 1 root root 30 Sep 5 21:30 dictionary.lst -> /etc/openoffice/dictionary.lst 1091910 44 -rw-r--r-- 1 root root 42600 Aug 13 12:32 hyph_de_DE.dic 1091936 84 -rw-r--r-- 1 root root 79272 Aug 13 12:32 hyph_en_GB.dic 1091958 36 -rw-r--r-- 1 root root 36467 Aug 13 12:32 hyph_en_US.dic 1095504 3272 -rw-r--r-- 1 root root 3344716 Aug 24 02:10 th_en_US.dat 1095505 512 -rw-r--r-- 1 root root 517545 Aug 24 02:10 th_en_US.idx


I've had this pb for the past 10 days and I just took the time to look at it. From my reading of /usr/share/openoffice.org-debian-files/hooks/postinst.d/ooo_link
the script is pretty weird :

In the "upgrade" case, all the files from /usr/lib/openoffice/share/dict/ooo are moved to /usr/share/myspell/dicts
but /usr/lib/openoffice/share/dict/ooo is not removed.

In the "configure" case :
You're trying to ln /usr/lib/openoffice/share/dict/ooo which still exists.
There is also this weirdo of checking
"if [ ! -L /usr/lib/openoffice/share/dict/ooo ]" before
"if [ ! -d /usr/lib/openoffice/share/dict ]"


Maybe not enough sleep for so.

For the sack of curiosity, in
 "ls -l1 ooo/* > $TMP 2> /dev/null || /bin/true
 # if yes, move them...
 if [ -s $TMP ]; then"
what is the reason of "|| /bin/true" ? I couldn't see any use of it since the check is on $TMP size ?

Removing /usr/lib/openoffice/share/dict/ooo and upgrading solved the pb.

@+,

	Fab




Reply to: