On Wed, 4 Nov 2015 08:20:10 +1100 Ben Finney <ben+deb...@benfinney.id.au> wrote:
On 03-Nov-2015, Rémi Vanicat wrote:
> Current elpa-magit prerm script just call a perl script from the
> emacsen-common package. What version of emacsen-common do you have?
> If it isn't 2.0.8 or latter, could you upgrade it and try again?

It is:

=====
$ dpkg-query --show elpa-magit emacs24 emacsen-common
elpa-magit      2.2.2-3
emacs24 24.5+1-2
emacsen-common  2.0.8
=====

That's part of the problem, as I understand it. Emacs is only partly
upgraded; when ‘emacs24’ tries to upgrade, it attempts to upgrade
‘elpa-magit’.

When that fails, the system is left in an inconsistent state:
‘elpa-magit’ cannot move beyond 2.2.2-3, but ‘emacs24’ requires that
before its upgrade is complete.

Meanwhile ‘emacsen-common’ is already at version 2.0.8, which causes
‘elpa-magit’ to fail its pre-remove (whether version 2.2.2-3 or
version 2.3.0-2). And around we go again :-)


--
 \                   德不孤、必有鄰。 (The virtuous are not abandoned, |
  `\                               they shall surely have neighbours.) |
_o__)                            —孔夫子 Confucius (551 BCE – 479 BCE) |
Ben Finney <b...@benfinney.id.au>

I'm affected by this bug as well.
I guess problem is in file:

/usr/lib/emacsen-common/packages/remove/elpa-magit

line:
  find ${elc_dir} -type l -delete

if ${elc_dir} doesn't exist, find fails. Solution:

  [ -e ${elc_dir} ] && find ${elc_dir} -type l -delete

Problem is also with other elpa packages: elpa-git-commit, elpa-magit-popup, 
elpa-with-editor

Reply via email to