The local strong and weak solutions to a generalized Novikov equation