Fixes available online suggested modifying the code in libraries that I did not have access to.
So how to fix this issue without modifying any code?
remove current protobuf compiler:sudo apt remove protobuf-compiler
install older version (protoc-2...