Boot a LIVE DVD of some distro you like. Install solaar.
sudo apt-get install solaar
If it doesn't work then, you have hardware problem. If it does, then you have software problem.
I have an HP Spectre x360, 64 bit i7 with 8GB ram, running Windows 10 Home, about page lists version as 1703. I am using a Logitech M510 wireless USB mouse with the Logitech unifying receiver. This problem began today out of the blue when first I noticed the MMB arrow icon appearing and disappearing randomly without middle clicking, and then that when I would hover the mouse over something, the cursor would eventually click on it on its own. Then I began having the cursor fly to the bottom or upper left corner of the screen (it seems to go instantly) and stay there. These problems only occur when the mouse is connected and switched on. I have tried cleaning the optical part of the mouse, switching USB ports, updating drivers for the receiver and mouse, disabling "Enhance pointer precision" and nothing has made a difference. The touchpad works normally and I have not tried another mouse or this mouse with another computer because I do not have another mouse or computer. I don't normally post on forums but I can't find another post anywhere with a similar problem. Any help would be appreciated, and let me know if more info is needed.

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic