Getting “Release: The following signatures were invalid” on local repo

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
1
down vote

favorite












We just installed an Ubuntu 18.04 Server VM to see if our Chef configuration would work on this new distro.



On a separate VM, we have a local apt mirror for this release:



# tree
.
├── extra
│   ├── binary-amd64
│   │   ├── Packages
│   │   └── Packages.gz
│   └── binary-i386
│   ├── Packages
│   └── Packages.gz
├── Release
└── Release.gpg

3 directories, 6 files


We signed the Release file using this command:



/usr/bin/gpg -abs -o Release.gpg Release


The signature seems to be ok after this:



# LANG=C gpg --verify /var/www/html/ubuntu-local/dists/bionic/Release.gpg /var/www/html/ubuntu-local/dists/bionic/Release
gpg: Signature made mar 29 may 2018 13:03:12 WEST using RSA key ID 271AFAF4
gpg: Good signature from "... <...@...>"


On the client side, we've imported the 271AFAF4 key:



# LANG=C apt-key list
/etc/apt/trusted.gpg
--------------------
pub rsa2048 2014-10-27 [SC]
0F11 1A77 EE05 C406 2691 FC74 1794 5F7F 271A FAF4
uid [ unknown] ... <...@...>


The repo definition file on the client side is:



deb "http://localrepo/ubuntu-local" bionic extra


However, each time I run apt-get update I get:



W: GPG error: http://localrepo/ubuntu-local bionic Release: The following signatures were invalid: 0F111A77EE05C4062691FC7417945F7F271AFAF4
E: The repository 'http://localrepo/ubuntu-local bionic Release' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.


However, as you can see above the signature is correct. As a side note, the very same configuration worked on xenial (replacing bionic by xenial in the repo config file), and I also tried to add the xenial repo on the bionic VM with the same result.



I have seen other answers but this seems not to be a duplicate of them.



What am I missing?







share|improve this question






















  • You might find this useful.
    – Elder Geek
    May 29 at 22:21










  • @ElderGeek these are basically the steps that I've followed, it's still failing though.
    – nKn
    May 31 at 7:58










  • basically? or exactly? Your output indicates that the signature is invalid. Everything else happens due to that. I would begin by generating a new one .
    – Elder Geek
    Jun 2 at 21:43














up vote
1
down vote

favorite












We just installed an Ubuntu 18.04 Server VM to see if our Chef configuration would work on this new distro.



On a separate VM, we have a local apt mirror for this release:



# tree
.
├── extra
│   ├── binary-amd64
│   │   ├── Packages
│   │   └── Packages.gz
│   └── binary-i386
│   ├── Packages
│   └── Packages.gz
├── Release
└── Release.gpg

3 directories, 6 files


We signed the Release file using this command:



/usr/bin/gpg -abs -o Release.gpg Release


The signature seems to be ok after this:



# LANG=C gpg --verify /var/www/html/ubuntu-local/dists/bionic/Release.gpg /var/www/html/ubuntu-local/dists/bionic/Release
gpg: Signature made mar 29 may 2018 13:03:12 WEST using RSA key ID 271AFAF4
gpg: Good signature from "... <...@...>"


On the client side, we've imported the 271AFAF4 key:



# LANG=C apt-key list
/etc/apt/trusted.gpg
--------------------
pub rsa2048 2014-10-27 [SC]
0F11 1A77 EE05 C406 2691 FC74 1794 5F7F 271A FAF4
uid [ unknown] ... <...@...>


The repo definition file on the client side is:



deb "http://localrepo/ubuntu-local" bionic extra


However, each time I run apt-get update I get:



W: GPG error: http://localrepo/ubuntu-local bionic Release: The following signatures were invalid: 0F111A77EE05C4062691FC7417945F7F271AFAF4
E: The repository 'http://localrepo/ubuntu-local bionic Release' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.


However, as you can see above the signature is correct. As a side note, the very same configuration worked on xenial (replacing bionic by xenial in the repo config file), and I also tried to add the xenial repo on the bionic VM with the same result.



I have seen other answers but this seems not to be a duplicate of them.



What am I missing?







share|improve this question






















  • You might find this useful.
    – Elder Geek
    May 29 at 22:21










  • @ElderGeek these are basically the steps that I've followed, it's still failing though.
    – nKn
    May 31 at 7:58










  • basically? or exactly? Your output indicates that the signature is invalid. Everything else happens due to that. I would begin by generating a new one .
    – Elder Geek
    Jun 2 at 21:43












up vote
1
down vote

favorite









up vote
1
down vote

favorite











We just installed an Ubuntu 18.04 Server VM to see if our Chef configuration would work on this new distro.



On a separate VM, we have a local apt mirror for this release:



# tree
.
├── extra
│   ├── binary-amd64
│   │   ├── Packages
│   │   └── Packages.gz
│   └── binary-i386
│   ├── Packages
│   └── Packages.gz
├── Release
└── Release.gpg

3 directories, 6 files


We signed the Release file using this command:



/usr/bin/gpg -abs -o Release.gpg Release


The signature seems to be ok after this:



# LANG=C gpg --verify /var/www/html/ubuntu-local/dists/bionic/Release.gpg /var/www/html/ubuntu-local/dists/bionic/Release
gpg: Signature made mar 29 may 2018 13:03:12 WEST using RSA key ID 271AFAF4
gpg: Good signature from "... <...@...>"


On the client side, we've imported the 271AFAF4 key:



# LANG=C apt-key list
/etc/apt/trusted.gpg
--------------------
pub rsa2048 2014-10-27 [SC]
0F11 1A77 EE05 C406 2691 FC74 1794 5F7F 271A FAF4
uid [ unknown] ... <...@...>


The repo definition file on the client side is:



deb "http://localrepo/ubuntu-local" bionic extra


However, each time I run apt-get update I get:



W: GPG error: http://localrepo/ubuntu-local bionic Release: The following signatures were invalid: 0F111A77EE05C4062691FC7417945F7F271AFAF4
E: The repository 'http://localrepo/ubuntu-local bionic Release' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.


However, as you can see above the signature is correct. As a side note, the very same configuration worked on xenial (replacing bionic by xenial in the repo config file), and I also tried to add the xenial repo on the bionic VM with the same result.



I have seen other answers but this seems not to be a duplicate of them.



What am I missing?







share|improve this question














We just installed an Ubuntu 18.04 Server VM to see if our Chef configuration would work on this new distro.



On a separate VM, we have a local apt mirror for this release:



# tree
.
├── extra
│   ├── binary-amd64
│   │   ├── Packages
│   │   └── Packages.gz
│   └── binary-i386
│   ├── Packages
│   └── Packages.gz
├── Release
└── Release.gpg

3 directories, 6 files


We signed the Release file using this command:



/usr/bin/gpg -abs -o Release.gpg Release


The signature seems to be ok after this:



# LANG=C gpg --verify /var/www/html/ubuntu-local/dists/bionic/Release.gpg /var/www/html/ubuntu-local/dists/bionic/Release
gpg: Signature made mar 29 may 2018 13:03:12 WEST using RSA key ID 271AFAF4
gpg: Good signature from "... <...@...>"


On the client side, we've imported the 271AFAF4 key:



# LANG=C apt-key list
/etc/apt/trusted.gpg
--------------------
pub rsa2048 2014-10-27 [SC]
0F11 1A77 EE05 C406 2691 FC74 1794 5F7F 271A FAF4
uid [ unknown] ... <...@...>


The repo definition file on the client side is:



deb "http://localrepo/ubuntu-local" bionic extra


However, each time I run apt-get update I get:



W: GPG error: http://localrepo/ubuntu-local bionic Release: The following signatures were invalid: 0F111A77EE05C4062691FC7417945F7F271AFAF4
E: The repository 'http://localrepo/ubuntu-local bionic Release' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.


However, as you can see above the signature is correct. As a side note, the very same configuration worked on xenial (replacing bionic by xenial in the repo config file), and I also tried to add the xenial repo on the bionic VM with the same result.



I have seen other answers but this seems not to be a duplicate of them.



What am I missing?









share|improve this question













share|improve this question




share|improve this question








edited May 29 at 13:50

























asked May 29 at 13:25









nKn

1062




1062











  • You might find this useful.
    – Elder Geek
    May 29 at 22:21










  • @ElderGeek these are basically the steps that I've followed, it's still failing though.
    – nKn
    May 31 at 7:58










  • basically? or exactly? Your output indicates that the signature is invalid. Everything else happens due to that. I would begin by generating a new one .
    – Elder Geek
    Jun 2 at 21:43
















  • You might find this useful.
    – Elder Geek
    May 29 at 22:21










  • @ElderGeek these are basically the steps that I've followed, it's still failing though.
    – nKn
    May 31 at 7:58










  • basically? or exactly? Your output indicates that the signature is invalid. Everything else happens due to that. I would begin by generating a new one .
    – Elder Geek
    Jun 2 at 21:43















You might find this useful.
– Elder Geek
May 29 at 22:21




You might find this useful.
– Elder Geek
May 29 at 22:21












@ElderGeek these are basically the steps that I've followed, it's still failing though.
– nKn
May 31 at 7:58




@ElderGeek these are basically the steps that I've followed, it's still failing though.
– nKn
May 31 at 7:58












basically? or exactly? Your output indicates that the signature is invalid. Everything else happens due to that. I would begin by generating a new one .
– Elder Geek
Jun 2 at 21:43




basically? or exactly? Your output indicates that the signature is invalid. Everything else happens due to that. I would begin by generating a new one .
– Elder Geek
Jun 2 at 21:43










1 Answer
1






active

oldest

votes

















up vote
0
down vote













In previous releases the system was unhappy with the encryption algorithm of some repoes:



 uses weak digest algorithm (SHA1)


Maybe this issue is something about that but in another way.






share|improve this answer




















    Your Answer







    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "89"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    convertImagesToLinks: true,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );








     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1041584%2fgetting-release-the-following-signatures-were-invalid-on-local-repo%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote













    In previous releases the system was unhappy with the encryption algorithm of some repoes:



     uses weak digest algorithm (SHA1)


    Maybe this issue is something about that but in another way.






    share|improve this answer
























      up vote
      0
      down vote













      In previous releases the system was unhappy with the encryption algorithm of some repoes:



       uses weak digest algorithm (SHA1)


      Maybe this issue is something about that but in another way.






      share|improve this answer






















        up vote
        0
        down vote










        up vote
        0
        down vote









        In previous releases the system was unhappy with the encryption algorithm of some repoes:



         uses weak digest algorithm (SHA1)


        Maybe this issue is something about that but in another way.






        share|improve this answer












        In previous releases the system was unhappy with the encryption algorithm of some repoes:



         uses weak digest algorithm (SHA1)


        Maybe this issue is something about that but in another way.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jun 7 at 20:03









        jazzmale

        215




        215






















             

            draft saved


            draft discarded


























             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1041584%2fgetting-release-the-following-signatures-were-invalid-on-local-repo%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            Which professions warranted travel in Medieval times?

            How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

            Trouble downloading packages list due to a “Hash sum mismatch” error