Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save b3/41e0a12840ac94d8c24a8012fcc98a26 to your computer and use it in GitHub Desktop.
Save b3/41e0a12840ac94d8c24a8012fcc98a26 to your computer and use it in GitHub Desktop.
Let's say `MYDIR` is a directory somewhere in my homedir.
I use the following `Makefile` in `MYDIR`.
```makefile
all:
dpkg-scanpackages . > Packages
gzip < Packages > Packages.gz
apt-ftparchive -o "APT::FTPArchive::Release::Origin=local-debs" release . > Release
gpg --clearsign -o InRelease Release
gpg -abs -o Release.gpg Release
gpg --export MYEMAIL >local-archive-kerying.gpg
```
I create the following `/etc/apt/sources.list.d/local.list` file:
```sources.list
deb [signed-by=/usr/share/keyrings/local-archive-keyring.gpg] file:///MYDIR ./
```
When using `apt update` it claims my PUBKEY is not available even if I put it at the right place, i.e. `/usr/share/keyrings/local-archive-keyring.gpg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment