-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Unable to activate vagrant_cloud-3.1.1, because rexml-3.3.2 conflicts with rexml (~> 3.2.5) #13502
Comments
Work around is to revert ruby-rexml upgrade from 3.2.6 to 3.3.2 sudo pacman -U /var/cache/pacman/pkg/ruby-rexml-3.2.6-2-any.pkg.tar.zst and then freeze upgrade in /etc/pacman.conf
If you're also using Virtualbox as backend, you also need workaround proposed here |
Thank you! |
An more easy option is to use 'downgrade' for downgrade: sudo su Packages (1) ruby-rexml-3.2.6-2 Total Installed Size: 0.43 MiB :: Proceed with installation? [Y/n] y |
For Archlinux and similar, you can use the previous version of https://archive.archlinux.org/packages/r/ruby-rexml/ For example: wget https://archive.archlinux.org/packages/r/ruby-rexml/ruby-rexml-3.2.6-2-any.pkg.tar.zst
sudo pacman -U ruby-rexml-3.2.6-2-any.pkg.tar.zst |
Just info for Arch linux + yay users. sudo su It worked for me. |
@alexandrosomegas - did you run full system update before having this error? i did and now i have similar problem, but seems like downgrading virtualbox and dkms didn't work, now i've got error saying that the kernel module is not loaded. What is your current kernel version? Edit: |
well I am not ruby user. is there any guide for using the |
True, downgrade these 3 works for me for this error. But vagrant then tells: ❯ vagrant reload
==> default: Checking if box 'debian/bookworm64' version '12.20240503.1' is up to date...
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
default: Adapter 2: bridged
default: Adapter 3: bridged
==> default: Forwarding ports...
default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.
Command: ["startvm", "a92789f7-1744-4355-821a-92560140a0dc", "--type", "headless"]
Stderr: VBoxManage: error: The virtual machine 'devops_default_1726238446231_23652' has terminated unexpectedly during startup with exit code 1 (0x1)
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component MachineWrap, interface IMachine After google, reinstall Edit: It works just as @mateuszR84 said. after reinstall my in-using |
Yes, I did full system upgrade (Arch linux). As I wrote after 3 downgrade (and pinned them to ignore offered by downgrade) I mentioned, Vagrant up/ssh worked fine. (About install Downgrade Arch users can look here: https://aur.archlinux.org/packages/downgrade
than vagrant ssh, and all worked fine for me. |
@leaveye
|
I understand the workaround currently is to downgrade a Ruby dep and VirtualBox, but is there a plan properly fix this? |
If we are still speaking about archlinux, the Vagrant PKGBUILD embeds its own gem dependencies in But then you will run into the same problem with the vagrant-cloud gem which also depends on rexml ~>3.2.0. There's an open bug here: hashicorp/vagrant_cloud#87 |
Annoying this approach seems to fail in arch now - when building the module:
I guess this means downgrading the kernel as well... Edit - this change seems to have happened in [email protected] - currently on 6.11 - how is it compiling for anyone with recent headers? Edit 2 - think this was my error. I looked at https://archive.archlinux.org/packages/v/virtualbox-host-dkms/ and saw the bottom version as being .0.8, when there was a .0.20 hiding above. Using 20 should work hopefully! |
Debug output
vagrant reload
'/usr/lib/ruby/3.2.0/rubygems/specification.rb:2303:in
raise_if_conflicts': Unable to activate vagrant_cloud-3.1.1, because rexml-3.3.2 conflicts with rexml (~> 3.2.5) (Gem::ConflictError) from /usr/lib/ruby/3.2.0/rubygems/specification.rb:1432:in
activate'from /usr/lib/ruby/3.2.0/rubygems/core_ext/kernel_gem.rb:63:in
block in gem' from /usr/lib/ruby/3.2.0/rubygems/core_ext/kernel_gem.rb:63:in
synchronize'from /usr/lib/ruby/3.2.0/rubygems/core_ext/kernel_gem.rb:63:in
gem' from /opt/vagrant/embedded/gems/gems/vagrant-2.4.1/bin/vagrant:95:in
block (2 levels) infrom /opt/vagrant/embedded/gems/gems/vagrant-2.4.1/bin/vagrant:94:in
each' from /opt/vagrant/embedded/gems/gems/vagrant-2.4.1/bin/vagrant:94:in
block in 'from /opt/vagrant/embedded/gems/gems/vagrant-2.4.1/bin/vagrant:105:in `'
Expected behavior
Actual behavior
Reproduction information
This happened after today full system update on Arch Linux (yay -Syu)
resolving dependencies...
looking for conflicting packages...
Packages (9) gnome-nibbles-4.1.0-1 iwd-2.22-1 php-mongodb-1.19.4-1
ruby-3.2.5-2 ruby-bundled-gems-3.2.5-2 ruby-default-gems-3.2.5-2
ruby-rexml-3.3.2-1 ruby-stdlib-3.2.5-2 wayland-1.23.1-1
Total Download Size: 6.02 MiB
Total Installed Size: 24.42 MiB
Net Upgrade Size: 0.63 MiB
:: Proceed with installation? [Y/n]
:: Retrieving packages...
ruby-3.2.5-2-x86_64 4.0 MiB 17.4 MiB/s 00:00 [######################] 100%
php-mongodb-1.19... 756.1 KiB 4.83 MiB/s 00:00 [######################] 100%
iwd-2.22-1-x86_64 581.6 KiB 4.98 MiB/s 00:00 [######################] 100%
gnome-nibbles-4.... 385.2 KiB 2.89 MiB/s 00:00 [######################] 100%
ruby-rexml-3.3.2... 197.9 KiB 3.86 MiB/s 00:00 [######################] 100%
wayland-1.23.1-1... 140.4 KiB 2.28 MiB/s 00:00 [######################] 100%
ruby-bundled-gem... 4.6 KiB 97.8 KiB/s 00:00 [######################] 100%
ruby-default-gem... 4.5 KiB 96.6 KiB/s 00:00 [######################] 100%
ruby-stdlib-3.2.... 4.5 KiB 96.2 KiB/s 00:00 [######################] 100%
Total (9/9) 6.0 MiB 4.29 MiB/s 00:01 [######################] 100%
(9/9) checking keys in keyring [######################] 100%
(9/9) checking package integrity [######################] 100%
(9/9) loading package files [######################] 100%
(9/9) checking for file conflicts [######################] 100%
(9/9) checking available disk space [######################] 100%
:: Processing package changes...
(1/9) upgrading wayland [######################] 100%
(2/9) upgrading gnome-nibbles [######################] 100%
(3/9) upgrading iwd [######################] 100%
(4/9) upgrading php-mongodb [######################] 100%
(5/9) upgrading ruby [######################] 100%
(6/9) upgrading ruby-rexml [######################] 100%
(7/9) upgrading ruby-bundled-gems [######################] 100%
(8/9) upgrading ruby-default-gems [######################] 100%
(9/9) upgrading ruby-stdlib [######################] 100%
:: Running post-transaction hooks...
(1/6) Reloading system manager configuration...
(2/6) Arming ConditionNeedsUpdate...
(3/6) Reloading system bus configuration...
(4/6) Compiling GSettings XML schema files...
(5/6) Updating icon theme caches...
(6/6) Updating the desktop file MIME type cache...
...
:: 10 packages to upgrade/install.
10 extra/gnome-nibbles 4.0.4-1.1 -> 4.1.0-1
9 extra/iwd 2.21-1 -> 2.22-1
8 extra/php-mongodb 1.19.3-1 -> 1.19.4-1
7 extra/ruby 3.2.5-1 -> 3.2.5-2
6 extra/ruby-bundled-gems 3.2.5-1 -> 3.2.5-2
5 extra/ruby-default-gems 3.2.5-1 -> 3.2.5-2
4 extra/ruby-rexml 3.2.6-2 -> 3.3.2-1
3 extra/ruby-stdlib 3.2.5-1 -> 3.2.5-2
2 extra/wayland 1.23.0-1 -> 1.23.1-1
1 aur/google-chrome 128.0.6613.119-1 -> 128.0.6613.137-1
Vagrant version
vagrant -v
Vagrant 2.4.1
ruby -v
ruby 3.2.5 (2024-07-26 revision 31d0f1a2e7) [x86_64-linux]
gem list
*** LOCAL GEMS ***
abbrev (default: 0.1.1)
base64 (default: 0.1.1)
benchmark (default: 0.2.1)
bigdecimal (default: 3.1.3)
bundler (default: 2.5.11)
cgi (default: 0.3.6)
csv (default: 3.2.6)
date (default: 3.3.3)
debug (1.7.1)
delegate (default: 0.3.0)
did_you_mean (default: 1.6.3)
digest (default: 3.1.1)
drb (default: 2.1.1)
english (default: 0.7.2)
erb (4.0.4)
error_highlight (default: 0.5.1)
etc (default: 1.4.2)
fcntl (default: 1.0.2)
fiddle (default: 1.1.1)
fileutils (default: 1.7.0)
find (default: 0.1.1)
forwardable (default: 1.3.3)
getoptlong (default: 0.2.0)
io-console (default: 0.6.0)
io-nonblock (default: 0.2.0)
io-wait (default: 0.3.0)
ipaddr (default: 1.2.5)
irb (default: 1.6.2)
json (default: 2.6.3)
logger (default: 1.5.3)
matrix (0.4.2)
minitest (5.22.3)
mutex_m (default: 0.1.2)
net-ftp (0.3.5)
net-http (default: 0.4.1)
net-imap (0.4.12)
net-pop (0.1.2)
net-protocol (default: 0.2.1)
net-smtp (0.5.0)
nkf (default: 0.1.2)
observer (default: 0.1.1)
open-uri (default: 0.3.0)
open3 (default: 0.1.2)
openssl (default: 3.1.0)
optparse (default: 0.3.1)
ostruct (default: 0.5.5)
pathname (default: 0.2.1)
power_assert (2.0.3)
pp (default: 0.4.0)
prettyprint (default: 0.1.1)
prime (0.1.2)
pstore (default: 0.1.2)
psych (default: 5.0.1)
racc (default: 1.6.2)
rake (13.0.6)
rbs (3.4.4)
rdoc (default: 6.5.1.1)
readline (default: 0.0.3)
readline-ext (default: 0.1.5)
reline (default: 0.3.2)
resolv (default: 0.2.2)
resolv-replace (default: 0.1.1)
rexml (3.3.2)
rinda (default: 0.1.1)
rss (0.3.0)
ruby2_keywords (default: 0.0.5)
securerandom (default: 0.2.2)
set (default: 1.0.3)
shellwords (default: 0.1.0)
singleton (default: 0.1.1)
stringio (default: 3.0.4)
strscan (default: 3.0.5)
syntax_suggest (default: 1.1.0)
syslog (default: 0.1.1)
tempfile (default: 0.1.3)
test-unit (3.6.2)
time (default: 0.2.2)
timeout (default: 0.3.1)
tmpdir (default: 0.1.3)
tsort (default: 0.1.1)
typeprof (0.21.8)
un (default: 0.2.1)
uri (default: 0.12.2)
weakref (default: 0.1.2)
yaml (default: 0.2.1)
zlib (default: 3.0.0)
virtualbox-7.0.20-1
Host operating system
Guest operating system
Steps to reproduce
vagrant reload
or
vagrant reload
# Copy-paste your Vagrantfile here. Remove any sensitive information such as passwords, authentication tokens, or email addresses.
The text was updated successfully, but these errors were encountered: