Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Error: Could not autoload puppet/provider/package/pear

Hi

i want to bootstrap my servers with the 14.04 Ubuntu version but i can't seem to get puppet working:

root@test:~# puppet agent --test Warning: Setting templatedir is deprecated. See http://links.puppetlabs.com/env-settings-deprecations (at /usr/lib/ruby/vendor_ruby/puppet/settings.rb:1071:in `each') Info: Retrieving plugin Info: Loading facts in /var/lib/puppet/lib/facter/root_home.rb Info: Loading facts in /var/lib/puppet/lib/facter/facter_dot_d.rb Info: Loading facts in /var/lib/puppet/lib/facter/puppet_vardir.rb Info: Loading facts in /var/lib/puppet/lib/facter/concat_basedir.rb Info: Loading facts in /var/lib/puppet/lib/facter/pe_version.rb /var/lib/puppet/lib/puppet/provider/package/pear.rb:70: warning: else without rescue is useless Error: Could not autoload puppet/provider/package/pear: /var/lib/puppet/lib/puppet/provider/package/pear.rb:57: syntax error, unexpected ':', expecting keyword_then or ',' or ';' or '\n' when /^INSTALLED/: return nil ^ /var/lib/puppet/lib/puppet/provider/package/pear.rb:58: syntax error, unexpected keyword_when, expecting keyword_end when /^=/: return nil ^ /var/lib/puppet/lib/puppet/provider/package/pear.rb:58: syntax error, unexpected ':', expecting keyword_end when /^=/: return nil ^ /var/lib/puppet/lib/puppet/provider/package/pear.rb:59: syntax error, unexpected keyword_when, expecting keyword_end when /^PACKAGE/: return nil ^ /var/lib/puppet/lib/puppet/provider/package/pear.rb:59: syntax error, unexpected ':', expecting keyword_end when /^PACKAGE/: return nil ^ /var/lib/puppet/lib/puppet/provider/package/pear.rb:60: syntax error, unexpected keyword_when, expecting keyword_end when /^(\S+)\s+([.\d]+)\s+\S+\n/ ^ /var/lib/puppet/lib/puppet/provider/package/pear.rb:123: syntax error, unexpected keyword_end, expecting $end Error: Could not autoload puppet/type/package: Could not autoload puppet/provider/package/pear: /var/lib/puppet/lib/puppet/provider/package/pear.rb:57: syntax error, unexpected ':', expecting keyword_then or ',' or ';' or '\n' when /^INSTALLED/: return nil ^ /var/lib/puppet/lib/puppet/provider/package/pear.rb:58: syntax error, unexpected keyword_when, expecting keyword_end when /^=/: return nil ^ /var/lib/puppet/lib/puppet/provider/package/pear.rb:58: syntax error, unexpected ':', expecting keyword_end when /^=/: return nil ^ /var/lib/puppet/lib/puppet/provider/package/pear.rb:59: syntax error, unexpected keyword_when, expecting keyword_end when /^PACKAGE/: return nil ^ /var/lib/puppet/lib/puppet/provider/package/pear.rb:59: syntax error, unexpected ':', expecting keyword_end when /^PACKAGE/: return nil ^ /var/lib/puppet/lib/puppet/provider/package/pear.rb:60: syntax error, unexpected keyword_when, expecting keyword_end when /^(\S+)\s+([.\d]+)\s+\S+\n/ ^ /var/lib/puppet/lib/puppet/provider/package/pear.rb:123: syntax error, unexpected keyword_end, expecting $end Error: Could not retrieve catalog from remote server: Could not intern from text/pson: Could not autoload puppet/type/package: Could not autoload puppet/provider/package/pear: /var/lib/puppet/lib/puppet/provider/package/pear.rb:57: syntax error, unexpected ':', expecting keyword_then or ',' or ';' or '\n' when /^INSTALLED/: return nil ^ /var/lib/puppet/lib/puppet/provider/package/pear.rb:58: syntax error, unexpected keyword_when, expecting keyword_end when /^=/: return nil ^ /var/lib/puppet/lib/puppet/provider/package/pear.rb:58: syntax error, unexpected ':', expecting keyword_end when /^=/: return nil ^ /var/lib/puppet/lib/puppet/provider/package/pear.rb:59: syntax error, unexpected keyword_when, expecting keyword_end when /^PACKAGE/: return nil ^ /var/lib/puppet/lib/puppet/provider/package/pear.rb:59: syntax error, unexpected ':', expecting keyword_end when /^PACKAGE/: return nil ^ /var/lib/puppet/lib/puppet/provider/package/pear.rb:60: syntax error, unexpected keyword_when, expecting keyword_end when /^(\S+)\s+([.\d]+)\s+\S+\n/ ^ /var/lib/puppet/lib/puppet/provider/package/pear.rb:123: syntax error, unexpected keyword_end, expecting $end Warning: Not using cache on failed catalog Error: Could not retrieve catalog; skipping run

Error: Could not autoload puppet/provider/package/pear

Hi

