Project

General

Profile

Actions

Bug #21504

closed

ruby-smart-proxy-remote-execution-ssh installation fails on Ubuntu Xenial using packages on 1.15 repos

Added by Venushka Perera over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
High
Assignee:
-
Category:
Debian/Ubuntu
Target version:
-
Fixed in Releases:
Found in Releases:

Description

I'm setting up a puppet + foreman + foreman-proxy server using the theforeman-* puppet modules, and got stuck when trying to install ruby-smart-proxy-remote-execution-ssh. Seems like the Ubuntu Xenial repo dependencies are broken for latest versions available. I've figured out a workaround to install some older versions of the packages, however at the moment the Puppet modules does not allow specifying the individual versions of plugins.

To check if this is not an issue with how I've setup the box, I've tried it out in a fresh OS install as well, the repos in-fact seems to have missing dependencies.

Steps to reproduce

On a fresh Ubuntu Xenial install,
- Added the foreman repo

deb http://deb.theforeman.org/ xenial 1.15
deb http://deb.theforeman.org/ plugins 1.15

- Updated package list
sudo apt-get update

- Installed foreman proxy
sudo apt-get install foreman-proxy

- Tried installing ruby-smart-proxy-remote-execution-ssh
apt-get install ruby-smart-proxy-remote-execution-ssh
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 ruby-smart-proxy-remote-execution-ssh : Depends: ruby-foreman-remote-execution-core (>= 1.0.6) but 1.0.5-1 is to be installed
                                         Depends: ruby-smart-proxy-dynflow (>= 0.1.0) but it is not going to be installed
                                         Depends: ruby-smart-proxy-dynflow (< 0.2.0) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Investigation notes

Based on the packages available in the 1.15 repos, this is what I found so far,

ruby-smart-proxy-remote-execution-ssh (latest = 0.1.6-1)
  |
  |-- requires
        |
        |-- ruby-foreman-remote-execution-core (>= 1.0.6) -- MISSING - http://deb.theforeman.org/dists/xenial/1.15/binary-amd64/Packages only has up to 1.0.5-1
        |
        |-- ruby-smart-proxy-dynflow (>= 0.1.0, < 0.2.0) (latest = 0.1.8-1)
              |
              |-- requires
                    |
                    |-- ruby-smart-proxy-dynflow-core (>= 0.1.5) (latest = 0.1.8-1)
                         |
                         |-- requires
                               |
                               |-- ruby-foreman-tasks-core (>= 0.1.7) -- MISSING - http://deb.theforeman.org/dists/xenial/1.15/binary-amd64/Packages only has up to 0.1.4-1

Workaround

You can get around this by manually installing specific versions without relying upon the latest available in the repo. The following combination worked.

sudo apt-get install ruby-foreman-tasks-core                     # installs 0.1.4-1
sudo apt-get install ruby-smart-proxy-dynflow-core=0.1.6-1
sudo apt-get install ruby-foreman-remote-execution-core          # installs 1.0.5-1
sudo apt-get install ruby-smart-proxy-remote-execution-ssh=0.1.5-1
Actions #1

Updated by Anonymous over 6 years ago

  • Project changed from Foreman Remote Execution to Packaging
  • Category changed from Smart Proxy Dynflow to Debian/Ubuntu
  • Status changed from New to Assigned
  • Assignee set to Anonymous

Thanks for the report, seems like some updates reached only their respective RPM sources.

Actions #2

Updated by The Foreman Bot over 6 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman-packaging/pull/1899 added
Actions #3

Updated by The Foreman Bot over 6 years ago

  • Pull request https://github.com/theforeman/foreman-packaging/pull/1900 added
Actions #4

Updated by Venushka Perera over 6 years ago

Michael Moll wrote:

Thanks for the report, seems like some updates reached only their respective RPM sources.

Tried installing ruby-smart-proxy-remote-execution-ssh after an apt-get update and all seems to install fine now!

Snippet from install log to show the versions,

Setting up ruby-foreman-tasks-core (0.1.8-1) ...
Setting up ruby-foreman-remote-execution-core (1.0.6-1) ...
Setting up ruby-rest-client (1.8.0-2ubuntu1) ...
Setting up ruby-smart-proxy-dynflow-core (0.1.8-2) ...
Setting up ruby-smart-proxy-dynflow (0.1.8-1) ...
Setting up ruby-smart-proxy-remote-execution-ssh (0.1.6-1) ...

Thank you for getting this fixed so quickly!

Actions #5

Updated by Anonymous over 6 years ago

  • Status changed from Ready For Testing to Closed

Thank you for getting this fixed so quickly!

Thanks for confirming! In the meanwhile this and #21505 got fixed also in the 1.16 and nightly repositories.

Actions

Also available in: Atom PDF