This question is based on Popey's answer. I mounted my broken Ubuntu such that I can access it by Ubuntu Live CD. However, I did not manage to run one of the commands such that my X11 gets stuck at the startup.
How can you solve the following "resolve" problem?
root@ubuntu:/# sudo dpkg --configure -a
sudo: unable to resolve host ubuntu