We say a covering space $(E,p)\to X$ is trivializable, if there is a space $F$ (with the discrete topology), and a homeomorphism between $\varphi:E\to X\times F$ such that $p=pr_1\circ \varphi$, where $pr_1:X\times F\to X$ is the projection. Suppose the following proposition holds:
If $B=U\cup V$, both $U$ and $V$ are connected open subsets, and $U\cap V$ is connected. Let $(E,p)$ be a covering space of $B$ such that both $p^{-1}(U)\to U,p^{-1}(V)\to V$ are trivializable, then $(E,p)$ is trivializable.
Show that, if $B\subset\mathbb R$ is an interval, then any covering space of $B$ is trivializable.
The attempt:
We first assert that, if $(E,p)$ is a covering space of $B$, and $B=B_1\cup B_2$, both $B_1,B_2$ are closed, $B_1\cap B_2=\{b\}$, and both $p^{-1}(B_i)\to B_i$ are trivializable, then $(E,p)$ is trivializable.
Let $\varphi_i:p^{-1}(B_i)\to B_i\times F_i$ be the homeomorphisms. Since $B_1\cap B_2=\{b\}$, there is a bijection $\psi:F_2\to F_1$. We define a map $$f:B\times F_2\to E,\;(u,x)\mapsto\begin{cases} \varphi_1^{-1}(u,\psi(x)),&\text{if}\; u\in B_1;\\ \varphi_2^{-1}(u,x),&\text{if}\; u\in B_2. \end{cases}$$ It is not difficult to see $f$ is bijective. We have $f$ is continuous by the pasting lemma and $f^{-1}$ is continuous since $f$ is open. Therefore, $(E,p)$ is trivializable.
For the case that $B$ is a closed and bounded interval $[a,b]$. $\forall x\in B$, there is a neighborhood $U\ni x$ such that $p^{-1}(U)\to U$ is trivializable, then $B$ can be covered by open subsets having this property. By the lebesgue number lemma, we can choose $a=t_0<t_1<\cdots<t_n=b$ such that $p^{-1}([t_i,t_{i+1}])\to [t_i,t_{i+1}]$ is trivializable, for $i=0,1,\cdots,n-1$. Then we have $p:E\to B$ is trivializable by the assertion above.
But how to show it for other cases?