How to prevent a package from installing in a dist-upgrade

Kernels & Hardware, configuring network, installing services

How to prevent a package from installing in a dist-upgrade

Postby ckosloff » 2018-08-08 11:55

I am in the testing branch and had a bad experience with package libcap-ng0, which was automatically installed and causes segmentation fault, there is a bug filed against that package but no fix yet, and it is not possible to purge it, because it will drag with it dbus and apt.
I have another computer on testing, which does not have this package installed, and I want to run a dist-upgrade on it, but I want to prevent libcap-ng0 from installing.
What syntax should I use?
User avatar
ckosloff
 
Posts: 348
Joined: 2011-12-29 15:08
Location: South Florida, USA

Re: How to prevent a package from installing in a dist-upgra

Postby bw123 » 2018-08-08 13:20

Depending on your setup you could probably manage without dbus, but not without apt, so I would not recommend this. If apt depends on the pkg, don;t prevent it from being installed.
User avatar
bw123
 
Posts: 3189
Joined: 2011-05-09 06:02
Location: TN_USA

Re: How to prevent a package from installing in a dist-upgra

Postby CwF » 2018-08-08 16:03

Could you force a downgrade of the package first, then check for a clean purge?
CwF
 
Posts: 49
Joined: 2018-06-20 15:16

Re: How to prevent a package from installing in a dist-upgra

Postby Bulkley » 2018-08-08 16:30

In my Stretch there is a very long list of packages that depend on libcap-ng0. I doubt that it is the source of your problem.

As you know, things break in Testing.
Bulkley
 
Posts: 5601
Joined: 2006-02-11 18:35

Re: How to prevent a package from installing in a dist-upgra

Postby ckosloff » 2018-08-09 13:13

I don't think that those fundamental packages depend on libcap-ng0, I think that it is rather the opposite, according to what that packegae does or not.
I think the best option is to downgrade the package, but I don't know how to do this.
Please help.
User avatar
ckosloff
 
Posts: 348
Joined: 2011-12-29 15:08
Location: South Florida, USA

Re: How to prevent a package from installing in a dist-upgra

Postby ckosloff » 2018-08-09 13:15

Bulkley wrote:In my Stretch there is a very long list of packages that depend on libcap-ng0. I doubt that it is the source of your problem.

As you know, things break in Testing.

There is a bug filed against that package because it causes segmentation fault, however there is no newer version.
User avatar
ckosloff
 
Posts: 348
Joined: 2011-12-29 15:08
Location: South Florida, USA


Return to System configuration

Who is online

Users browsing this forum: No registered users and 6 guests

fashionable