Tor service on older linux distros

I have some older linux distros, on x86/64 and Arm (including raspberry pi). About a month ago proxychains over tor stopped working. With web requests, like curl, the DNS request would timeout. I stopped the tor service and tried proxychains over an ssh tunnel (ssh -D 9050 user@remotehost) and everything worked, since I was able to successfully use proxychains via ssh tunnel, I think tor is the problem. It was working for years, but suddenly stopped.

I know the distros are old, but I was hoping there is a way to get tor to work again on them. I have Ubuntu 18.04, and Raspbian Buster that I know are affected.

Ubuntu 18.04 is end of life, I would suggest moving to a newer distro. I am guessing the issue might be that there have been changes made to TOR and since those systems are not getting updates they are causing the system to be incompatible.