gpg: [don't know]: invalid packet (ctb=2d).gnupg/ and gpg.conf owner and permissions to satisty both GnuPG...

Is there a way to store 9th-level spells in a Glyph of Warding or similar method?

I have trouble understanding this fallacy: "If A, then B. Therefore if not-B, then not-A."

Is a creature that sees a Medusa's eyes automatically subjected to a saving throw?

What is a good reason for every spaceship to carry a weapon on board?

Are History of Worldbuilding questions on topic?

A starship is travelling at 0.9c and collides with a small rock. Will it leave a clean hole through, or will more happen?

Website seeing my Facebook data?

What makes papers publishable in top-tier journals?

2019 Stack Overflow Moderator Election Q&A - Question Collection

Why is 'diphthong' pronounced the way it is?

Converting very wide logos to square formats

How do you funnel food off a cutting board?

Coworker asking me to not bring cakes due to self control issue. What should I do?

Is there any advantage in specifying './' in a for loop using a glob?

Plausible reason for gold-digging ant

Does Skippy chunky peanut butter contain trans fat?

A fantasy book with seven white haired women on the cover

How is this property called for mod?

Why is that max-Q doesn't occur in transonic regime?

Why did Luke use his left hand to shoot?

Is `Object` a function in javascript?

Does the US government have any planning in place to ensure there's no shortages of food, fuel, steel and other commodities?

Taking headphones when quitting job

Cool Project Ideas



gpg: [don't know]: invalid packet (ctb=2d)


.gnupg/ and gpg.conf owner and permissions to satisty both GnuPG and EnigmailGPG Error while running apt-getGPG Invalid SignatureBroken package ubuntu-keyring (ubuntu 15.04 64 bit)I am installing jenkins server but its giving W: GPG error:Adding new PPA is causing GPG error after apt-get updatedual boot windows 10 and ubuntu 14.04 problem error no such deviceGPG error, signatures invalid [not-a-duplicate]GPG invalid signature on self-signed repositoryHow to solve gpg: invalid option “--full-generate-key”?I can't receive the new pubkey from tor through gpg













1















Trying to fix a problem with my keys on Ubuntu Trusty :



$ apt-key list >/dev/null
gpg: [don't know]: invalid packet (ctb=2d)
gpg: keydb_search_next failed: invalid packet


So I have backed up my keys from PPA repos into /etc/apt/trusted.gpg.d.BACKUP/ :



$ sudo mv /etc/apt/trusted.gpg.d /etc/apt/trusted.gpg.d.BACKUP
$ apt-key list | grep gpg$
/etc/apt/trusted.gpg


And then I imported the keys back to GPG :



$ sudo mkdir /etc/apt/trusted.gpg.d/
$ for file in $(ls /etc/apt/trusted.gpg.d.BACKUP/ | grep gpg$)
> do
> sudo gpg --no-default-keyring --keyring /etc/apt/trusted.gpg.d/$file --import /etc/apt/trusted.gpg.d.BACKUP/$file
> done
gpg: keyring `/etc/apt/trusted.gpg.d/andykimpe-gparted.gpg' created
gpg: key 274A7DA0: public key "Launchpad PPA for andykimpe" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
...
gpg: keyring `/etc/apt/trusted.gpg.d/openlp-core-release.gpg' created
gpg: key DF629112: public key "Launchpad Development Packages" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
$


And when I check, I still have the same :



$ apt-key list | grep gpg$
/etc/apt/trusted.gpg


It is as if nothing had been imported.



Can you help ?










share|improve this question





























    1















    Trying to fix a problem with my keys on Ubuntu Trusty :



    $ apt-key list >/dev/null
    gpg: [don't know]: invalid packet (ctb=2d)
    gpg: keydb_search_next failed: invalid packet


    So I have backed up my keys from PPA repos into /etc/apt/trusted.gpg.d.BACKUP/ :



    $ sudo mv /etc/apt/trusted.gpg.d /etc/apt/trusted.gpg.d.BACKUP
    $ apt-key list | grep gpg$
    /etc/apt/trusted.gpg


    And then I imported the keys back to GPG :



    $ sudo mkdir /etc/apt/trusted.gpg.d/
    $ for file in $(ls /etc/apt/trusted.gpg.d.BACKUP/ | grep gpg$)
    > do
    > sudo gpg --no-default-keyring --keyring /etc/apt/trusted.gpg.d/$file --import /etc/apt/trusted.gpg.d.BACKUP/$file
    > done
    gpg: keyring `/etc/apt/trusted.gpg.d/andykimpe-gparted.gpg' created
    gpg: key 274A7DA0: public key "Launchpad PPA for andykimpe" imported
    gpg: Total number processed: 1
    gpg: imported: 1 (RSA: 1)
    ...
    gpg: keyring `/etc/apt/trusted.gpg.d/openlp-core-release.gpg' created
    gpg: key DF629112: public key "Launchpad Development Packages" imported
    gpg: Total number processed: 1
    gpg: imported: 1 (RSA: 1)
    $


    And when I check, I still have the same :



    $ apt-key list | grep gpg$
    /etc/apt/trusted.gpg


    It is as if nothing had been imported.



    Can you help ?










    share|improve this question



























      1












      1








      1








      Trying to fix a problem with my keys on Ubuntu Trusty :



      $ apt-key list >/dev/null
      gpg: [don't know]: invalid packet (ctb=2d)
      gpg: keydb_search_next failed: invalid packet


      So I have backed up my keys from PPA repos into /etc/apt/trusted.gpg.d.BACKUP/ :



      $ sudo mv /etc/apt/trusted.gpg.d /etc/apt/trusted.gpg.d.BACKUP
      $ apt-key list | grep gpg$
      /etc/apt/trusted.gpg


      And then I imported the keys back to GPG :



      $ sudo mkdir /etc/apt/trusted.gpg.d/
      $ for file in $(ls /etc/apt/trusted.gpg.d.BACKUP/ | grep gpg$)
      > do
      > sudo gpg --no-default-keyring --keyring /etc/apt/trusted.gpg.d/$file --import /etc/apt/trusted.gpg.d.BACKUP/$file
      > done
      gpg: keyring `/etc/apt/trusted.gpg.d/andykimpe-gparted.gpg' created
      gpg: key 274A7DA0: public key "Launchpad PPA for andykimpe" imported
      gpg: Total number processed: 1
      gpg: imported: 1 (RSA: 1)
      ...
      gpg: keyring `/etc/apt/trusted.gpg.d/openlp-core-release.gpg' created
      gpg: key DF629112: public key "Launchpad Development Packages" imported
      gpg: Total number processed: 1
      gpg: imported: 1 (RSA: 1)
      $


      And when I check, I still have the same :



      $ apt-key list | grep gpg$
      /etc/apt/trusted.gpg


      It is as if nothing had been imported.



      Can you help ?










      share|improve this question
















      Trying to fix a problem with my keys on Ubuntu Trusty :



      $ apt-key list >/dev/null
      gpg: [don't know]: invalid packet (ctb=2d)
      gpg: keydb_search_next failed: invalid packet


      So I have backed up my keys from PPA repos into /etc/apt/trusted.gpg.d.BACKUP/ :



      $ sudo mv /etc/apt/trusted.gpg.d /etc/apt/trusted.gpg.d.BACKUP
      $ apt-key list | grep gpg$
      /etc/apt/trusted.gpg


      And then I imported the keys back to GPG :



      $ sudo mkdir /etc/apt/trusted.gpg.d/
      $ for file in $(ls /etc/apt/trusted.gpg.d.BACKUP/ | grep gpg$)
      > do
      > sudo gpg --no-default-keyring --keyring /etc/apt/trusted.gpg.d/$file --import /etc/apt/trusted.gpg.d.BACKUP/$file
      > done
      gpg: keyring `/etc/apt/trusted.gpg.d/andykimpe-gparted.gpg' created
      gpg: key 274A7DA0: public key "Launchpad PPA for andykimpe" imported
      gpg: Total number processed: 1
      gpg: imported: 1 (RSA: 1)
      ...
      gpg: keyring `/etc/apt/trusted.gpg.d/openlp-core-release.gpg' created
      gpg: key DF629112: public key "Launchpad Development Packages" imported
      gpg: Total number processed: 1
      gpg: imported: 1 (RSA: 1)
      $


      And when I check, I still have the same :



      $ apt-key list | grep gpg$
      /etc/apt/trusted.gpg


      It is as if nothing had been imported.



      Can you help ?







      14.04 gnupg






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 4 hours ago







      SebMa

















      asked yesterday









      SebMaSebMa

      263210




      263210






















          1 Answer
          1






          active

          oldest

          votes


















          1














          It was a permission issue :





          $ ll -d /etc/apt/trusted.gpg /etc/apt/trusted.gpg.d /etc/apt/trusted.gpg.d/*.gpg | head
          -rw-r--r-- 1 root root 12335 2019-02-24 11:31:28 /etc/apt/trusted.gpg
          drwxr-xr-x 2 root root 4096 2019-02-24 12:00:11 /etc/apt/trusted.gpg.d/
          -rw------- 1 root root 1132 2019-02-24 12:00:09 /etc/apt/trusted.gpg.d/andykimpe-gparted.gpg
          -rw------- 1 root root 362 2019-02-24 12:00:09 /etc/apt/trusted.gpg.d/brightbox-ruby-ng.gpg
          -rw------- 1 root root 353 2019-02-24 12:00:09 /etc/apt/trusted.gpg.d/cairo-dock-team-ppa.gpg
          -rw------- 1 root root 364 2019-02-24 12:00:09 /etc/apt/trusted.gpg.d/centrych-updates.gpg
          -rw------- 1 root root 9178 2019-02-24 12:00:10 /etc/apt/trusted.gpg.d/debian-archive-squeeze-automatic.gpg
          -rw------- 1 root root 3780 2019-02-24 12:00:10 /etc/apt/trusted.gpg.d/debian-archive-wheezy-automatic.gpg
          -rw------- 1 root root 2851 2019-02-24 12:00:10 /etc/apt/trusted.gpg.d/debian-archive-wheezy-stable.gpg
          -rw------- 1 root root 357 2019-02-24 12:00:10 /etc/apt/trusted.gpg.d/djcj-hybrid.gpg
          $ sudo chmod -v a+r /etc/apt/trusted.gpg.d/*.gpg
          mode of ‘/etc/apt/trusted.gpg.d/andykimpe-gparted.gpg’ changed from 0600 (rw-------) to 0644 (rw-r--r--)
          mode of ‘/etc/apt/trusted.gpg.d/brightbox-ruby-ng.gpg’ changed from 0600 (rw-------) to 0644 (rw-r--r--)
          mode of ‘/etc/apt/trusted.gpg.d/cairo-dock-team-ppa.gpg’ changed from 0600 (rw-------) to 0644 (rw-r--r--)
          mode of ‘/etc/apt/trusted.gpg.d/centrych-updates.gpg’ changed from 0600 (rw-------) to 0644 (rw-r--r--)
          mode of ‘/etc/apt/trusted.gpg.d/debian-archive-squeeze-automatic.gpg’ changed from 0600 (rw-------) to 0644 (rw-r--r--)
          mode of ‘/etc/apt/trusted.gpg.d/debian-archive-wheezy-automatic.gpg’ changed from 0600 (rw-------) to 0644 (rw-r--r--)
          mode of ‘/etc/apt/trusted.gpg.d/debian-archive-wheezy-stable.gpg’ changed from 0600 (rw-------) to 0644 (rw-r--r--)
          mode of ‘/etc/apt/trusted.gpg.d/djcj-hybrid.gpg’ changed from 0600 (rw-------) to 0644 (rw-r--r--)
          ...
          $ apt-key list | grep gpg$
          /etc/apt/trusted.gpg
          /etc/apt/trusted.gpg.d/andykimpe-gparted.gpg
          /etc/apt/trusted.gpg.d/brightbox-ruby-ng.gpg
          /etc/apt/trusted.gpg.d/cairo-dock-team-ppa.gpg
          /etc/apt/trusted.gpg.d/centrych-updates.gpg
          /etc/apt/trusted.gpg.d/debian-archive-squeeze-automatic.gpg
          /etc/apt/trusted.gpg.d/debian-archive-wheezy-automatic.gpg
          /etc/apt/trusted.gpg.d/debian-archive-wheezy-stable.gpg
          /etc/apt/trusted.gpg.d/djcj-hybrid.gpg
          ...
          $ sudo apt update
          ...
          Fetched 143 kB in 26s (5 487 B/s)
          W: GPG error: http://liveusb.info all Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 4E940D7FDD7FB8CC
          W: GPG error: http://kovacsoltvideo.hu ./ Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY ADC80AAEABE7778C
          W: GPG error: http://ppa.launchpad.net trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 3BDAAC08614C4B38
          W: GPG error: http://ppa.launchpad.net trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 69AD89E0EC179BCC
          W: GPG error: http://ppa.launchpad.net trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A7E13D78E4A4F4F4
          W: GPG error: http://ppa.launchpad.net trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY FE7385FFAC9B079A
          W: GPG error: http://ppa.launchpad.net trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6D975C4791E7EE5E
          W: GPG error: http://ppa.launchpad.net trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 4C1CBE14852541CB
          W: GPG error: http://ppa.launchpad.net trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY EBB4CCF6A72BC110
          W: GPG error: http://ppa.launchpad.net trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 03647209B58A653A
          W: GPG error: http://ppa.launchpad.net trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 03647209B58A653A
          W: GPG error: http://ppa.launchpad.net trusty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY BE362D6D32DE30FB
          W: GPG error: http://ppa.launchpad.net trusty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY BC3E0682A5A1D6B2
          W: GPG error: http://ppa.launchpad.net trusty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 60ED5CE429FFDC52
          W: GPG error: http://ppa.launchpad.net trusty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 55E2097C08E6D617
          W: Failed to fetch http://build.openvpn.net/debian/openvpn/stable/dists/trusty/main/binary-i386/Packages 403 Forbidden [IP: 146.112.61.106 80]

          E: Some index files failed to download. They have been ignored, or old ones used instead.


          Then I looped over the missing keys with the command sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys $key and now it is finally solved.






          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',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            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%2f1120843%2fgpg-dont-know-invalid-packet-ctb-2d%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            1














            It was a permission issue :





            $ ll -d /etc/apt/trusted.gpg /etc/apt/trusted.gpg.d /etc/apt/trusted.gpg.d/*.gpg | head
            -rw-r--r-- 1 root root 12335 2019-02-24 11:31:28 /etc/apt/trusted.gpg
            drwxr-xr-x 2 root root 4096 2019-02-24 12:00:11 /etc/apt/trusted.gpg.d/
            -rw------- 1 root root 1132 2019-02-24 12:00:09 /etc/apt/trusted.gpg.d/andykimpe-gparted.gpg
            -rw------- 1 root root 362 2019-02-24 12:00:09 /etc/apt/trusted.gpg.d/brightbox-ruby-ng.gpg
            -rw------- 1 root root 353 2019-02-24 12:00:09 /etc/apt/trusted.gpg.d/cairo-dock-team-ppa.gpg
            -rw------- 1 root root 364 2019-02-24 12:00:09 /etc/apt/trusted.gpg.d/centrych-updates.gpg
            -rw------- 1 root root 9178 2019-02-24 12:00:10 /etc/apt/trusted.gpg.d/debian-archive-squeeze-automatic.gpg
            -rw------- 1 root root 3780 2019-02-24 12:00:10 /etc/apt/trusted.gpg.d/debian-archive-wheezy-automatic.gpg
            -rw------- 1 root root 2851 2019-02-24 12:00:10 /etc/apt/trusted.gpg.d/debian-archive-wheezy-stable.gpg
            -rw------- 1 root root 357 2019-02-24 12:00:10 /etc/apt/trusted.gpg.d/djcj-hybrid.gpg
            $ sudo chmod -v a+r /etc/apt/trusted.gpg.d/*.gpg
            mode of ‘/etc/apt/trusted.gpg.d/andykimpe-gparted.gpg’ changed from 0600 (rw-------) to 0644 (rw-r--r--)
            mode of ‘/etc/apt/trusted.gpg.d/brightbox-ruby-ng.gpg’ changed from 0600 (rw-------) to 0644 (rw-r--r--)
            mode of ‘/etc/apt/trusted.gpg.d/cairo-dock-team-ppa.gpg’ changed from 0600 (rw-------) to 0644 (rw-r--r--)
            mode of ‘/etc/apt/trusted.gpg.d/centrych-updates.gpg’ changed from 0600 (rw-------) to 0644 (rw-r--r--)
            mode of ‘/etc/apt/trusted.gpg.d/debian-archive-squeeze-automatic.gpg’ changed from 0600 (rw-------) to 0644 (rw-r--r--)
            mode of ‘/etc/apt/trusted.gpg.d/debian-archive-wheezy-automatic.gpg’ changed from 0600 (rw-------) to 0644 (rw-r--r--)
            mode of ‘/etc/apt/trusted.gpg.d/debian-archive-wheezy-stable.gpg’ changed from 0600 (rw-------) to 0644 (rw-r--r--)
            mode of ‘/etc/apt/trusted.gpg.d/djcj-hybrid.gpg’ changed from 0600 (rw-------) to 0644 (rw-r--r--)
            ...
            $ apt-key list | grep gpg$
            /etc/apt/trusted.gpg
            /etc/apt/trusted.gpg.d/andykimpe-gparted.gpg
            /etc/apt/trusted.gpg.d/brightbox-ruby-ng.gpg
            /etc/apt/trusted.gpg.d/cairo-dock-team-ppa.gpg
            /etc/apt/trusted.gpg.d/centrych-updates.gpg
            /etc/apt/trusted.gpg.d/debian-archive-squeeze-automatic.gpg
            /etc/apt/trusted.gpg.d/debian-archive-wheezy-automatic.gpg
            /etc/apt/trusted.gpg.d/debian-archive-wheezy-stable.gpg
            /etc/apt/trusted.gpg.d/djcj-hybrid.gpg
            ...
            $ sudo apt update
            ...
            Fetched 143 kB in 26s (5 487 B/s)
            W: GPG error: http://liveusb.info all Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 4E940D7FDD7FB8CC
            W: GPG error: http://kovacsoltvideo.hu ./ Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY ADC80AAEABE7778C
            W: GPG error: http://ppa.launchpad.net trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 3BDAAC08614C4B38
            W: GPG error: http://ppa.launchpad.net trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 69AD89E0EC179BCC
            W: GPG error: http://ppa.launchpad.net trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A7E13D78E4A4F4F4
            W: GPG error: http://ppa.launchpad.net trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY FE7385FFAC9B079A
            W: GPG error: http://ppa.launchpad.net trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6D975C4791E7EE5E
            W: GPG error: http://ppa.launchpad.net trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 4C1CBE14852541CB
            W: GPG error: http://ppa.launchpad.net trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY EBB4CCF6A72BC110
            W: GPG error: http://ppa.launchpad.net trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 03647209B58A653A
            W: GPG error: http://ppa.launchpad.net trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 03647209B58A653A
            W: GPG error: http://ppa.launchpad.net trusty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY BE362D6D32DE30FB
            W: GPG error: http://ppa.launchpad.net trusty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY BC3E0682A5A1D6B2
            W: GPG error: http://ppa.launchpad.net trusty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 60ED5CE429FFDC52
            W: GPG error: http://ppa.launchpad.net trusty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 55E2097C08E6D617
            W: Failed to fetch http://build.openvpn.net/debian/openvpn/stable/dists/trusty/main/binary-i386/Packages 403 Forbidden [IP: 146.112.61.106 80]

            E: Some index files failed to download. They have been ignored, or old ones used instead.


            Then I looped over the missing keys with the command sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys $key and now it is finally solved.






            share|improve this answer






























              1














              It was a permission issue :





              $ ll -d /etc/apt/trusted.gpg /etc/apt/trusted.gpg.d /etc/apt/trusted.gpg.d/*.gpg | head
              -rw-r--r-- 1 root root 12335 2019-02-24 11:31:28 /etc/apt/trusted.gpg
              drwxr-xr-x 2 root root 4096 2019-02-24 12:00:11 /etc/apt/trusted.gpg.d/
              -rw------- 1 root root 1132 2019-02-24 12:00:09 /etc/apt/trusted.gpg.d/andykimpe-gparted.gpg
              -rw------- 1 root root 362 2019-02-24 12:00:09 /etc/apt/trusted.gpg.d/brightbox-ruby-ng.gpg
              -rw------- 1 root root 353 2019-02-24 12:00:09 /etc/apt/trusted.gpg.d/cairo-dock-team-ppa.gpg
              -rw------- 1 root root 364 2019-02-24 12:00:09 /etc/apt/trusted.gpg.d/centrych-updates.gpg
              -rw------- 1 root root 9178 2019-02-24 12:00:10 /etc/apt/trusted.gpg.d/debian-archive-squeeze-automatic.gpg
              -rw------- 1 root root 3780 2019-02-24 12:00:10 /etc/apt/trusted.gpg.d/debian-archive-wheezy-automatic.gpg
              -rw------- 1 root root 2851 2019-02-24 12:00:10 /etc/apt/trusted.gpg.d/debian-archive-wheezy-stable.gpg
              -rw------- 1 root root 357 2019-02-24 12:00:10 /etc/apt/trusted.gpg.d/djcj-hybrid.gpg
              $ sudo chmod -v a+r /etc/apt/trusted.gpg.d/*.gpg
              mode of ‘/etc/apt/trusted.gpg.d/andykimpe-gparted.gpg’ changed from 0600 (rw-------) to 0644 (rw-r--r--)
              mode of ‘/etc/apt/trusted.gpg.d/brightbox-ruby-ng.gpg’ changed from 0600 (rw-------) to 0644 (rw-r--r--)
              mode of ‘/etc/apt/trusted.gpg.d/cairo-dock-team-ppa.gpg’ changed from 0600 (rw-------) to 0644 (rw-r--r--)
              mode of ‘/etc/apt/trusted.gpg.d/centrych-updates.gpg’ changed from 0600 (rw-------) to 0644 (rw-r--r--)
              mode of ‘/etc/apt/trusted.gpg.d/debian-archive-squeeze-automatic.gpg’ changed from 0600 (rw-------) to 0644 (rw-r--r--)
              mode of ‘/etc/apt/trusted.gpg.d/debian-archive-wheezy-automatic.gpg’ changed from 0600 (rw-------) to 0644 (rw-r--r--)
              mode of ‘/etc/apt/trusted.gpg.d/debian-archive-wheezy-stable.gpg’ changed from 0600 (rw-------) to 0644 (rw-r--r--)
              mode of ‘/etc/apt/trusted.gpg.d/djcj-hybrid.gpg’ changed from 0600 (rw-------) to 0644 (rw-r--r--)
              ...
              $ apt-key list | grep gpg$
              /etc/apt/trusted.gpg
              /etc/apt/trusted.gpg.d/andykimpe-gparted.gpg
              /etc/apt/trusted.gpg.d/brightbox-ruby-ng.gpg
              /etc/apt/trusted.gpg.d/cairo-dock-team-ppa.gpg
              /etc/apt/trusted.gpg.d/centrych-updates.gpg
              /etc/apt/trusted.gpg.d/debian-archive-squeeze-automatic.gpg
              /etc/apt/trusted.gpg.d/debian-archive-wheezy-automatic.gpg
              /etc/apt/trusted.gpg.d/debian-archive-wheezy-stable.gpg
              /etc/apt/trusted.gpg.d/djcj-hybrid.gpg
              ...
              $ sudo apt update
              ...
              Fetched 143 kB in 26s (5 487 B/s)
              W: GPG error: http://liveusb.info all Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 4E940D7FDD7FB8CC
              W: GPG error: http://kovacsoltvideo.hu ./ Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY ADC80AAEABE7778C
              W: GPG error: http://ppa.launchpad.net trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 3BDAAC08614C4B38
              W: GPG error: http://ppa.launchpad.net trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 69AD89E0EC179BCC
              W: GPG error: http://ppa.launchpad.net trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A7E13D78E4A4F4F4
              W: GPG error: http://ppa.launchpad.net trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY FE7385FFAC9B079A
              W: GPG error: http://ppa.launchpad.net trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6D975C4791E7EE5E
              W: GPG error: http://ppa.launchpad.net trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 4C1CBE14852541CB
              W: GPG error: http://ppa.launchpad.net trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY EBB4CCF6A72BC110
              W: GPG error: http://ppa.launchpad.net trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 03647209B58A653A
              W: GPG error: http://ppa.launchpad.net trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 03647209B58A653A
              W: GPG error: http://ppa.launchpad.net trusty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY BE362D6D32DE30FB
              W: GPG error: http://ppa.launchpad.net trusty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY BC3E0682A5A1D6B2
              W: GPG error: http://ppa.launchpad.net trusty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 60ED5CE429FFDC52
              W: GPG error: http://ppa.launchpad.net trusty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 55E2097C08E6D617
              W: Failed to fetch http://build.openvpn.net/debian/openvpn/stable/dists/trusty/main/binary-i386/Packages 403 Forbidden [IP: 146.112.61.106 80]

              E: Some index files failed to download. They have been ignored, or old ones used instead.


              Then I looped over the missing keys with the command sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys $key and now it is finally solved.






              share|improve this answer




























                1












                1








                1







                It was a permission issue :





                $ ll -d /etc/apt/trusted.gpg /etc/apt/trusted.gpg.d /etc/apt/trusted.gpg.d/*.gpg | head
                -rw-r--r-- 1 root root 12335 2019-02-24 11:31:28 /etc/apt/trusted.gpg
                drwxr-xr-x 2 root root 4096 2019-02-24 12:00:11 /etc/apt/trusted.gpg.d/
                -rw------- 1 root root 1132 2019-02-24 12:00:09 /etc/apt/trusted.gpg.d/andykimpe-gparted.gpg
                -rw------- 1 root root 362 2019-02-24 12:00:09 /etc/apt/trusted.gpg.d/brightbox-ruby-ng.gpg
                -rw------- 1 root root 353 2019-02-24 12:00:09 /etc/apt/trusted.gpg.d/cairo-dock-team-ppa.gpg
                -rw------- 1 root root 364 2019-02-24 12:00:09 /etc/apt/trusted.gpg.d/centrych-updates.gpg
                -rw------- 1 root root 9178 2019-02-24 12:00:10 /etc/apt/trusted.gpg.d/debian-archive-squeeze-automatic.gpg
                -rw------- 1 root root 3780 2019-02-24 12:00:10 /etc/apt/trusted.gpg.d/debian-archive-wheezy-automatic.gpg
                -rw------- 1 root root 2851 2019-02-24 12:00:10 /etc/apt/trusted.gpg.d/debian-archive-wheezy-stable.gpg
                -rw------- 1 root root 357 2019-02-24 12:00:10 /etc/apt/trusted.gpg.d/djcj-hybrid.gpg
                $ sudo chmod -v a+r /etc/apt/trusted.gpg.d/*.gpg
                mode of ‘/etc/apt/trusted.gpg.d/andykimpe-gparted.gpg’ changed from 0600 (rw-------) to 0644 (rw-r--r--)
                mode of ‘/etc/apt/trusted.gpg.d/brightbox-ruby-ng.gpg’ changed from 0600 (rw-------) to 0644 (rw-r--r--)
                mode of ‘/etc/apt/trusted.gpg.d/cairo-dock-team-ppa.gpg’ changed from 0600 (rw-------) to 0644 (rw-r--r--)
                mode of ‘/etc/apt/trusted.gpg.d/centrych-updates.gpg’ changed from 0600 (rw-------) to 0644 (rw-r--r--)
                mode of ‘/etc/apt/trusted.gpg.d/debian-archive-squeeze-automatic.gpg’ changed from 0600 (rw-------) to 0644 (rw-r--r--)
                mode of ‘/etc/apt/trusted.gpg.d/debian-archive-wheezy-automatic.gpg’ changed from 0600 (rw-------) to 0644 (rw-r--r--)
                mode of ‘/etc/apt/trusted.gpg.d/debian-archive-wheezy-stable.gpg’ changed from 0600 (rw-------) to 0644 (rw-r--r--)
                mode of ‘/etc/apt/trusted.gpg.d/djcj-hybrid.gpg’ changed from 0600 (rw-------) to 0644 (rw-r--r--)
                ...
                $ apt-key list | grep gpg$
                /etc/apt/trusted.gpg
                /etc/apt/trusted.gpg.d/andykimpe-gparted.gpg
                /etc/apt/trusted.gpg.d/brightbox-ruby-ng.gpg
                /etc/apt/trusted.gpg.d/cairo-dock-team-ppa.gpg
                /etc/apt/trusted.gpg.d/centrych-updates.gpg
                /etc/apt/trusted.gpg.d/debian-archive-squeeze-automatic.gpg
                /etc/apt/trusted.gpg.d/debian-archive-wheezy-automatic.gpg
                /etc/apt/trusted.gpg.d/debian-archive-wheezy-stable.gpg
                /etc/apt/trusted.gpg.d/djcj-hybrid.gpg
                ...
                $ sudo apt update
                ...
                Fetched 143 kB in 26s (5 487 B/s)
                W: GPG error: http://liveusb.info all Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 4E940D7FDD7FB8CC
                W: GPG error: http://kovacsoltvideo.hu ./ Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY ADC80AAEABE7778C
                W: GPG error: http://ppa.launchpad.net trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 3BDAAC08614C4B38
                W: GPG error: http://ppa.launchpad.net trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 69AD89E0EC179BCC
                W: GPG error: http://ppa.launchpad.net trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A7E13D78E4A4F4F4
                W: GPG error: http://ppa.launchpad.net trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY FE7385FFAC9B079A
                W: GPG error: http://ppa.launchpad.net trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6D975C4791E7EE5E
                W: GPG error: http://ppa.launchpad.net trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 4C1CBE14852541CB
                W: GPG error: http://ppa.launchpad.net trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY EBB4CCF6A72BC110
                W: GPG error: http://ppa.launchpad.net trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 03647209B58A653A
                W: GPG error: http://ppa.launchpad.net trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 03647209B58A653A
                W: GPG error: http://ppa.launchpad.net trusty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY BE362D6D32DE30FB
                W: GPG error: http://ppa.launchpad.net trusty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY BC3E0682A5A1D6B2
                W: GPG error: http://ppa.launchpad.net trusty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 60ED5CE429FFDC52
                W: GPG error: http://ppa.launchpad.net trusty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 55E2097C08E6D617
                W: Failed to fetch http://build.openvpn.net/debian/openvpn/stable/dists/trusty/main/binary-i386/Packages 403 Forbidden [IP: 146.112.61.106 80]

                E: Some index files failed to download. They have been ignored, or old ones used instead.


                Then I looped over the missing keys with the command sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys $key and now it is finally solved.






                share|improve this answer















                It was a permission issue :





                $ ll -d /etc/apt/trusted.gpg /etc/apt/trusted.gpg.d /etc/apt/trusted.gpg.d/*.gpg | head
                -rw-r--r-- 1 root root 12335 2019-02-24 11:31:28 /etc/apt/trusted.gpg
                drwxr-xr-x 2 root root 4096 2019-02-24 12:00:11 /etc/apt/trusted.gpg.d/
                -rw------- 1 root root 1132 2019-02-24 12:00:09 /etc/apt/trusted.gpg.d/andykimpe-gparted.gpg
                -rw------- 1 root root 362 2019-02-24 12:00:09 /etc/apt/trusted.gpg.d/brightbox-ruby-ng.gpg
                -rw------- 1 root root 353 2019-02-24 12:00:09 /etc/apt/trusted.gpg.d/cairo-dock-team-ppa.gpg
                -rw------- 1 root root 364 2019-02-24 12:00:09 /etc/apt/trusted.gpg.d/centrych-updates.gpg
                -rw------- 1 root root 9178 2019-02-24 12:00:10 /etc/apt/trusted.gpg.d/debian-archive-squeeze-automatic.gpg
                -rw------- 1 root root 3780 2019-02-24 12:00:10 /etc/apt/trusted.gpg.d/debian-archive-wheezy-automatic.gpg
                -rw------- 1 root root 2851 2019-02-24 12:00:10 /etc/apt/trusted.gpg.d/debian-archive-wheezy-stable.gpg
                -rw------- 1 root root 357 2019-02-24 12:00:10 /etc/apt/trusted.gpg.d/djcj-hybrid.gpg
                $ sudo chmod -v a+r /etc/apt/trusted.gpg.d/*.gpg
                mode of ‘/etc/apt/trusted.gpg.d/andykimpe-gparted.gpg’ changed from 0600 (rw-------) to 0644 (rw-r--r--)
                mode of ‘/etc/apt/trusted.gpg.d/brightbox-ruby-ng.gpg’ changed from 0600 (rw-------) to 0644 (rw-r--r--)
                mode of ‘/etc/apt/trusted.gpg.d/cairo-dock-team-ppa.gpg’ changed from 0600 (rw-------) to 0644 (rw-r--r--)
                mode of ‘/etc/apt/trusted.gpg.d/centrych-updates.gpg’ changed from 0600 (rw-------) to 0644 (rw-r--r--)
                mode of ‘/etc/apt/trusted.gpg.d/debian-archive-squeeze-automatic.gpg’ changed from 0600 (rw-------) to 0644 (rw-r--r--)
                mode of ‘/etc/apt/trusted.gpg.d/debian-archive-wheezy-automatic.gpg’ changed from 0600 (rw-------) to 0644 (rw-r--r--)
                mode of ‘/etc/apt/trusted.gpg.d/debian-archive-wheezy-stable.gpg’ changed from 0600 (rw-------) to 0644 (rw-r--r--)
                mode of ‘/etc/apt/trusted.gpg.d/djcj-hybrid.gpg’ changed from 0600 (rw-------) to 0644 (rw-r--r--)
                ...
                $ apt-key list | grep gpg$
                /etc/apt/trusted.gpg
                /etc/apt/trusted.gpg.d/andykimpe-gparted.gpg
                /etc/apt/trusted.gpg.d/brightbox-ruby-ng.gpg
                /etc/apt/trusted.gpg.d/cairo-dock-team-ppa.gpg
                /etc/apt/trusted.gpg.d/centrych-updates.gpg
                /etc/apt/trusted.gpg.d/debian-archive-squeeze-automatic.gpg
                /etc/apt/trusted.gpg.d/debian-archive-wheezy-automatic.gpg
                /etc/apt/trusted.gpg.d/debian-archive-wheezy-stable.gpg
                /etc/apt/trusted.gpg.d/djcj-hybrid.gpg
                ...
                $ sudo apt update
                ...
                Fetched 143 kB in 26s (5 487 B/s)
                W: GPG error: http://liveusb.info all Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 4E940D7FDD7FB8CC
                W: GPG error: http://kovacsoltvideo.hu ./ Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY ADC80AAEABE7778C
                W: GPG error: http://ppa.launchpad.net trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 3BDAAC08614C4B38
                W: GPG error: http://ppa.launchpad.net trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 69AD89E0EC179BCC
                W: GPG error: http://ppa.launchpad.net trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A7E13D78E4A4F4F4
                W: GPG error: http://ppa.launchpad.net trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY FE7385FFAC9B079A
                W: GPG error: http://ppa.launchpad.net trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6D975C4791E7EE5E
                W: GPG error: http://ppa.launchpad.net trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 4C1CBE14852541CB
                W: GPG error: http://ppa.launchpad.net trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY EBB4CCF6A72BC110
                W: GPG error: http://ppa.launchpad.net trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 03647209B58A653A
                W: GPG error: http://ppa.launchpad.net trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 03647209B58A653A
                W: GPG error: http://ppa.launchpad.net trusty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY BE362D6D32DE30FB
                W: GPG error: http://ppa.launchpad.net trusty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY BC3E0682A5A1D6B2
                W: GPG error: http://ppa.launchpad.net trusty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 60ED5CE429FFDC52
                W: GPG error: http://ppa.launchpad.net trusty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 55E2097C08E6D617
                W: Failed to fetch http://build.openvpn.net/debian/openvpn/stable/dists/trusty/main/binary-i386/Packages 403 Forbidden [IP: 146.112.61.106 80]

                E: Some index files failed to download. They have been ignored, or old ones used instead.


                Then I looped over the missing keys with the command sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys $key and now it is finally solved.







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited 3 hours ago

























                answered 5 hours ago









                SebMaSebMa

                263210




                263210






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Ask Ubuntu!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1120843%2fgpg-dont-know-invalid-packet-ctb-2d%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Why do type traits not work with types in namespace scope?What are POD types in C++?Why can templates only be...

                    Will tsunami waves travel forever if there was no land?Why do tsunami waves begin with the water flowing away...

                    Simple Scan not detecting my scanner (Brother DCP-7055W)Brother MFC-L2700DW printer can print, can't...