#709974 zsh: Fails to upgrade from Wheezy to Jessie if 3rd-party package grml-etc-core is installed

Package:
zsh
Source:
zsh
Description:
shell with lots of features
Submitter:
Thorsten Glaser
Date:
2026-07-17 18:55:02 UTC
Severity:
wishlist
Tags:
#709974#5
Date:
2013-05-27 08:24:23 UTC
From:
To:
Preparing to replace zsh 4.3.17-1 (using .../archives/zsh_5.0.2-3_amd64.deb) ...
Unpacking replacement zsh ...
Selecting previously unselected package zsh-common.
Unpacking zsh-common (from .../zsh-common_5.0.2-3_all.deb) ...
dpkg: error processing /var/cache/apt/archives/zsh-common_5.0.2-3_all.deb (--unpack):
 trying to overwrite '/etc/zsh/zshenv', which is also in package zsh 5.0.2-3
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)

#709974#10
Date:
2013-05-27 10:03:42 UTC
From:
To:
Hi Thorsten,

Thorsten Glaser wrote:

"dpkg -L zsh | fgrep zshenv" yields nothing for me and I did a few
upgrades from 4.3.17-1 to 5.0.2-3 and never run into that.

So I suspect it only happens on upgrades plus some other not yet clear
circumstances.

I also wonder if it may be related to these piuparts failures:

0m57.4s ERROR: FAIL: debsums reports modifications inside the chroot:
  /etc/zsh/zshrc

Could it be related to this? I.e. that these upgrade issues only
happen if some of /etc/zsh/z* were changed before the upgrade?

Will check. Thanks for the report.

		Regards, Axel

#709974#15
Date:
2013-05-27 13:21:35 UTC
From:
To:
The only thing I can think of is having grml-etc-core installed,
which is really the only reason left that zsh is installed too ☺

Possibly.

I think grml-etc-core does that, yes.

Thanks, too. By the way, missing you on IRC.

bye,
//mirabilos

#709974#20
Date:
2013-05-27 16:53:58 UTC
From:
To:
Hi Thorsten,

Thorsten Glaser wrote:

Ah, that's an important information, because grml-etc-core does evil
things by diverting zsh conffiles away in its maintainer scripts, e.g.
here:

http://git.grml.org/?p=grml-etc-core.git;a=blob;f=debian/preinst

Huh, why that? There are mostly zsh, vim, git and hg configs in that
package and as everyone knows, you use mksh, jupp and cvs. :-)

Ok, so installing a virgin VM with Wheezy, installing zsh, adding a
line saying "true" to every file in /etc/zsh/ and then switching to
jessie and saying "apt-get install zsh" to upgrade zsh from 4.3.17-1
to 5.0.2-3 works fine. It just asks about a modified zshrc:

[...]
Setting up zsh-common (5.0.2-3) ...

Configuration file `/etc/zsh/zshrc'
 ==> Modified (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : start a shell to examine the situation
 The default action is to keep your current version.
*** zshrc (Y/I/N/O/D/Z) [default=N] ? n
Setting up zsh (5.0.2-3) ...
[...]

Now checking with additional grml-etc-core installed and not modifying
any zsh conffiles manually:

Preparing to replace zsh 4.3.17-1 (using .../archives/zsh_5.0.2-3_amd64.deb) ...
Unpacking replacement zsh ...
Selecting previously unselected package zsh-common.
Unpacking zsh-common (from .../zsh-common_5.0.2-3_all.deb) ...
dpkg: error processing /var/cache/apt/archives/zsh-common_5.0.2-3_all.deb (--unpack):
 trying to overwrite '/etc/zsh/zshenv', which is also in package zsh 5.0.2-3
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Processing triggers for man-db ...
Errors were encountered while processing:
 /var/cache/apt/archives/zsh-common_5.0.2-3_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@acromantula-domu1:~# dpkg-divert --list grml-etc-core
diversion of /etc/zsh/zshenv to /etc/zsh/zshenv.original by grml-etc-core
diversion of /etc/zsh/zlogin to /etc/zsh/zlogin.original by grml-etc-core
diversion of /etc/zsh/zprofile to /etc/zsh/zprofile.original by grml-etc-core
diversion of /etc/zsh/zshrc to /etc/zsh/zshrc.original by grml-etc-core
diversion of /etc/zsh/zlogout to /etc/zsh/zlogout.original by grml-etc-core
diversion of /etc/vim/vimrc to /etc/vim/vimrc.original by grml-etc-core
root@acromantula-domu1:~#

Diverting conffiles is not supported by Debian (see dpkg-divert(8))
and hence issues have to be expected when being done anyway.

Hence lowering the severity to wishlist.

		Regards, Axel

#709974#29
Date:
2013-05-28 07:18:32 UTC
From:
To:
/etc/network/interfaces.examples

Besides, this is company-wide.

Oh, great…

bye,
//mirabilos

#709974#36
Date:
2026-07-17 18:53:02 UTC
From:
To:
Hi,

* Thorsten Glaser [Mon May 27, 2013 at 10:24:23AM +0200]:

This was about Zsh versions for Debian wheezy + jessie, which are
both no longer supported. With both my Grml + pkg-zsh hats on, I'm
not aware of any upgrade issues any longer for the zsh +
grml-etc-core combination (using it myself also). Though I admit
that grml-etc-core's dpkg-divert implementation is somewhat closer
to a hack than a clean solution - but I'm afraid that's the best we
can get for now.

If there are any further issues, please let us know, for the time
being I'm closing this bug report.

regards
-mika-