Skip to content

Instantly share code, notes, and snippets.

@mrintegrity
Created November 19, 2012 15:45
Show Gist options
  • Save mrintegrity/4111372 to your computer and use it in GitHub Desktop.
Save mrintegrity/4111372 to your computer and use it in GitHub Desktop.
err: /Stage[main]/Foreman::Install/Package[foreman-sqlite3]/ensure: change from absent to latest failed: Could not update: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install foreman-sqlite3' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
foreman-sqlite3 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up foreman (1.0.1+ubuntu1) ...
dpkg: error processing foreman (--configure):
subprocess installed post-installation script returned error exit status 6
dpkg: dependency problems prevent configuration of foreman-sqlite3:
foreman-sqlite3 depends on foreman; however:
Package foreman is not configured yet.
dpkg: error processing foreman-sqlite3 (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
foreman
foreman-sqlite3
E: Sub-process /usr/bin/dpkg returned an error code (1)
at /etc/puppet/modules/common/foreman/manifests/install.pp:30
notice: /Stage[main]/Foreman::Install/Package[foreman]: Dependency Package[foreman-sqlite3] has failures: true
warning: /Stage[main]/Foreman::Install/Package[foreman]: Skipping because of failed dependencies
notice: /Stage[main]/Foreman::Config::Passenger/File[foreman_vhost]: Dependency Package[foreman-sqlite3] has failures: true
warning: /Stage[main]/Foreman::Config::Passenger/File[foreman_vhost]: Skipping because of failed dependencies
notice: /Stage[main]/Apache::Service/Exec[reload-apache]: Dependency Package[foreman-sqlite3] has failures: true
warning: /Stage[main]/Apache::Service/Exec[reload-apache]: Skipping because of failed dependencies
notice: /Stage[main]/Foreman::Config/File[/usr/share/foreman]: Dependency Package[foreman-sqlite3] has failures: true
warning: /Stage[main]/Foreman::Config/File[/usr/share/foreman]: Skipping because of failed dependencies
notice: /Stage[main]/Foreman::Config::Passenger/Exec[restart_foreman]: Dependency Package[foreman-sqlite3] has failures: true
warning: /Stage[main]/Foreman::Config::Passenger/Exec[restart_foreman]: Skipping because of failed dependencies
notice: /Stage[main]/Foreman::Config/User[foreman]: Dependency Package[foreman-sqlite3] has failures: true
warning: /Stage[main]/Foreman::Config/User[foreman]: Skipping because of failed dependencies
notice: /Stage[main]/Foreman::Config::Reports/Cron[daily summary]: Dependency Package[foreman-sqlite3] has failures: true
warning: /Stage[main]/Foreman::Config::Reports/Cron[daily summary]: Skipping because of failed dependencies
notice: /Stage[main]/Foreman::Config/File[/etc/foreman/settings.yaml]: Dependency Package[foreman-sqlite3] has failures: true
warning: /Stage[main]/Foreman::Config/File[/etc/foreman/settings.yaml]: Skipping because of failed dependencies
notice: /Stage[main]/Foreman::Config::Reports/Cron[expire_old_reports]: Dependency Package[foreman-sqlite3] has failures: true
warning: /Stage[main]/Foreman::Config::Reports/Cron[expire_old_reports]: Skipping because of failed dependencies
notice: /Stage[main]/Foreman::Config/Cron[clear_session_table]: Dependency Package[foreman-sqlite3] has failures: true
warning: /Stage[main]/Foreman::Config/Cron[clear_session_table]: Skipping because of failed dependencies
notice: /Stage[main]/Foreman::Config::Passenger/File[/usr/share/foreman/config/environment.rb]: Dependency Package[foreman-sqlite3] has failures: true
warning: /Stage[main]/Foreman::Config::Passenger/File[/usr/share/foreman/config/environment.rb]: Skipping because of failed dependencies
notice: /Stage[main]/Foreman::Config::Passenger/File[/usr/share/foreman/config.ru]: Dependency Package[foreman-sqlite3] has failures: true
warning: /Stage[main]/Foreman::Config::Passenger/File[/usr/share/foreman/config.ru]: Skipping because of failed dependencies
notice: /Stage[main]/Foreman::Service/Service[foreman]: Dependency Package[foreman-sqlite3] has failures: true
warning: /Stage[main]/Foreman::Service/Service[foreman]: Skipping because of failed dependencies
err: Removing mount files: /etc/puppet/files does not exist or is not a directory
notice: Finished catalog run in 11.69 seconds
@lazarus1331
Copy link

from http://theforeman.org/manuals/1.11/index.html#3.2.2InstallerOptions

--foreman-repo  This can be stable, nightly or a specific version i.e. 1.7

Use this with a specific version to allow foreman-installer to setup the correct repositories.

With foreman-answers.yaml, replace the custom_repo lines with the following

foreman:
  repo: 1.11
foreman_proxy:
  repo: 1.11
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment