[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: apt-mark hold issue (apt Installed: 1.8.2 armhf)



On 2020-04-19 at 13:08, Michael Lange wrote:

> Hi,
> 
> On Sun, 19 Apr 2020 12:57:12 -0400 The Wanderer
> <wanderer@fastmail.fm> wrote:
> 
>> Does holding a package to not-installed even work? I thought I'd
>> tried that in the past, and had the result be ignored.
> 
> not sure about that, man apt-mark says
> 
> " hold is used to mark a package as held back, which will prevent
> the package from being automatically installed, upgraded or
> removed."

I think my memory has been jogged now. I think the problem is that this
hold doesn't propagate through the dependency-resolution system, but
only serves to prevent the change from being made, with the result that
if the dependency resolver thinks the change is necessary then an
install / upgrade/ whatever operation will fail with "you have held
broken packages".

IIRC and in my experience, this produces breakages in situations which
would otherwise work often enough that I've just given up on trying it.

And just as I finish that first paragraph, I remember the thing that
didn't work with "not-installed" state: 'dpkg --set-selections'.

-- 
   The Wanderer

The reasonable man adapts himself to the world; the unreasonable one
persists in trying to adapt the world to himself. Therefore all
progress depends on the unreasonable man.         -- George Bernard Shaw

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: