Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-9975

Regression: Unable to install g++ package using dpkg provider

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PUP 6.8.1
    • Component/s: Types and Providers
    • Labels:
      None
    • Template:
      PUP Bug Template
    • Method Found:
      Needs Assessment
    • Release Notes:
      Not Needed
    • Release Notes Summary:
      This regression was fixed in PUP-9974, which reverted the change made in 6.8.0
    • QA Risk Assessment:
      Needs Assessment

      Description

      Puppet Version: 6.8.0
      Puppet Server Version: NA
      OS Name/Version: Ubuntu 16.04 and Ubuntu 18.04

      Desired Behavior:

      Install "g++" package using dpkg provider

      Actual Behavior:

      I get this message:

       

      Info: Package g++ is virtual, defaulting to binutils
      

      If I do simple "apt-get install g+", that works fine but unable to do that with changes made to dpkg provider in 6.8.0. I think the "+" sign is breaking the parsing added here:

       

      https://github.com/puppetlabs/puppet/blob/master/lib/puppet/provider/package/dpkg.rb#L126

       

      The issue was introduced in PUP-9824 I think. If I run the dpkg command being used the first line that contains a "g" is "binutils" so I think what's getting matched is just "g" and not "g++".

       

      Reproduce:

      Install Puppet on Ubuntu 16.04 or Ubuntu 18.04 and try to install g++

       

      puppet resource package g++ ensure=installed
      

       

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              treydock Trey Dockendorf
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support