I trying to prohibit snapped packages using /etc/apt/preferences.d/pin

Package: *
Pin: version *snap*
Pin-Priority: -10

but nothing works

  • Please edit the question if you want to update it, instead of using comments – wjandrea Sep 19 '19 at 0:53
  • 2
    You can uninstall snap entirely, if that's what you want – wjandrea Sep 19 '19 at 0:55
  • Yes i can uninstall snap entirely, but i do want, if i ask to install some package, what contains "snap" in version. For example apt install chromium-browser/eoan it sould be never installed – Алексей Востриков Sep 19 '19 at 22:21


Package: snapd
Pin: release a=*
Pin-Priority: -10

This config prohibits snapd installation completely. So any package depend on it could not be installed whith error message:

The following packages have unmet dependencies:
 some-package: PreDepends: snapd but it is not installable
E: Unable to correct problems, you have held broken packages.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.