I have a Logitech M510 and I cant use the scroll button, and I cant find the software for it. I have already gone to the web site to look for software for for Ubuntu.
If you use dual-boot Windows and Ubuntu (or have access to another Windows machine), install the Logitech Windows software for the
Unifying Receiver, and their
Mouse software. Any settings that you make in Windows will be remembered in Ubuntu. Here's the download link...
If you don't have Windows, install
Solaar in Ubuntu, and it'll give you ways to pair the Logitech mouse/keyboard, and many times, control some of the additional features of your mouse/keyboard.
sudo apt update
sudo apt install solaar solaar-gnome3