Uploaded image for project: 'Modules'
  1. Modules
  2. MODULES-8577

APT 2.4 for Ubuntu - bug in module

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: apt
    • Labels:
    • Template:
      MODULES Bug Template
    • Method Found:
      Customer Feedback
    • CS Priority:
      Normal
    • Zendesk Ticket IDs:
      33553
    • Zendesk Ticket Count:
      1
    • QA Risk Assessment:
      Needs Assessment

      Description

      Basic Info
      Module Version: 2.4.0
      Puppet Version: 3, 5
      OS Name/Version: Ubuntu 18.04

      Patch/workaround is needed to get the above to work:

      Our patch is a change at this line:
       
      https://github.com/puppetlabs/puppetlabs-apt/blob/2.4.0/lib/puppet/provider/apt_key/apt_key.rb#L32
       
      And that’s the detail of the change:
       
      — a/lib/puppet/provider/apt_key/apt_key.rb
      +++ b/lib/puppet/provider/apt_key/apt_key.rb
      @@ -31,6 +31,8 @@ Puppet::Type.type(:apt_key).provide(:apt_key) do
           key_array = key_output.split("\n").collect do |line|
             if line.start_with?('pub')
                 pub_line = line
      +      elsif line.start_with?('sub')
      +          pub_line = line
             elsif line.start_with?('fpr')
                 fpr_line = line
             end
       
       
      That line of code parses the following output from the apt-key command:
       

      1. apt-key adv --list-keys --with-colons --fingerprint --fixed-list-mode
        Executing: /tmp/apt-key-gpghome.euxB3d446o/gpg.1.sh --list-keys --with-colons --fingerprint --fixed-list-mode
        tru:t:1:1548080280:0:3:1:5
        pub::2048:1:1F3045A5DF7587C3:1466588195:1624268195:::::scESC::::::23::0:
        fpr:::::::::D4040146BE3972509FD57FC71F3045A5DF7587C3:
        uid:-::::1466588195::BC2494D254070E94560D56FCA83F27D04C0BADAE::Skype Linux Client Repository <se-um@microsoft.com>::::::::::0:
        sub:-:2048:1:6B4A0000A4EBB320:1466588195:1624268195:::::e::::::23:
        fpr:::::::::F60A017E3CA5558FAF2439556B4A0000A4EBB320:
        pub::4096:1:3B4FE6ACC0B21F32:1336770936::::::scSC::::::23::0:
        fpr:::::::::790BC7277767219C42C86F933B4FE6ACC0B21F32:
        uid:-::::1336770936::B7A02867A0C1D32B594B36C00E20C8C57E397748::Ubuntu Archive Automatic Signing Key (2012) <ftpmaster@ubuntu.com>::::::::::0:
        pub::4096:1:D94AA3F0EFE21092:1336774248::::::scSC::::::23::0:
        fpr:::::::::843938DF228D22F7B3742BC0D94AA3F0EFE21092:
        uid:-::::1336774248::77355A0B96082B2694009775B6490C605BD16B6F::Ubuntu CD Image Automatic Signing Key (2012) <cdimage@ubuntu.com>::::::::::0:
        pub::4096:1:871920D1991BC93C:1537196506::::::scSC::::::23::0:
        fpr:::::::::F6ECB3762474EDA9D21B7022871920D1991BC93C:
        uid:-::::1537196506::BE438F08F546424C0EA810FD722053597EB5127B::Ubuntu Archive Automatic Signing Key (2018) <ftpmaster@ubuntu.com>::::::::::0:
         
        If you look into the Skype Linux Client Repository line, the next line containing its fingerprint starts with the string “sub” instead of “pub”, and this confuses apt::key.
         
        I am not sure yet where the problem lies between apt-key (apt) and gpg: the first is a wrapper of the latter.'

        Attachments

          Activity

            People

            Assignee:
            patrick.grant Patrick Grant
            Reporter:
            nicholas.moore Nicholas Moore
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support