Stability of transfer function
Hint:

Since $K(s) = \frac{1}{s-2+G(s)}$, then the roots of $s-2+G(s)$ must lie on the left side of the complex plane. Let's suppose that $G(s)$ is of the form $as + b$. Can you solve it then?