This is a special case of the Coupon Collector's Problem.
Throw the die once. Of course we get a "new" number. Now throw the die again, and again, until we have obtained each of $1$ to $6$ at least once.
Let random variable $X_2$ be the "waiting time" (number of additional throws) until we get a number different from the result on the first throw. Let $X_3$ be the waiting time (number of additional throws) between the time we get the second new number and the time we get the third. Let $X_4$ be the waiting time between the third new number and the fourth. Define $X_5$ and $X_6$ analogously. Then $X=1+X_2+X_3+X_4+X_5+X_6$. By the linearity of expectation we have $E(X)=1+E(X_2)+\cdots+E(X_6)$.
The various $X_i$ have geometric distribution. Consider for example $X_2$. After the first throw, the probability that a result is "new" is $\frac{5}{6}$, so $E(X_2)=\frac{6}{5}$. Similarly, $E(X_3)=\frac{6}{4}$, and so on. Now put the pieces together.