I was trying to install ubuntu 12.04 from a bootable USB, but the installation hanged at "Preparing to Install." I searched the forum for this problem and came across a thread that suggested it could be due to a problem with the partitions.
However, when I try to open gparted, it hangs, with the bar by "scanning for devices" endlessly going back and forth. I couldn't understand what my problem might be for this or the "preparing to install" freezing. Here is what I get when I try to open gparted from terminal:Thanks for any help.Code:ubuntu@ubuntu:~$ sudo /usr/sbin/gparted ====================== libparted : 2.3 ====================== ** (gpartedbin:21600): WARNING **: Could not connect: Connection refused