Bug#322210: [m68k] ocaml-nox: can not be removed
On Fri, Aug 12, 2005 at 09:44:13PM +0200, Sven Luther wrote: > > If the directory is missing qnd qnother pqckqges does the above, stuff will be > copied as md5sum which will not be a directory. > > This will only happen when a package ith bad dependency is installed and > installs a md5sum file though. I tried to clean my buildd and now its broke worse than ever: Preparing to replace ocaml-nox 3.08.3-6 (using .../ocaml-nox_3.08.3-7_m68k.deb) ... ERROR: emacsen-common being used before being configured. ERROR: This is likely a bug in the ocaml-nox package, which needs to ERROR: add one of the appropriate dependencies. ERROR: See /usr/share/doc/emacsen-common/debian-emacs-policy.gz ERROR: for details. dpkg: warning - old pre-removal script returned error exit status 2 dpkg - trying script from the new package instead ... ERROR: emacsen-common being used before being configured. ERROR: This is likely a bug in the ocaml-nox package, which needs to ERROR: add one of the appropriate dependencies. ERROR: See /usr/share/doc/emacsen-common/debian-emacs-policy.gz ERROR: for details. dpkg: error processing /var/cache/apt/archives/ocaml-nox_3.08.3-7_m68k.deb (--unpack): subprocess new pre-removal script returned error exit status 2 Errors were encountered while processing: /var/cache/apt/archives/ocaml-nox_3.08.3-7_m68k.deb E: Sub-process /usr/bin/dpkg returned an error code (1) Christian -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#322210: [m68k] ocaml-nox: can not be removed
On Fri, Aug 12, 2005 at 11:43:42AM +0200, Stefano Zacchiroli wrote: > On Fri, Aug 12, 2005 at 11:09:10AM +0200, Sven Luther wrote: > > > 1) ocaml-md5sums may be not available when postrm scripts are invoked > > Sure, you should use it in prerm, since postrm removes it, no ? > > No, I can't, since when prerm is invoked .md5sums entries are still in > /var/lib/ocaml/md5sums/. Still this is not a problem, invoking it on > postrm only if ocaml-md5sums is available is fine since as long as it is > not available .md5sums entries are useless. As soon as it will get > re-installed the registry will be updated again. > > > It is probably not there, but why if it was not there, and some random > > packages does a : > > > > cp stuff /var/lib/ocaml/md5sums > > It was there since the error reported was "not a directory" rather than > "no such file or directory:". But as Christian reported he probably > created that file by hand. If the directory is missing qnd qnother pqckqges does the above, stuff will be copied as md5sum which will not be a directory. This will only happen when a package ith bad dependency is installed and installs a md5sum file though. Friendly, Sven Luther -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#322210: [m68k] ocaml-nox: can not be removed
On Fri, Aug 12, 2005 at 11:09:10AM +0200, Sven Luther wrote: > > 1) ocaml-md5sums may be not available when postrm scripts are invoked > Sure, you should use it in prerm, since postrm removes it, no ? No, I can't, since when prerm is invoked .md5sums entries are still in /var/lib/ocaml/md5sums/. Still this is not a problem, invoking it on postrm only if ocaml-md5sums is available is fine since as long as it is not available .md5sums entries are useless. As soon as it will get re-installed the registry will be updated again. > It is probably not there, but why if it was not there, and some random > packages does a : > > cp stuff /var/lib/ocaml/md5sums It was there since the error reported was "not a directory" rather than "no such file or directory:". But as Christian reported he probably created that file by hand. All should be fixed now, I'm rebuilding the package right now. -- Stefano Zacchiroli -*- Computer Science PhD student @ Uny Bologna, Italy [EMAIL PROTECTED],debian.org,bononia.it} -%- http://www.bononia.it/zack/ If there's any real truth it's that the entire multidimensional infinity of the Universe is almost certainly being run by a bunch of maniacs. -!- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#322210: [m68k] ocaml-nox: can not be removed
On Fri, Aug 12, 2005 at 10:37:37AM +0200, Stefano Zacchiroli wrote: > On Tue, Aug 09, 2005 at 08:26:45PM +0200, Christian T. Steigies wrote: > > I am trying to clean up my unstable chroot, for some reason a few ocaml > > packages were still installed. > > This bug report shows two different problems: > 1) ocaml-md5sums may be not available when postrm scripts are invoked > 2) /var/lib/ocaml/md5sums is not a directory > > I fixed (1) and upload is pending. Good > I can't understand (2). /var/lib/ocaml/md5sums/ is a directory and > several ocaml related packages install stuff under that directory. I can > understand if the directory is no longer there when some postrm scripts > are executed (and I fixed the faulty behaviour of ocaml-md5sums in that > case), but I can't understand how it comes /var/lib/ocaml/md5sums is > something else than a directory. > > Have you toch-ed it trying to fix the postrm problem (like you did a few > lines below in your report)? Yes. I tried several things before I filed the bug, so I did not start out with a clean system. But I think you could easily reproduce the problem. Christian -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#322210: [m68k] ocaml-nox: can not be removed
On Fri, Aug 12, 2005 at 10:37:37AM +0200, Stefano Zacchiroli wrote: > On Tue, Aug 09, 2005 at 08:26:45PM +0200, Christian T. Steigies wrote: > > I am trying to clean up my unstable chroot, for some reason a few ocaml > > packages were still installed. > > This bug report shows two different problems: > 1) ocaml-md5sums may be not available when postrm scripts are invoked Sure, you should use it in prerm, since postrm removes it, no ? > 2) /var/lib/ocaml/md5sums is not a directory > > I fixed (1) and upload is pending. > > I can't understand (2). /var/lib/ocaml/md5sums/ is a directory and > several ocaml related packages install stuff under that directory. I can > understand if the directory is no longer there when some postrm scripts > are executed (and I fixed the faulty behaviour of ocaml-md5sums in that > case), but I can't understand how it comes /var/lib/ocaml/md5sums is > something else than a directory. It is probably not there, but why if it was not there, and some random packages does a : cp stuff /var/lib/ocaml/md5sums expecting it to be a dir, this would end in it being a file. Friendly, Sven Luther -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#322210: [m68k] ocaml-nox: can not be removed
On Tue, Aug 09, 2005 at 08:26:45PM +0200, Christian T. Steigies wrote: > I am trying to clean up my unstable chroot, for some reason a few ocaml > packages were still installed. This bug report shows two different problems: 1) ocaml-md5sums may be not available when postrm scripts are invoked 2) /var/lib/ocaml/md5sums is not a directory I fixed (1) and upload is pending. I can't understand (2). /var/lib/ocaml/md5sums/ is a directory and several ocaml related packages install stuff under that directory. I can understand if the directory is no longer there when some postrm scripts are executed (and I fixed the faulty behaviour of ocaml-md5sums in that case), but I can't understand how it comes /var/lib/ocaml/md5sums is something else than a directory. Have you toch-ed it trying to fix the postrm problem (like you did a few lines below in your report)? Thanks for the bug report. -- Stefano Zacchiroli -*- Computer Science PhD student @ Uny Bologna, Italy [EMAIL PROTECTED],debian.org,bononia.it} -%- http://www.bononia.it/zack/ If there's any real truth it's that the entire multidimensional infinity of the Universe is almost certainly being run by a bunch of maniacs. -!- signature.asc Description: Digital signature
Bug#322210: [m68k] ocaml-nox: can not be removed
Package: ocaml-nox Version: 3.08.3-6 Severity: serious Filed as RC bug as requested by Sven Luther I am trying to clean up my unstable chroot, for some reason a few ocaml packages were still installed. Reinstalling after a failed purge attempt: Setting up ocaml-base-nox (3.08.3-6) ... Setting up ocaml-interp (3.08.3-6) ... And purge again: The following packages will be REMOVED: emacsen-common* libncurses5-dev* ocaml-base-nox* ocaml-interp* ocaml-nox* Removing ocaml-nox ... /usr/bin/ocaml-md5sums: "opendir" failed on "/var/lib/ocaml/md5sums": Not a directory dpkg: error processing ocaml-nox (--purge): subprocess post-removal script returned error exit status 2 (unstable)[EMAIL PROTECTED]:/# touch /var/lib/ocaml/md5sums (unstable)[EMAIL PROTECTED]:/# debfoster Keep ocaml-nox? [Ynpsiuqx?], [H]elp: P Reading package lists... Done Building dependency tree... Done The following packages will be REMOVED: ocaml-nox* 0 upgraded, 0 newly installed, 1 to remove and 3 not upgraded. Need to get 0B of archives. After unpacking 15.3MB disk space will be freed. Do you want to continue [Y/n]? (Reading database ... 9370 files and directories currently installed.) Removing ocaml-nox ... /var/lib/dpkg/info/ocaml-nox.postrm: line 6: ocaml-md5sums: command not found dpkg: error processing ocaml-nox (--purge): subprocess post-removal script returned error exit status 127 Christian -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]