Do all consensus algorithms aim to solve the Byzantine generals problem?
To answer your question, no.

BFT-class consensus algorithms seek to solve the Byzantine Generals Problem.

Other consensus algorithms, generally the Nakamato-style consensus algorithms) including PoW (Proof-of-Work, used by Bitcoin) and PoET (Proof of Elapsed Time, used by Sawtooth) do not seek to solve BFT.