Can I use potassium acetate instead of potassium carbonate?
Stay with the carbonate.
In the course of the reaction $\ce{HCl}$ is formed. The aim is to remove this from the reaction mixture both as soon as well as complete as reasonably possible.  Compare

The addition of sodium acetate will increase the complexity of your reaction mixture.  $\ce{HCl}$ is soluble in methanol (reference), and upon dissociation ($\ce{HCl &lt;=&gt; H+ + Cl-}$), the $\ce{H+}$ and the acetate $\ce{OAc-}$ join each other to generate the buffer system of $\ce{HOAc &lt;&lt;=&gt; H+ + OAc-}$.  Think about the $\ce{HOAc}$ as a reservoir, it may release $\ce{H+}$ at any moment you probably do not intend; a prominent example may be an aqueous workup.
The quantity of $\ce{HOAc}$ generated may be small -- in comparison of the methanol used as solvent of reaction.  Still it may complicate an aqueous workup and following extraction, because this organic substance solutes so well in water, but fairly enough in organic solvents such as hexanes, or chloroform, too.  So your extraction of the product may be affected.  A distillation (bp 118 C (pure acetic acid) instead of 65 C (pure methanol) at ambient pressure) ahead of the workup may remove this from your reaction mixture.


with the alternative

addition of $\ce{K2CO3}$.  Darn efficient removal of $\ce{H+}$ for once and forever, because the quench along  $\ce{K2CO3 + 2H+ -&gt; 2K+ + H2O + CO2}\uparrow$ is practically irreversible.  In addition, it allows you to monitor the advancement of the reaction since $\ce{K2CO3}$ is not well soluble in methanol.