apt pinning and dependencies
by lvm_ from LinuxQuestions.org on (#6ESEW)
Is it possible to use set up APT pinning rules so that a specific repository will be used for a package and those of its dependencies, which are not available in the default repo?
The situation: I wanted to replace a snap version of chromium in ubuntu with a normal one from debian so I connected the appropriate debian repository, set a higher priority for it for chromium package, tried installing - and failed because a number of chromium dependencies are too old in ubuntu repository. Ok, I switched them to debian repo as well and got what I wanted, no problem, but it is not a robust solution: if in future some other chromium dependency gets upgraded in debian but not in ubuntu, next chromium upgrade will fail and manual intervention will be required again. So my question is: is it possible to configure APT pinning in such a way that debian repo will be used for a root package (chromium) and those of its dependencies, which are too old in ubuntu repo?
The situation: I wanted to replace a snap version of chromium in ubuntu with a normal one from debian so I connected the appropriate debian repository, set a higher priority for it for chromium package, tried installing - and failed because a number of chromium dependencies are too old in ubuntu repository. Ok, I switched them to debian repo as well and got what I wanted, no problem, but it is not a robust solution: if in future some other chromium dependency gets upgraded in debian but not in ubuntu, next chromium upgrade will fail and manual intervention will be required again. So my question is: is it possible to configure APT pinning in such a way that debian repo will be used for a root package (chromium) and those of its dependencies, which are too old in ubuntu repo?