hashicorp / vagrant

Vagrant is a tool for building and distributing development environments.
https://www.vagrantup.com
Other
26.05k stars 4.42k forks source link

Last Vagrant releases still not totally compatible with old macOS #13220

Open kom177 opened 1 year ago

kom177 commented 1 year ago

For macOS 10.13.6 High Sierra:

Debug output

$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'bento/ubuntu-22.04' version '202212.11.0' is up to date...
==> default: There was a problem while downloading the metadata for your box
==> default: to check for updates. This is not an error, since it is usually due
==> default: to temporary network problems. This is just a warning. The problem
==> default: encountered was:
==> default: 
==> default: dyld: Symbol not found: _iconv
==> default:   Referenced from: /usr/lib/libcups.2.dylib
==> default:   Expected in: /opt/vagrant/embedded/lib/libiconv.2.dylib
==> default:  in /usr/lib/libcups.2.dylib
==> default: 
==> default: 
==> default: If you want to check for box updates, verify your network connection
==> default: is valid and try again.
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
.........etc

Expected behavior

No warning

Vagrant version

2.3.6-2.3.7

Host operating system

macOS 10.13.6 High Sierra

Guest operating system

Ubuntu 22.04

Steps to reproduce

  1. Upgrade for 2.3.6-2.3.7

Network connection is fully operational. Rolling back to 2.3.0 (the very last working version) immediately restores functionality.

chrisroberts commented 1 year ago

Hi there,

Would you please provide a gist of the debug output from vagrant up --debug

Thanks

kom177 commented 1 year ago

Sure

debug.txt.zip

kom177 commented 1 year ago

Any ideas?

BTW: 'uninstall tool' for 2.3.7 version of Vagrant doesn't work on High Sierra too (terminal window doesn't open).

kom177 commented 10 months ago

The method from the above link doesn't help. When I simply remove libiconv.2.dylib I get

==> default: dyld: Library not loaded: @rpath/libiconv.2.dylib
==> default:   Referenced from: /opt/vagrant/embedded/lib/libxml2.2.dylib
==> default:   Reason: Incompatible library version: libxml2.2.dylib requires version 9.0.0 or later, but libiconv.2.dylib provides version 7.0.0

When I replace libiconv.2.dylib with version from 2.3.0 again I see

dyld: Symbol not found: _iconv
  Referenced from: /usr/lib/libcups.2.dylib
  Expected in: /opt/vagrant/embedded/lib/libiconv.2.dylib
 in /usr/lib/libcups.2.dylib

after $ vagrant box outdated -f

mikenovikov commented 10 months ago

Just find this three files inside /opt/vagrant/embedded/lib/ directory:

kom177 commented 10 months ago

@mikenovikov, thanks a lot! Now it works and checks for updates. @chrisroberts, but it is still a hotfix, not a real solution.

luiguild commented 8 months ago

This workaround provided by @mikenovikov works like a charm here, thanks!