Getting the following error while running bundle
An error occurred while installing racc (1.6.0), and Bundler cannot continue.
Make sure that `gem install racc -v '1.6.0' --source 'https://rubygems.org/'` succeeds before bundling.
I got the same error. I tried the following and the error's gone. Hopefully it can help you.
Update ruby to the latest version 2.7.0p0 using:
sudo apt-get install ruby-full build-essential
Re-run bundle install