3
I was upgrading Ubuntu to 10.04, when a tripswitch tripped, cutting power to the computer. When it was restarted, it booted into a command line prompt. Google tells me to try:
sudo dpkg --configure -a
This gets me a lot of output that ends with a list of packages. I can't tell you what the output is, as piping the output to more
/less
does not work (still just all scrolls by and moves to next prompt), and redirecting it to a file just results in an empty file.
Google also suggested:
sudo apt-get install -f
This also didn't work.
Is a fresh install the only solution at this point?
if redirecting the output to a file results in an empty file try redirecting STDERR to STDOUT.. That might help.. Use this:
$<command> 2>&1 | tee cmd_output.log
This should redirect STDERR to STDOUT and capture it in cmd_output.log file. If we have the error message for either apt-get or dpkg command, we can try to fix it.. – Vinay – 2011-05-23T09:23:22.763