Hint
Bayes' theorem. It will be helpful to consider the $4$ kinds of cubes: from the corner of the initial $8\times8$ cube, or from an edge, or from the interior of a face, or from inside the cube. Count how many there are of each kind (and how many painted faces they have), then the probability to roll a blank bottom for each case. Then apply Bayes' theorem.
Detailed solution
(note that the number of unpainted cubes is not $6\times64=384$ but $6^3=216$)
Corner cubes: $8$ such cubes, with $3$ faces painted (hence probability $3/6=1/2$ to roll a blank bottom.
Edge cubes (and not corner): $6$ on each edge, and there are $12$ edges, hence $72$ such cubes, with $2$ painted faces each. Probability to roll a blank bottom: $4/6=2/3$.
Face cubes (and not corner nor edge): $6\times6=36$ on each face, and there are $6$ faces, hence $216$ such cubes, with $1$ painted face each. Probability to roll a blank bottom: $5/6$.
Inner cubes: $6^3=216$ such cubes, and they have no painted face. Probability to roll a blank bottom: $1$.
Quick check: $216+216+72+8=512=8^3$.
What is the probability to roll a blank bottom (called event "blank" below)?
$$P(blank)=P(corner)\cdot P(blank|corner)+P(edge)\cdot P(blank|edge)\\+P(face)\cdot P(blank|face)+P(inner)\cdot P(blank|inner)\\=\frac{8}{512}\cdot\frac{3}{6}+\frac{72}{512}\cdot\frac{4}{6}+\frac{216}{512}\cdot\frac{5}{6}+\frac{216}{512}\cdot\frac{6}{6}=\frac78$$
Probability to have an unpainted cube given that the bottom is blank:
$$P(unpainted|blank)=\frac{P(unpainted\ and\ blank)}{P(blank)}=\frac{P(unpainted)}{P(blank)}=\frac{216/512}{7/8}=\frac{27}{56}\approx 0.48$$