Reif's book on Statistical Physics is one of the most prescribed books in the subject. For the canonical ensemble, he derives that the formula for entropy is $$S_{\rm can}=k_B\ln\Omega(\bar E)$$ which differs from the microcanonical Boltzmann formula (or definition) $$S_{\rm mic}=k_B\ln\Omega(E)$$ i.e. $E$ has been changed to $\bar{E}$ in the argument of $\Omega$, the number of microstates of the system. Now, there is another expression for entropy for the canonical ensemble which is given by $$S_{\rm can}=-k_B \sum_i p_i\ln p_i,~~{\rm where}~~p_i=\frac{e^{-\beta E_i}}{\sum_j e^{-\beta E_j}}.$$
- I want to show that the two different looking formulae for $S_{\rm can}$ are identical by starting from any one of them and reduce it to the other.
Please see that my question is not the same as this. Note the argument of $\Omega$ in my formula (or refer to Reif's book). In no way, it is a duplicate. yu-v's answer seems correct.