Project

General

Profile

Actions

Bug #14371

closed

Ubuntu 14.04 Installation fails - Unable to locate package ruby-foreman-setup

Added by Mattis Haase about 8 years ago. Updated about 8 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Steps to reproduce:

  1. Fresh 14.04 installation
  2. sudo vi /etc/apt/sources.list.d/foreman.list
  3. add http://deb.theforeman.org/ trusty stable
  4. sudo wget http://deb.theforeman.org/pubkey.gpg
  5. sudo apt-key add pubkey.gpg
  6. sudo apt-key update
  7. sudo apt-get update
  8. sudo apt-get install foreman-install
  9. sudo vi /usr/share/foreman-installer/config/answers.yaml
  10. change puppetserver from 'true' to 'false'
  11. sudo foreman-install

Result:
[ INFO 2016-03-29 12:58:55 main] /usr/lib/ruby/vendor_ruby/puppet/application.rb:364:in `block in run'
[ INFO 2016-03-29 12:58:55 main] /usr/lib/ruby/vendor_ruby/puppet/util.rb:478:in `exit_on_fail'
[ INFO 2016-03-29 12:58:55 main] /usr/lib/ruby/vendor_ruby/puppet/application.rb:364:in `run'
[ INFO 2016-03-29 12:58:55 main] /usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:137:in `run'
[ INFO 2016-03-29 12:58:55 main] /usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:91:in `execute'
[ INFO 2016-03-29 12:58:55 main] /usr/bin/puppet:4:in `<main>'
[ERROR 2016-03-29 12:58:55 main] /Stage[main]/Foreman::Plugin::Setup/Foreman::Plugin[setup]/Package[ruby-foreman-setup]/ensure: change from purged to present failed: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install ruby-foreman-setup' returned 100: Reading package lists...
[ INFO 2016-03-29 12:58:55 main] Building dependency tree...
[ INFO 2016-03-29 12:58:55 main] Reading state information...
[ INFO 2016-03-29 12:58:55 main] E: Unable to locate package ruby-foreman-setup
[ INFO 2016-03-29 12:58:55 main] RESOURCE Package[ruby-foreman-setup]
[ INFO 2016-03-29 12:58:55 main] Class[Foreman::Service]: Scheduling refresh of Exec[restart_foreman]
[ INFO 2016-03-29 12:58:55 main] Class[Foreman::Service]: Scheduling refresh of Service[foreman]
[ WARN 2016-03-29 12:58:55 main] /Stage[main]/Foreman::Service/Service[foreman]: Dependency Package[ruby-foreman-setup] has failures: true
[ WARN 2016-03-29 12:58:55 main] /Stage[main]/Foreman::Service/Service[foreman]: Skipping because of failed dependencies
[DEBUG 2016-03-29 12:58:55 main] Service[foreman](provider=upstart): Could not find foreman.conf in /etc/init
[DEBUG 2016-03-29 12:58:55 main] Service[foreman](provider=upstart): Could not find foreman.conf in /etc/init.d
[DEBUG 2016-03-29 12:58:55 main] Service[foreman](provider=upstart): Could not find foreman in /etc/init
[DEBUG 2016-03-29 12:58:55 main] Executing '/etc/init.d/foreman status'
[DEBUG 2016-03-29 12:58:55 main] /Stage[main]/Foreman::Service/Service[foreman]: Skipping restart; service is not running
[ WARN 2016-03-29 12:58:55 main] /Stage[main]/Foreman::Service/Service[foreman]: Triggered 'refresh' from 1 events
[DEBUG 2016-03-29 12:58:55 main] /Stage[main]/Foreman::Service/Service[foreman]: The container Class[Foreman::Service] will propagate my refresh event
[ WARN 2016-03-29 12:58:55 main] /Stage[main]/Foreman::Service/Exec[restart_foreman]: Dependency Package[ruby-foreman-setup] has failures: true
[ WARN 2016-03-29 12:58:55 main] /Stage[main]/Foreman::Service/Exec[restart_foreman]: Skipping because of failed dependencies
[DEBUG 2016-03-29 12:58:55 main] Exec[restart_foreman](provider=posix): Executing '/bin/touch /usr/share/foreman/tmp/restart.txt'
[DEBUG 2016-03-29 12:58:55 main] Executing '/bin/touch /usr/share/foreman/tmp/restart.txt'
[ WARN 2016-03-29 12:58:55 main] /Stage[main]/Foreman::Service/Exec[restart_foreman]: Triggered 'refresh' from 1 events

If I try to manually install ruby-foreman-setup:

sudo apt-get -q -y -o DPkg::Options::=--force-confold install ruby-foreman-setup

Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package ruby-foreman-setup

Here is my repository info:

grep ^ /etc/apt/sources.list /etc/apt/sources.list.d/* | grep foreman
/etc/apt/sources.list.d/foreman.list:deb http://deb.theforeman.org/ trusty stable

Indeed ruby-foreman-setup is not part of: http://deb.theforeman.org/dists/trusty/stable/binary-amd64/Packages

Actions #1

Updated by Dominic Cleal about 8 years ago

  • Status changed from New to Rejected

You're missing the plugin repo, adding the main trusty/stable repo isn't enough. Add:

deb http://deb.theforeman.org/ plugins stable

See http://theforeman.org/manuals/latest/quickstart_guide.html for more details.

Alternatively, disable the installation of this default plugin by adding --no-enable-foreman-plugin-setup to the installer command.

(Incidentally, you can change the puppetserver value by using --puppet-* options.)

Actions

Also available in: Atom PDF