GPU Hardware Acceleration Support For riscv64 GNOME Desktop

This has been answered in related post.

As suggested, your best bet is to use Ubuntu 24.04 LTS, which greatly increases your chances of getting things to work.

It’s the latest LTS (Long Term Support) release supported by Ubuntu, and there is no point spending time and effort in making things to work in an older LTS release (especially for the kind of work you’re attempting).