Let $R$ be a sheaf of rings on a topological space $X$. Assume $R \neq 0$. Does then $R$ have a maximal ideal? So this is a spacified analogon of the theorem, that every nontrivial ring has a maximal ideal. Currently I try to develope this sort of spacified commutative algebra and algebraic geometry. If anyone knows some literature about it, please let me know.
So let's try to imitate the known proof for rings and use Zorn's Lemma. For that, we need that for every linear ordered set $(J_k)_{k \in K}$ of proper ideals in $R$, their sum $\sum_{k \in K} J_k$ is also a proper ideal. Note that if we replace $R \neq 0$ by $R_x \neq 0$ for all $x \in X$ and the notion proper by "halmwise"stalkwise proper", then everything works out fine since stalks and sum commute. However, global sections do not commute with (infinite) sums. Anyway, let's try to continue:
Assume $\sum_{k \in K} J_k = R$, that is, $1$ is a global section of the sum. Then there is an open covering $X = \cup_{i \in I} U_i$, such that $1 \in \sum_{k \in K} J_k(U_i) = \cup_{k \in K} J_k(U_i)$. Thus we get a function $I \to K, i \mapsto k_i$, such that $1 \in J_{k_i}(U_i)$. If this function has an upper bound, say $k$, then we get a contradiction $J_k=R$. Thus the function is unbounded. And now?
I think that this already indicates that there will be counterexamples, but I'm not sure. Also note that everything is fine when $X$ is quasi compact.