Created
January 24, 2022 14:41
-
-
Save b3/41e0a12840ac94d8c24a8012fcc98a26 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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