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

apt provider does not work with local packages

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • None
    • PUP 7.4.0, PUP 6.21.0
    • None
    • Night's Watch
    • 2
    • NW - 2021-02-03
    • Needs Assessment
    • Enhancement
    • Hide
      after this commit apt package provider allows you to install packages from local file using source parameter:
      ```
      package { 'helloworld':
          source => '/tmp/helloworld_1.0-1.deb'
          ensure => installed,
      }
      ```
      Show
      after this commit apt package provider allows you to install packages from local file using source parameter: ``` package { 'helloworld':     source => '/tmp/helloworld_1.0-1.deb'     ensure => installed, } ```
    • Needs Assessment

    Description

      Puppet Version: 6.19
      Puppet Server Version: n/a
      OS Name/Version: Debian/Ubuntu

      PUP-6631 indirectly broke the ability to manage local packages with the apt provider. This case appears to be supported by apt, so we should aim to fix this regression.

      Desired Behavior:

      Applying a resource like the following should work:

      package { '/path/to/package.deb': 
          ensure => installed,
      }
      

      Actual Behavior:

      Applying the above resource results in the package being installed, but errors on the execution of apt-mark, marking the run as failed:

      Could not evaluate: Execution of '/usr/bin/apt-mark manual /path/to/package.deb' returned 100: E: Unable to locate package /path/to/package.deb
      

      Please take a moment and attach any relevant log output and/or manifests. This will help us immensely when troubleshooting the issue.

      Attachments

        Issue Links

          Activity

            People

              ciprian.badescu Ciprian Badescu
              gabriel.nagy Gabriel Nagy
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support