How to get FFI working on Ruby 2.7.2 image?

I noticed this article that spoke about a change from Ubuntu 18.04 to 20.04.

The newer convenience images did switch to using 20.04 for later releases not that long ago

I’m curious if maybe your previous image was using Ubuntu 18.04 and now this image is 20.04

You can try the simlink command in that Launchpad thread

sudo ln -s /usr/lib/x86_64-linux-gnu/libffi.so.7 /usr/lib/x86_64-linux-gnu/libffi.so.6

Before you try that, I would make sure to increment and your CircleCI caches as this might just be a mixed cache issue. Starting with a fresh cache will make sure all the gems are rebuilt.