Re: regenerate InRelease file (Solved)
On 9/8/14, Abdelkader Belahcene <abelahcene@gmail.com> wrote:
> Hi all,
> I used apt-mirror to create my own local mirror? that 's fine.
>
> The problem now the date in Inrelease is expired, and I can't use
> it , until I changed the date,
>
> I did it directly in the file !!! unfortunately the signature is not
> valid, so I want to regenerate the release for my local mirror, I
> don't want new packages, JUST to regenerate the file Inrelease with
> correct date.
> something with gpg program I suppose???
> Please someone can send me the command.
> Thanks a lot
> regards
> abd_bela
>
OK I solved the problem ,
it can help someone: ( may be there is a better way)
like this:
1. I generate my own key ( gpg --gen-key)
2. I create new Release file with apt-ftparchive --md5 --sha256
release . > Release
in dists directory
3. gpg --armor --output Release.gpg --detach-sign Release
4. gpg --clearsign --output InRelease Release
5. apt-key add myKey
So I use my new key to control the signature instead of the debian key
that 's it
Best regards
Reply to: