I use eclipse for my projects.
When I want to install or update a plugin, it is very very slow to calculate dependencies ( about 5 to 10 minutes) and then it is fast
I had very similar issue in Windows recently, but finally I managed to figure out what is causing the extremely slow network connections in Eclipse. Actually the issue isn't the low bandwidth, but connection timeouts. The solution in my case was to disable all unnecessary network adapters in Windows like Hamachi's and TeamViewer's adapter. I know you are on Ubuntu, but I'm sure the root of the issue in your case is very similar.
Disabling Windows Defender and other Antivirus/spyware can help. Maybe the speed up is not so high, but at least it will run faster.
Try to uncheck the option "Contract all update sites" before installing your selection. Because p2 would try to check the dependency from all the available update sites(download the metadata repository firstly) when checking that option.