[xml/sgml-pkgs] Bug#482140: Bug#482140: Bug#482140: must be /etc/sgml

Daniel Leidert daniel.leidert at wgdd.de
Sat May 31 13:07:51 UTC 2008


Am Freitag, den 30.05.2008, 22:19 -0400 schrieb Andres Salomon:
> On Sat, 31 May 2008 02:10:22 +0200
> Daniel Leidert <daniel.leidert at wgdd.de> wrote:

[·.]
> Here's the output from a dist-upgrade.  I added multiple DEBUG lines; one
> after the line you suggested, and an additional two after each "already
> registered" error line.
> 
> 
> 
> 
> Reading package lists...
> Building dependency tree...
> 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
> 26 not fully installed or removed.
> After this operation, 0B of additional disk space will be used.
> Setting up docbook-xml (4.5-5) ...
> update-xmlcatalog: reading catalog data /var/lib/xml-core/docbook-xml
> update-xmlcatalog: notice: entity already registered
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> DEBUG(notice already registered): entry=catalog="file:///usr/share/xml/docbook/schema/dtd/catalog.xml", key=delegateSystem systemIdStartString="http://www.oasis-open.org/docbook/xml/4.1/docbookx.dtd", catalog=/etc/xml/docbook-xml.xml
> update-xmlcatalog: removing backup /etc/xml/docbook-xml.xml.old
> update-xmlcatalog: moving catalog /etc/xml/docbook-xml.xml to backup /etc/xml/docbook-xml.xml.old
> update-xmlcatalog: writing catalog data /var/lib/xml-core/docbook-xml
> update-xmlcatalog: writing catalog /etc/xml/docbook-xml.xml
> update-xmlcatalog: reading catalog data /var/lib/xml-core/docbook-xml
> update-xmlcatalog: notice: entity already registered
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> DEBUG(notice already registered): entry=catalog="file:///usr/share/xml/docbook/schema/dtd/catalog.xml", key=delegateSystem systemIdStartString="http://docbook.org/xml/4.1/docbookx.dtd", catalog=/etc/xml/docbook-xml.xml
> update-xmlcatalog: removing backup /etc/xml/docbook-xml.xml.old
> update-xmlcatalog: moving catalog /etc/xml/docbook-xml.xml to backup /etc/xml/docbook-xml.xml.old
> update-xmlcatalog: writing catalog data /var/lib/xml-core/docbook-xml
> update-xmlcatalog: writing catalog /etc/xml/docbook-xml.xml
> update-xmlcatalog: reading catalog data /var/lib/xml-core/docbook-xml
> update-xmlcatalog: error: entity already registered
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> DEBUG(error already registered): entry=catalog="file:///usr/share/xml/docbook/schema/dtd/catalog.xml", key=delegatePublic publicIdStartString="-//OASIS//DTD DocBook XML V4.1//EN", catalog=/etc/xml/docbook-xml.xml
> dpkg: error processing docbook-xml (--configure):
>  subprocess post-installation script returned error exit status 1

Thanks for this information. Now this result is some kind of surprising.
The prerm script of the docbook-xml Etch package should remove those
entries. Indeed it says:

> update-xmlcatalog --del --type system --id "http://www.oasis-open.org/docbook/xml/4.1" --package docbook-xml || true
> update-xmlcatalog --del --type system --id "http://docbook.org/xml/4.1" --package docbook-xml || true
> update-xmlcatalog --del --type public --id "-//OASIS//DTD DocBook XML V4.1//EN" --package docbook-xml || true

Now all I can imagine is, that the removal fails. But in this case, the
script will not error out, because of the '|| true' expression. So if
you have the time, you could do me a favour and edit the prerm script of
the Etch package of docbook-xml and remove the '|| true' expressions and
run the script or try to upgrade the packages. Alternatively you may
also do this for the package installed and simply try to remove/purge
it. Maybe this will throw some error (if I'm right with my guess) and
maybe there is just a problem with Perl 5.10 and update-xmlcatalog
trying to remove the entities.

Unfortunately I'm not able to reproduce the problem on my i386 system (I
even checked one of my productive systems). They all run an upgrade
without any problems. So I can just ask you to edit the files and send
me the results. I'm really sorry.

Regards, Daniel






More information about the debian-xml-sgml-pkgs mailing list