This is a Debian repository. To install packages from this repository, you should first download a trust anchor into your system using this command:
$ curl -L -q https://packages.gopass.pw/repos/gopass/gopass-archive-keyring.gpg | sudo tee /usr/share/keyrings/gopass-archive-keyring.gpg
Then you can add the repository to your sources.list by creating a text file in /etc/apt/sources.list.d/gopass.sources containing the following:
$ cat << EOF | sudo tee /etc/apt/sources.list.d/gopass.sources Types: deb URIs: https://packages.gopass.pw/repos/gopass Suites: stable Architectures: all amd64 arm64 armhf Components: main Signed-By: /usr/share/keyrings/gopass-archive-keyring.gpg EOFFinally, you should also add the following preferences file to restrict what this repository can install, by creating the following file in /etc/apt/preferences.d/gopass.pref:
$ cat << EOF | sudo tee /etc/apt/preferences.d/99gopass.pref # Never prefer packages from this repository Package: * Pin: origin packages.gopass.pw Pin-Priority: 1 # But allow installation and upgrades for the following packages # Note: Pin-Priority > 100 is a violation of Debian policy, but # necessary since Debian contains an unrelated package called # gopass, Debian conflict resolution is defunct and maintainers # are free to do whatever the heck they want. Package: gopass Pin: origin packages.gopass.pw Pin-Priority: 900 Package: git-credential-gopass Pin: origin packages.gopass.pw Pin-Priority: 900 Package: gopass-archive-keyring Pin: origin packages.gopass.pw Pin-Priority: 900 Package: gopass-hibp Pin: origin packages.gopass.pw Pin-Priority: 900 Package: gopass-jsonapi Pin: origin packages.gopass.pw Pin-Priority: 900 Package: gopass-summon-provider Pin: origin packages.gopass.pw Pin-Priority: 900 EOFOnce this is done, you can run apt-get update for the changes to take effect and use apt-get install gopass-archive-keyring to make sure updates to the keyring are received in a timely manner.
$ sudo apt update $ sudo apt install gopass # Optional $ sudo apt install git-credential-gopass gopass-archive-keyring gopass-hibp gopass-jsonapi gopass-summon-provider