Let $X$ be a locally compact metric space. Can we choose a sequence $H_i$ of compact sets such that $H_i \subset \operatorname{int}\left(H_{i+1}\right)$ for all $i \geq 1$ and $X =\cup_{i=1}^{\infty} H_i$.
Ignore the counterexample : uncountable set with discrete metric. Please, provide me some other examples if known.
This holds (for metric spaces) iff $X$ is separable as well:
If $X$ is locally compact metric and we have the $H_i$ as promised, $X$ is $\sigma$-compact, hence Lindelöf and separable and second countable (as these are equivalent in all metric spaces).
If $X$ is locally compact metric and separable, we can reduce the base of open sets with compact closure to a countable base $\{B_n: n \in \omega\}$ with all $\overline{B_n}$ compact. Then set $H_0 = B_0$ and cover $\overline{B_0}$ by finitely many new $B_n$, whose union we then define to be $H_1$ etc. continuing by recursion.