i I want to bootstrap my servers with the 14.04 Ubuntu version but i I can't seem to get puppet working:

root@test:~# puppet agent --test
Warning: Setting templatedir is deprecated. See http://links.puppetlabs.com/env-settings-deprecations
   (at /usr/lib/ruby/vendor_ruby/puppet/settings.rb:1071:in `each')
Info: Retrieving plugin
Info: Loading facts in /var/lib/puppet/lib/facter/root_home.rb
Info: Loading facts in /var/lib/puppet/lib/facter/facter_dot_d.rb
Info: Loading facts in /var/lib/puppet/lib/facter/puppet_vardir.rb
Info: Loading facts in /var/lib/puppet/lib/facter/concat_basedir.rb
Info: Loading facts in /var/lib/puppet/lib/facter/pe_version.rb
/var/lib/puppet/lib/puppet/provider/package/pear.rb:70: warning: else without rescue is useless
Error: Could not autoload puppet/provider/package/pear: /var/lib/puppet/lib/puppet/provider/package/pear.rb:57: syntax error, unexpected ':', expecting keyword_then or ',' or ';' or '\n'
    when /^INSTALLED/: return nil
                      ^
/var/lib/puppet/lib/puppet/provider/package/pear.rb:58: syntax error, unexpected keyword_when, expecting keyword_end
    when /^=/: return nil
        ^
/var/lib/puppet/lib/puppet/provider/package/pear.rb:58: syntax error, unexpected ':', expecting keyword_end
    when /^=/: return nil
              ^
/var/lib/puppet/lib/puppet/provider/package/pear.rb:59: syntax error, unexpected keyword_when, expecting keyword_end
    when /^PACKAGE/: return nil
        ^
/var/lib/puppet/lib/puppet/provider/package/pear.rb:59: syntax error, unexpected ':', expecting keyword_end
    when /^PACKAGE/: return nil
                    ^
/var/lib/puppet/lib/puppet/provider/package/pear.rb:60: syntax error, unexpected keyword_when, expecting keyword_end
    when /^(\S+)\s+([.\d]+)\s+\S+\n/
        ^
/var/lib/puppet/lib/puppet/provider/package/pear.rb:123: syntax error, unexpected keyword_end, expecting $end
Error: Could not autoload puppet/type/package: Could not autoload puppet/provider/package/pear: /var/lib/puppet/lib/puppet/provider/package/pear.rb:57: syntax error, unexpected ':', expecting keyword_then or ',' or ';' or '\n'
    when /^INSTALLED/: return nil
                      ^
/var/lib/puppet/lib/puppet/provider/package/pear.rb:58: syntax error, unexpected keyword_when, expecting keyword_end
    when /^=/: return nil
        ^
/var/lib/puppet/lib/puppet/provider/package/pear.rb:58: syntax error, unexpected ':', expecting keyword_end
    when /^=/: return nil
              ^
/var/lib/puppet/lib/puppet/provider/package/pear.rb:59: syntax error, unexpected keyword_when, expecting keyword_end
    when /^PACKAGE/: return nil
        ^
/var/lib/puppet/lib/puppet/provider/package/pear.rb:59: syntax error, unexpected ':', expecting keyword_end
    when /^PACKAGE/: return nil
                    ^
/var/lib/puppet/lib/puppet/provider/package/pear.rb:60: syntax error, unexpected keyword_when, expecting keyword_end
    when /^(\S+)\s+([.\d]+)\s+\S+\n/
        ^
/var/lib/puppet/lib/puppet/provider/package/pear.rb:123: syntax error, unexpected keyword_end, expecting $end
Error: Could not retrieve catalog from remote server: Could not intern from text/pson: Could not autoload puppet/type/package: Could not autoload puppet/provider/package/pear: /var/lib/puppet/lib/puppet/provider/package/pear.rb:57: syntax error, unexpected ':', expecting keyword_then or ',' or ';' or '\n'
    when /^INSTALLED/: return nil
                      ^
/var/lib/puppet/lib/puppet/provider/package/pear.rb:58: syntax error, unexpected keyword_when, expecting keyword_end
    when /^=/: return nil
        ^
/var/lib/puppet/lib/puppet/provider/package/pear.rb:58: syntax error, unexpected ':', expecting keyword_end
    when /^=/: return nil
              ^
/var/lib/puppet/lib/puppet/provider/package/pear.rb:59: syntax error, unexpected keyword_when, expecting keyword_end
    when /^PACKAGE/: return nil
        ^
/var/lib/puppet/lib/puppet/provider/package/pear.rb:59: syntax error, unexpected ':', expecting keyword_end
    when /^PACKAGE/: return nil
                    ^
/var/lib/puppet/lib/puppet/provider/package/pear.rb:60: syntax error, unexpected keyword_when, expecting keyword_end
    when /^(\S+)\s+([.\d]+)\s+\S+\n/
        ^
/var/lib/puppet/lib/puppet/provider/package/pear.rb:123: syntax error, unexpected keyword_end, expecting $end
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run

run