Subject: Re: bug#59652: 29.0.50; Error trying to delete `P': (error "Package `P' is used by `Q' as dependency, not deleting")

From: Michael Heerdegen <[email-masked]>
Date: Mon, 09 Jan 2023 17:04:16 +0100

Michael Heerdegen <[email-masked]> writes:

> since around approx. 10 or 20 days, whenever I do U in M-x
> package-list-packages (and I did not change anything in my setup) I
> often get errors like
>
> | Error trying to delete `magit-section-20220929.1014': (error
> | "Package `magit-section-20220929.1014' is used by `magit' as
> | dependency, not deleting")
> | Error trying to delete `with-editor-20220810.1159': (error "Package
> | `with-editor-20220810.1159' is used by `git-commit' as dependency,
> | not deleting")
>
> Real errors.  I only do U and x.

This still happens all the time with different packages.  In most cases I
have to fix manually by restarting the package manager and
reinstall inadvertently removed dependencies.

I don't believe this is a pilot error.  I did not configure package.el
more than setting `package-archives' (adding melpa).

Michael.