Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to resolve dependencies when trying to install vagrant-libvirt #13510

Open
santosh opened this issue Oct 17, 2024 · 0 comments
Open

Comments

@santosh
Copy link

santosh commented Oct 17, 2024

Debug output

https://gist.github.com/santosh/918b3553021052324b7972c607fdbcce

Expected behavior

Plugin should have installed without any error.

Actual behavior

Received this error in red:

Full log has been linked in above sections.

Vagrant failed to properly resolve required dependencies. These
errors can commonly be caused by misconfigured plugin installations
or transient network issues. The reported error is:

conflicting dependencies rake (= 13.1.0) and rake (= 13.2.1)
  Activated rake-13.2.1
  which does not match conflicting dependency (= 13.1.0)

  Conflicting dependency chains:
    rake (= 13.2.1), 13.2.1 activated

  versus:
    rake (= 13.1.0)

  Gems matching rake (= 13.1.0):
    rake-13.1.0

Reproduction information

Vagrant version

Vagrant 2.4.1

Host operating system

Arch Linux

Guest operating system

debian/bookworm64

Steps to reproduce

  1. Try to install vagrant libvirt plugin using the command: vagrant plugin install vagrant-libvirt
  2. Wait until it fails due to dependency resolution.

Vagrantfile

# Determine host adpater for bridging in BRIDGE mode
def get_bridge_adapter()
  return %x{ip route | grep default | head -n 1 | awk '{ print $5 }'}.chomp
end

Vagrant.configure("2") do |config|
  config.vm.box = "debian/bookworm64"
  config.vm.box_check_update = false
  config.vm.network :public_network, dev: get_bridge_adapter()

  config.vm.define "triton" do |node|  # the string provided here appears in vagrant status
    node.vm.hostname = "triton"  # This appears in your router's host listing, and in the VM itself

    # Provider-specific configuration so you can fine-tune various
    # backing providers for Vagrant. These expose provider-specific options.
    node.vm.provider "libvirt" do |vb|
      vb.memory = 2048
      vb.cpus = 1
    end
  end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant