Bug#428650: module-init-tools: Upgrade fails: Tries to overwrite diversion of french man page

2007-07-05 Thread Steve Langasek
Hi Marco,

I think the root cause of this bug is the old bug in dpkg, whereby if a file
has been diverted on the filesystem, dpkg will not clean it up when the
owning package stops shipping it.

This bug has since been fixed in dpkg, but modutils must have stopped
shipping /usr/share/man/fr/man5/modules.5.gz some time ago (in favor of
/usr/share/man/fr/man5/modules.5).

Since the reason for removing the diversion is that module-init-tools now
conflicts with modutils, I think module-init-tools must also take
responsibility for removing the orphaned files.  A simple rm -f
/usr/share/man/${locale}man$DSECTION/$1.modutils.$DSECTION.gz before the
dpkg-divert call should be sufficient.

Frédéric's explanation for the origin of these files is also plausible, and
has the same solution.

Cheers,
-- 
Steve Langasek   Give me a lever long enough and a Free OS
Debian Developer   to set it on, and I can move the world.
[EMAIL PROTECTED]   http://www.debian.org/



Bug#428650: module-init-tools: Upgrade fails: Tries to overwrite diversion of french man page

2007-07-04 Thread Joel Soete
Hello,

Sorry but release 3.3-pre11-3 doesn't fix this pb to me ;-(

J.
---
Pack Scarlet One, ADSL 6 Mbps + Telephonie, a partir de EUR 29,95...
http://www.scarlet.be/




Bug#428650: module-init-tools: Upgrade fails: Tries to overwrite diversion of french man page

2007-06-27 Thread Svante Signell
Package: module-init-tools
Version: 3.3-pre11-3,3.3-pre11-2
Severity: grave

It seems that upgrading of packeages in unstable is hindered by this bug
so the importance should be raised to grave! A temporary workaround is
to install module-init-tools-3.3-pre11-1 from testing after the failure
to install module-init-tools-3.3-pre11-3 and automatic removal of
modutils-2.4.27.0-6:

dpkg --set-selections
module-init-tools hold
^D
apt-get install module-init-tools=3.3-pre11-1 -t testing
apt-get install modutils=2.4.27.0-6 -t unstable

Trying to install modutils again after failure to setup 3.3-pre11-3 will
attempt to remove kernels and other vital packages so 3.3-pre11-1 has to
be re-installed before:

apt-get -s install modutils -t unstable
The following packages will be REMOVED
initramfs-tools linux-image-2.6-686 linux-image-2.6-686-smp
linux-image-2.6.18-3-686 linux-image-2.6.18-4-686
linux-image-2.6.20-1-686 linux-image-2.6.21-1-686 module-init-tools



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#428650: module-init-tools: Upgrade fails: Tries to overwrite diversion of french man page

2007-06-27 Thread Frédéric Brière
On Wed, Jun 27, 2007 at 11:14:21AM +0200, Svante Signell wrote:
 so the importance should be raised to grave! A temporary workaround is
 to install module-init-tools-3.3-pre11-1 from testing after the failure
 to install module-init-tools-3.3-pre11-3 and automatic removal of

Marco has previously stated that downgrading of m-i-t is not supported.
Feel free to look at #428953 and #429572 to get a taste of the joys that
await if you step on that road.

I haven't looked closely at pre11-3's pre/postrm, but you might be okay
if you were to remove pre11-3 (using --force if necessary) before
installing pre11-1.  All these bugs are caused by one version installing
a diversion over another version's files; as long as each version
cleanly wipes all its stuff upon removal, doing a remove/install instead
of up/downgrading should be safe.


-- 
StevenK I can usually supress the feelings that tell me to crash
  tackle a girl into the bushes


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#428650: module-init-tools: Upgrade fails: Tries to overwrite diversion of french man page

2007-06-27 Thread Svante Signell
On Wed, 2007-06-27 at 14:24 -0400, Frédéric Brière wrote:
 On Wed, Jun 27, 2007 at 11:14:21AM +0200, Svante Signell wrote:
  so the importance should be raised to grave! A temporary workaround is
  to install module-init-tools-3.3-pre11-1 from testing after the failure
  to install module-init-tools-3.3-pre11-3 and automatic removal of
 
 Marco has previously stated that downgrading of m-i-t is not supported.
 Feel free to look at #428953 and #429572 to get a taste of the joys that
 await if you step on that road

So what to to then? What is the problem with downgrading?

dpkg --status module-init-tools and dpkg --status modutils does look OK
for me!

 I haven't looked closely at pre11-3's pre/postrm, but you might be okay
 if you were to remove pre11-3 (using --force if necessary) before
 installing pre11-1.  All these bugs are caused by one version installing
 a diversion over another version's files; as long as each version
 cleanly wipes all its stuff upon removal, doing a remove/install instead
 of up/downgrading should be safe.
 
 



Bug#428650: module-init-tools: Upgrade fails: Tries to overwrite diversion of french man page

2007-06-18 Thread Thomas Viehmann

Hi,

for those removing files: Deleting
/usr/share/man/fr/man5/modules.5.gz
is enough.
I suspect that this is left over from some other package or older 
version of module-init-tools? (I couldn't find any version that has 367 
bytes on snapshot.d.o, though.)
Even though the compressed files differ in size (I don't have any 
md5sums anymore, sorry), zdiff didn't find differences.


Kind regards

T.

Here are the sizes of the two files when it went wrong:
-rw-r--r-- 1 root root  411 2006-01-17 21:05 modules.5.gz
-rw-r--r-- 1 root root  367 2004-07-21 01:25 modules.modutils.5.gz
--
Thomas Viehmann, http://thomas.viehmann.net/


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#428650: module-init-tools: Upgrade fails: Tries to overwrite diversion of french man page

2007-06-13 Thread Michael Biebl
Package: module-init-tools
Version: 3.3-pre11-2
Severity: serious
Justification: Makes upgrade fail

Upgrading module-init-tools (from 3.3-pre11-1 to 3.3-pre11-2) fails with
the following error message:

Preparing to replace module-init-tools 3.3-pre11-1 (using 
.../module-init-tools_3.3-pre11-2_i386.deb) ...
dpkg-divert: rename involves overwriting `/usr/share/man/fr/man5/modules.5.gz' 
with
  different file `/usr/share/man/fr/man5/modules.modutils.5.gz', not allowed
dpkg: error processing 
/var/cache/apt/archives/module-init-tools_3.3-pre11-2_i386.deb (--unpack):
 subprocess pre-installation script returned error exit status 2
Errors were encountered while processing:
 /var/cache/apt/archives/module-init-tools_3.3-pre11-2_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:



-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (300, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.21.5
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages module-init-tools depends on:
ii  libc6 2.5-10 GNU C Library: Shared libraries
ii  lsb-base  3.1-23.1   Linux Standard Base 3.1 init scrip

module-init-tools recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#428650: module-init-tools: Upgrade fails: Tries to overwrite diversion of french man page

2007-06-13 Thread Daniel Leidert
I'm not sure, if that information helps: When I try to remove modutils
first (that works) and then try to update module-init-tools, then I
receive this error:

+ undivert_man modules 5
+ DSECTION=5
+ for locale in ''\'''\''' fr/
+ dpkg-divert --remove --rename --package module-init-tools
--divert /usr/share/man/man5/modules.modutils.5.gz 
/usr/share/man/man5/modules.5.gz
+ for locale in ''\'''\''' fr/
+ dpkg-divert --remove --rename --package module-init-tools
--divert /usr/share/man/fr/man5/modules.modutils.5.gz 
/usr/share/man/fr/man5/modules.5.gz
dpkg-divert: rename involves overwriting
`/usr/share/man/fr/man5/modules.5.gz' with
  different file `/usr/share/man/fr/man5/modules.modutils.5.gz', not
allowed
dpkg: error processing module-init-tools (--configure):
 subprocess post-installation script returned error exit status 2
Errors were encountered while processing:
 module-init-tools

Regards, Daniel





-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#428650: module-init-tools: Upgrade fails: Tries to overwrite diversion of french man page

2007-06-13 Thread Daniel Leidert
Am Donnerstag, den 14.06.2007, 01:11 +0200 schrieb Daniel Leidert:
 I'm not sure, if that information helps: When I try to remove modutils
 first (that works) and then try to update module-init-tools, then I
 receive this error:
 
 + undivert_man modules 5
 + DSECTION=5
 + for locale in ''\'''\''' fr/
 + dpkg-divert --remove --rename --package module-init-tools
 --divert /usr/share/man/man5/modules.modutils.5.gz 
 /usr/share/man/man5/modules.5.gz
 + for locale in ''\'''\''' fr/
 + dpkg-divert --remove --rename --package module-init-tools
 --divert /usr/share/man/fr/man5/modules.modutils.5.gz 
 /usr/share/man/fr/man5/modules.5.gz
 dpkg-divert: rename involves overwriting
 `/usr/share/man/fr/man5/modules.5.gz' with
   different file `/usr/share/man/fr/man5/modules.modutils.5.gz', not
 allowed
 dpkg: error processing module-init-tools (--configure):
  subprocess post-installation script returned error exit status 2
 Errors were encountered while processing:
  module-init-tools

Is it possible, that is it somehow related to the fact, that modutils
also contains /usr/share/man/fr/man5/modules.5 besides the gzipped
manpage modules.5.gz?

Regards, Daniel



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]