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

Bug#333308: tex-common: doesn't purge cleanly



ti, 2005-10-11 kello 14:37 +0200, Frank Küster kirjoitti:
> Lars Wirzenius <liw@iki.fi> wrote:
> 
> > Package: tex-common
> > Version: 0.7
> >
> > tex-common doesn't purge quite cleanly. It leaves an ls-R file
> > in /usr/local/share/texmf, and calls ucf in postrm, which leads to ucf
> > not purging cleanly either, when tex-common is installed. I suspect that
> > calling ucf in prerm would work better, but haven't tested.
> 
> Do you have a log of the piuparts run (or whatever tool you used)?  I
> don't understand the problems that calling ucf in postrm causes.  

postrm can't rely on non-essential packages when being called during
purge (policy 7.2). Specifically, dpkg gives no guarantee that any
packages being depended on exist anymore on the system, meaning that ucf
might not be there. This is what happens to happen with piuparts (well,
I tried to make piuparts cause it to happen). I've attached the log, in
case it clarifies things.

(I'd be happy to explain any parts of the log that may be unclear.)

> And calling it in prerm can't be a solution, since prerm is not called at
> all upon purge. 

Yes, I was wrong about that, sorry.

-- 
One does not see anything until one sees its beauty. -- O.W.
Start: 2005-10-10 22:26:38 UTC

Package: tex-common
Priority: optional
Section: tex
Installed-Size: 476
Maintainer: teTeX maintainers <debian-tetex-maint@lists.debian.org>
Architecture: all
Version: 0.7
Replaces: tetex-base (<= 3.0-7)
Depends: ucf, debconf
Conflicts: tetex-bin (<= 3.0-4), tetex-base (<= 3.0-3)
Filename: pool/main/t/tex-common/tex-common_0.7_all.deb
Size: 54664
MD5sum: ac42b00cfbfece8668141a433d830ebe
Description: Common infrastructure for using and building TeX in Debian
 This package contains a number of scripts and common configuration
 files that are needed to install a TeX System, either teTeX or
 TeX-Live.
 .
 It also contains some files used when creating tetex packages from
 the Debian source packages, and which allow a synchronisation between
 the two source packages of teTeX (tetex-base and tetex-bin) and
 tex-live.

Executing: python piuparts.py -d etch -m http://liw.iki.fi/debian -b etch.tar.gz -a tex-common
0m0.0s INFO: ------------------------------------------------------------------------------
0m0.0s INFO: piuparts version 0.11-in-development starting up.
0m0.0s INFO: Command line arguments: piuparts.py -d etch -m http://liw.iki.fi/debian -b etch.tar.gz -a tex-common
0m0.0s DEBUG: Created temporary directory /tmp/tmpTZbIYF
0m0.0s DEBUG: Unpacking etch.tar.gz into /tmp/tmpTZbIYF
0m0.0s DEBUG: Starting command: tar -C '/tmp/tmpTZbIYF' -zxf 'etch.tar.gz'
0m3.7s DEBUG: Command ok: "tar -C '/tmp/tmpTZbIYF' -zxf 'etch.tar.gz'"
0m3.7s DEBUG: Starting command: chroot /tmp/tmpTZbIYF apt-get update
0m3.7s DUMP:   Hit http://liw.iki.fi etch/main Packages
0m3.7s DUMP:   Hit http://liw.iki.fi etch/main Release
0m3.7s DUMP:   Reading Package Lists...
0m3.7s DEBUG: Command ok: 'chroot /tmp/tmpTZbIYF apt-get update'
0m3.7s DEBUG: Starting command: chroot /tmp/tmpTZbIYF apt-get clean
0m3.7s DEBUG: Command ok: 'chroot /tmp/tmpTZbIYF apt-get clean'
0m3.9s DEBUG: Starting command: chroot /tmp/tmpTZbIYF dpkg --get-selections '*'
0m3.9s DUMP:   adduser						install
0m3.9s DUMP:   apt						install
0m3.9s DUMP:   apt-utils					install
0m3.9s DUMP:   aptitude					install
0m3.9s DUMP:   base-config					install
0m3.9s DUMP:   base-files					install
0m3.9s DUMP:   base-passwd					install
0m3.9s DUMP:   bash						install
0m3.9s DUMP:   bsdmainutils					install
0m3.9s DUMP:   bsdutils					install
0m3.9s DUMP:   console-common					install
0m3.9s DUMP:   console-data					install
0m3.9s DUMP:   console-tools					install
0m3.9s DUMP:   coreutils					install
0m3.9s DUMP:   cpio						install
0m3.9s DUMP:   cron						install
0m3.9s DUMP:   debconf						install
0m3.9s DUMP:   debconf-i18n					install
0m3.9s DUMP:   debianutils					install
0m3.9s DUMP:   dhcp-client					install
0m3.9s DUMP:   diff						install
0m3.9s DUMP:   dmidecode					install
0m3.9s DUMP:   dpkg						install
0m3.9s DUMP:   dselect						install
0m3.9s DUMP:   e2fslibs					install
0m3.9s DUMP:   e2fsprogs					install
0m3.9s DUMP:   ed						install
0m3.9s DUMP:   fdutils						install
0m3.9s DUMP:   findutils					install
0m3.9s DUMP:   gcc-3.3-base					install
0m3.9s DUMP:   gcc-4.0-base					install
0m3.9s DUMP:   gettext-base					install
0m3.9s DUMP:   grep						install
0m3.9s DUMP:   groff-base					install
0m3.9s DUMP:   gzip						install
0m3.9s DUMP:   hostname					install
0m3.9s DUMP:   ifupdown					install
0m3.9s DUMP:   info						install
0m3.9s DUMP:   initscripts					install
0m3.9s DUMP:   iptables					install
0m3.9s DUMP:   iputils-ping					install
0m3.9s DUMP:   klogd						install
0m3.9s DUMP:   laptop-detect					install
0m3.9s DUMP:   libacl1						install
0m3.9s DUMP:   libattr1					install
0m3.9s DUMP:   libblkid1					install
0m3.9s DUMP:   libc6						install
0m3.9s DUMP:   libcap1						install
0m3.9s DUMP:   libcomerr2					install
0m3.9s DUMP:   libconsole					install
0m3.9s DUMP:   libdb1-compat					install
0m3.9s DUMP:   libdb3						install
0m3.9s DUMP:   libdb4.2					install
0m3.9s DUMP:   libgcc1						install
0m3.9s DUMP:   libgcrypt11					install
0m3.9s DUMP:   libgdbm3					install
0m3.9s DUMP:   libgnutls11					install
0m3.9s DUMP:   libgpg-error0					install
0m3.9s DUMP:   liblocale-gettext-perl				install
0m3.9s DUMP:   liblockfile1					install
0m3.9s DUMP:   liblzo1						install
0m3.9s DUMP:   libncurses5					install
0m3.9s DUMP:   libncursesw5					install
0m3.9s DUMP:   libnewt0.51					install
0m3.9s DUMP:   libopencdk8					install
0m3.9s DUMP:   libpam-modules					install
0m3.9s DUMP:   libpam-runtime					install
0m3.9s DUMP:   libpam0g					install
0m3.9s DUMP:   libpcap0.7					install
0m3.9s DUMP:   libpcre3					install
0m3.9s DUMP:   libpopt0					install
0m3.9s DUMP:   libselinux1					install
0m3.9s DUMP:   libsepol1					install
0m3.9s DUMP:   libsigc++-1.2-5c102				install
0m3.9s DUMP:   libslang2					install
0m3.9s DUMP:   libss2						install
0m3.9s DUMP:   libssl0.9.7					install
0m3.9s DUMP:   libstdc++5					install
0m3.9s DUMP:   libstdc++6					install
0m3.9s DUMP:   libtasn1-2					install
0m3.9s DUMP:   libtext-charwidth-perl				install
0m3.9s DUMP:   libtext-iconv-perl				install
0m3.9s DUMP:   libtext-wrapi18n-perl				install
0m3.9s DUMP:   libtextwrap1					install
0m3.9s DUMP:   libuuid1					install
0m3.9s DUMP:   libwrap0					install
0m3.9s DUMP:   login						install
0m3.9s DUMP:   logrotate					install
0m3.9s DUMP:   lsb-base					install
0m3.9s DUMP:   makedev						install
0m3.9s DUMP:   man-db						install
0m3.9s DUMP:   manpages					install
0m3.9s DUMP:   mawk						install
0m3.9s DUMP:   modutils					install
0m4.0s DUMP:   mount						install
0m4.0s DUMP:   nano						install
0m4.0s DUMP:   ncurses-base					install
0m4.0s DUMP:   ncurses-bin					install
0m4.0s DUMP:   net-tools					install
0m4.0s DUMP:   netbase						install
0m4.0s DUMP:   netkit-inetd					install
0m4.0s DUMP:   nvi						install
0m4.0s DUMP:   passwd						install
0m4.0s DUMP:   pciutils					install
0m4.0s DUMP:   perl-base					install
0m4.0s DUMP:   ppp						install
0m4.0s DUMP:   pppconfig					install
0m4.0s DUMP:   pppoe						install
0m4.0s DUMP:   pppoeconf					install
0m4.0s DUMP:   procps						install
0m4.0s DUMP:   psmisc						install
0m4.0s DUMP:   sed						install
0m4.0s DUMP:   slang1a-utf8					install
0m4.0s DUMP:   sysklogd					install
0m4.0s DUMP:   sysv-rc						install
0m4.0s DUMP:   sysvinit					install
0m4.0s DUMP:   tar						install
0m4.0s DUMP:   tasksel						install
0m4.0s DUMP:   tcpd						install
0m4.0s DUMP:   telnet						install
0m4.0s DUMP:   util-linux					install
0m4.0s DUMP:   wget						install
0m4.0s DUMP:   whiptail					install
0m4.0s DUMP:   zlib1g						install
0m4.0s DEBUG: Command ok: "chroot /tmp/tmpTZbIYF dpkg --get-selections '*'"
0m4.0s DEBUG: Starting command: chroot /tmp/tmpTZbIYF apt-get -y install 'tex-common'
0m4.0s DUMP:   Reading Package Lists...
0m4.1s DUMP:   Building Dependency Tree...
0m4.1s DUMP:   The following extra packages will be installed:
0m4.1s DUMP:     ucf
0m4.1s DUMP:   Recommended packages:
0m4.1s DUMP:     debconf-utils
0m4.1s DUMP:   The following NEW packages will be installed:
0m4.1s DUMP:     tex-common ucf
0m4.1s DUMP:   0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
0m4.1s DUMP:   Need to get 92.7kB of archives.
0m4.1s DUMP:   After unpacking 680kB of additional disk space will be used.
0m4.1s DUMP:   Get:1 http://liw.iki.fi etch/main ucf 2.002 [38.1kB]
0m4.2s DUMP:   Get:2 http://liw.iki.fi etch/main tex-common 0.7 [54.7kB]
0m4.3s DUMP:   Preconfiguring packages ...
0m4.5s DUMP:   Fetched 92.7kB in 0s (2438kB/s)
0m4.5s DUMP:   Selecting previously deselected package ucf.
0m4.5s DUMP:   (Reading database ... 7577 files and directories currently installed.)
0m4.5s DUMP:   Unpacking ucf (from .../apt/archives/ucf_2.002_all.deb) ...
0m4.5s DUMP:   Moving old data out of the way
0m4.6s DUMP:   Selecting previously deselected package tex-common.
0m4.6s DUMP:   Unpacking tex-common (from .../tex-common_0.7_all.deb) ...
0m4.6s DUMP:   Setting up ucf (2.002) ...
0m4.8s DUMP:   
0m4.8s DUMP:   Setting up tex-common (0.7) ...
0m5.0s DUMP:   
0m5.0s DUMP:   Creating config file /etc/texmf/texmf.d/05TeXMF.cnf with new version
0m5.0s DUMP:   
0m5.0s DUMP:   Creating config file /etc/texmf/texmf.d/15Plain.cnf with new version
0m5.0s DUMP:   
0m5.0s DUMP:   Creating config file /etc/texmf/texmf.d/45TeXinputs.cnf with new version
0m5.1s DUMP:   
0m5.1s DUMP:   Creating config file /etc/texmf/texmf.d/55Fonts.cnf with new version
0m5.1s DUMP:   
0m5.1s DUMP:   Creating config file /etc/texmf/texmf.d/65BibTeX.cnf with new version
0m5.1s DUMP:   
0m5.1s DUMP:   Creating config file /etc/texmf/texmf.d/75DviPS.cnf with new version
0m5.2s DUMP:   
0m5.2s DUMP:   Creating config file /etc/texmf/texmf.d/85Misc.cnf with new version
0m5.2s DUMP:   
0m5.2s DUMP:   Creating config file /etc/texmf/texmf.d/90TeXDoc.cnf with new version
0m5.2s DUMP:   
0m5.2s DUMP:   Creating config file /etc/texmf/texmf.d/95NonPath.cnf with new version
0m5.3s DUMP:   
0m5.3s DUMP:   Creating config file /etc/texmf/updmap.d/00updmap.cfg with new version
0m5.3s DUMP:   
0m5.3s DUMP:   Creating config file /etc/texmf/texmf.cnf with new version
0m5.4s DUMP:   
0m5.4s DEBUG: Command ok: "chroot /tmp/tmpTZbIYF apt-get -y install 'tex-common'"
0m5.4s DEBUG: Starting command: chroot /tmp/tmpTZbIYF apt-get clean
0m5.4s DEBUG: Command ok: 'chroot /tmp/tmpTZbIYF apt-get clean'
0m5.4s DEBUG: Starting command: chroot /tmp/tmpTZbIYF dpkg --get-selections '*'
0m5.4s DUMP:   adduser						install
0m5.4s DUMP:   apt						install
0m5.4s DUMP:   apt-utils					install
0m5.4s DUMP:   aptitude					install
0m5.4s DUMP:   base-config					install
0m5.4s DUMP:   base-files					install
0m5.4s DUMP:   base-passwd					install
0m5.4s DUMP:   bash						install
0m5.4s DUMP:   bsdmainutils					install
0m5.4s DUMP:   bsdutils					install
0m5.4s DUMP:   console-common					install
0m5.4s DUMP:   console-data					install
0m5.4s DUMP:   console-tools					install
0m5.4s DUMP:   coreutils					install
0m5.4s DUMP:   cpio						install
0m5.4s DUMP:   cron						install
0m5.4s DUMP:   debconf						install
0m5.4s DUMP:   debconf-i18n					install
0m5.4s DUMP:   debianutils					install
0m5.4s DUMP:   dhcp-client					install
0m5.4s DUMP:   diff						install
0m5.4s DUMP:   dmidecode					install
0m5.4s DUMP:   dpkg						install
0m5.4s DUMP:   dselect						install
0m5.4s DUMP:   e2fslibs					install
0m5.4s DUMP:   e2fsprogs					install
0m5.4s DUMP:   ed						install
0m5.4s DUMP:   fdutils						install
0m5.4s DUMP:   findutils					install
0m5.4s DUMP:   gcc-3.3-base					install
0m5.4s DUMP:   gcc-4.0-base					install
0m5.4s DUMP:   gettext-base					install
0m5.4s DUMP:   grep						install
0m5.4s DUMP:   groff-base					install
0m5.4s DUMP:   gzip						install
0m5.4s DUMP:   hostname					install
0m5.4s DUMP:   ifupdown					install
0m5.4s DUMP:   info						install
0m5.4s DUMP:   initscripts					install
0m5.4s DUMP:   iptables					install
0m5.4s DUMP:   iputils-ping					install
0m5.4s DUMP:   klogd						install
0m5.4s DUMP:   laptop-detect					install
0m5.4s DUMP:   libacl1						install
0m5.4s DUMP:   libattr1					install
0m5.4s DUMP:   libblkid1					install
0m5.4s DUMP:   libc6						install
0m5.4s DUMP:   libcap1						install
0m5.4s DUMP:   libcomerr2					install
0m5.4s DUMP:   libconsole					install
0m5.4s DUMP:   libdb1-compat					install
0m5.4s DUMP:   libdb3						install
0m5.4s DUMP:   libdb4.2					install
0m5.4s DUMP:   libgcc1						install
0m5.4s DUMP:   libgcrypt11					install
0m5.4s DUMP:   libgdbm3					install
0m5.4s DUMP:   libgnutls11					install
0m5.5s DUMP:   libgpg-error0					install
0m5.5s DUMP:   liblocale-gettext-perl				install
0m5.5s DUMP:   liblockfile1					install
0m5.5s DUMP:   liblzo1						install
0m5.5s DUMP:   libncurses5					install
0m5.5s DUMP:   libncursesw5					install
0m5.5s DUMP:   libnewt0.51					install
0m5.5s DUMP:   libopencdk8					install
0m5.5s DUMP:   libpam-modules					install
0m5.5s DUMP:   libpam-runtime					install
0m5.5s DUMP:   libpam0g					install
0m5.5s DUMP:   libpcap0.7					install
0m5.5s DUMP:   libpcre3					install
0m5.5s DUMP:   libpopt0					install
0m5.5s DUMP:   libselinux1					install
0m5.5s DUMP:   libsepol1					install
0m5.5s DUMP:   libsigc++-1.2-5c102				install
0m5.5s DUMP:   libslang2					install
0m5.5s DUMP:   libss2						install
0m5.5s DUMP:   libssl0.9.7					install
0m5.5s DUMP:   libstdc++5					install
0m5.5s DUMP:   libstdc++6					install
0m5.5s DUMP:   libtasn1-2					install
0m5.5s DUMP:   libtext-charwidth-perl				install
0m5.5s DUMP:   libtext-iconv-perl				install
0m5.5s DUMP:   libtext-wrapi18n-perl				install
0m5.5s DUMP:   libtextwrap1					install
0m5.5s DUMP:   libuuid1					install
0m5.5s DUMP:   libwrap0					install
0m5.5s DUMP:   login						install
0m5.5s DUMP:   logrotate					install
0m5.5s DUMP:   lsb-base					install
0m5.5s DUMP:   makedev						install
0m5.5s DUMP:   man-db						install
0m5.5s DUMP:   manpages					install
0m5.5s DUMP:   mawk						install
0m5.5s DUMP:   modutils					install
0m5.5s DUMP:   mount						install
0m5.5s DUMP:   nano						install
0m5.5s DUMP:   ncurses-base					install
0m5.5s DUMP:   ncurses-bin					install
0m5.5s DUMP:   net-tools					install
0m5.5s DUMP:   netbase						install
0m5.5s DUMP:   netkit-inetd					install
0m5.5s DUMP:   nvi						install
0m5.5s DUMP:   passwd						install
0m5.5s DUMP:   pciutils					install
0m5.5s DUMP:   perl-base					install
0m5.5s DUMP:   ppp						install
0m5.5s DUMP:   pppconfig					install
0m5.5s DUMP:   pppoe						install
0m5.5s DUMP:   pppoeconf					install
0m5.5s DUMP:   procps						install
0m5.5s DUMP:   psmisc						install
0m5.5s DUMP:   sed						install
0m5.5s DUMP:   slang1a-utf8					install
0m5.5s DUMP:   sysklogd					install
0m5.5s DUMP:   sysv-rc						install
0m5.5s DUMP:   sysvinit					install
0m5.5s DUMP:   tar						install
0m5.5s DUMP:   tasksel						install
0m5.5s DUMP:   tcpd						install
0m5.5s DUMP:   telnet						install
0m5.5s DUMP:   tex-common					install
0m5.5s DUMP:   ucf						install
0m5.5s DUMP:   util-linux					install
0m5.5s DUMP:   wget						install
0m5.5s DUMP:   whiptail					install
0m5.5s DUMP:   zlib1g						install
0m5.5s DEBUG: Command ok: "chroot /tmp/tmpTZbIYF dpkg --get-selections '*'"
0m5.5s DEBUG: Starting command: chroot /tmp/tmpTZbIYF dpkg --remove ucf
0m5.5s DUMP:   dpkg: dependency problems prevent removal of ucf:
0m5.5s DUMP:    tex-common depends on ucf.
0m5.5s DUMP:   dpkg: error processing ucf (--remove):
0m5.5s DUMP:    dependency problems - not removing
0m5.5s DUMP:   Errors were encountered while processing:
0m5.5s DUMP:    ucf
0m5.5s DEBUG: Command failed (status=256), but ignoring error: 'chroot /tmp/tmpTZbIYF dpkg --remove ucf'
0m5.5s DEBUG: Starting command: chroot /tmp/tmpTZbIYF dpkg --remove tex-common
0m5.5s DUMP:   (Reading database ... 7686 files and directories currently installed.)
0m5.5s DUMP:   Removing tex-common ...
0m5.5s DEBUG: Command ok: 'chroot /tmp/tmpTZbIYF dpkg --remove tex-common'
0m5.5s DEBUG: Starting command: chroot /tmp/tmpTZbIYF dpkg --remove --pending
0m5.6s DUMP:   (Reading database ... 7603 files and directories currently installed.)
0m5.6s DUMP:   Removing ucf ...
0m5.6s DEBUG: Command ok: 'chroot /tmp/tmpTZbIYF dpkg --remove --pending'
0m5.6s DEBUG: Starting command: chroot /tmp/tmpTZbIYF dpkg --purge ucf
0m5.6s DUMP:   (Reading database ... 7591 files and directories currently installed.)
0m5.6s DUMP:   Removing ucf ...
0m5.6s DUMP:   Purging configuration files for ucf ...
0m5.6s DUMP:   rmdir: `/var/lib/ucf/cache': Directory not empty
0m5.8s DUMP:   rmdir: `/var/lib/ucf/cache': Directory not empty
0m5.8s DUMP:   dpkg - warning: while removing ucf, directory `/var/lib/ucf' not empty so not removed.
0m5.9s DEBUG: Command ok: 'chroot /tmp/tmpTZbIYF dpkg --purge ucf'
0m5.9s DEBUG: Starting command: chroot /tmp/tmpTZbIYF dpkg --remove --pending
0m5.9s DEBUG: Command ok: 'chroot /tmp/tmpTZbIYF dpkg --remove --pending'
0m5.9s DEBUG: Starting command: chroot /tmp/tmpTZbIYF dpkg --purge tex-common
0m5.9s DUMP:   (Reading database ... 7589 files and directories currently installed.)
0m5.9s DUMP:   Removing tex-common ...
0m5.9s DUMP:   Purging configuration files for tex-common ...
0m6.0s DEBUG: Command ok: 'chroot /tmp/tmpTZbIYF dpkg --purge tex-common'
0m6.0s DEBUG: Starting command: chroot /tmp/tmpTZbIYF dpkg --remove --pending
0m6.0s DEBUG: Command ok: 'chroot /tmp/tmpTZbIYF dpkg --remove --pending'
0m6.0s DEBUG: Starting command: chroot /tmp/tmpTZbIYF dpkg --purge --pending
0m6.1s DEBUG: Command ok: 'chroot /tmp/tmpTZbIYF dpkg --purge --pending'
0m6.1s DEBUG: Starting command: chroot /tmp/tmpTZbIYF dpkg --remove --pending
0m6.1s DEBUG: Command ok: 'chroot /tmp/tmpTZbIYF dpkg --remove --pending'
0m7.0s ERROR: Package purging left files on system:
  /usr/local/share/texmf
  /usr/local/share/texmf/ls-R
  /var/lib/ucf
    owned by: ucf
  /var/lib/ucf/cache
  /var/lib/ucf/cache/:etc:texmf:texmf.cnf
  /var/lib/ucf/hashfile.0
  /var/lib/ucf/hashfile.1
  /var/lib/ucf/hashfile.2
  /var/lib/ucf/hashfile.3
  /var/lib/ucf/hashfile.4
  /var/lib/ucf/hashfile.5
  /var/lib/ucf/hashfile.6
  /var/lib/ucf/hashfile.7

0m7.0s ERROR: FAIL: Installation and purging test.
0m8.6s DEBUG: Removed directory tree at /tmp/tmpTZbIYF

End: 2005-10-10 22:26:47 UTC

Reply to: