View Single Post
  (#3) Old
ugm6hr ugm6hr is offline
Senior Member
Posts: 127
Join Date: Jan 2009
Default Re: System crash during update, will not boot. HELP!! - 01-15-2009, 09:48 AM

Given the problem that the ubuntuforums website has been having, I thought I would preserve a copy of the relevant pieces of information here.

Just read all this in order, and follow:

Try Ctrl+Alt+F1 (Ctrl+Alt+Fn+A)

That should drop you to tty1 screen.

Then you need to manually enter the username and password (hope you remember them!)

Hope that works for now.
Assuming that works:

df /dev/sda2
Should tell you what % of HD space is being used (make sure there is some free - about 300000 should be OK).

If there is a reasonable amount free, plug into ethernet cable / router:
sudo dpkg --configure -a
sudo apt-get install -f
After entered user name and password - screen should appear


df /dev/sda2 gives:

Filesystem 1K-blocks 3555040 Used 2944464 Available 427036 Use% 88%

If Available > 400,000 you should be fine. Else you will have to delete files:

First, lets see how many updates actually downloaded:
ls /var/cache/apt/archives
This will list all the updates that have downloaded alphabetically - just tell me what the last one in the list is (just the bit before the version number is fine).

I would start by deleting Trash (replace your_username with your username):
sudo chown -R your_username ~/.local/share/Trash
rm -rf ~/.local/share/Trash/*
Then I would suggest deleting personal files in /home (it would be possible to save them to a USB stick if necessary) to create a little more space (at least 20MB to be safe). This can be done from the commandline too with the "rm" command. For example, the following would remove the entire contents of your "Documents" directory, while prompting for a "y" to delete each file / directory (can repeat for "Music", "Pictures", "Videos", "Desktop"):
rm -ri ~/Documents/*
You can also delete any files in the "Home" directory (i.e. not in a subdirectory) with (be careful with this - there are plenty of hidden folders and files that should not be removed!):
rm -i ~/*
If that is not enough, you could delete the downloaded update files (you may need to redownload them):
sudo apt-get clean
I have just realised my mistake: you have about 400MB free (not 4MB). Which makes sense with 12% free of a 4GB HD.

Just do the following (at your_username@your_username command line):

sudo dpkg --configure -a
sudo apt-get install -f
sudo reboot
This should allow you to log back in. Once in, open a Terminal and ensure the updates complete properly:
sudo apt-get update
sudo apt-get upgrade
Then lets free up some space (delete the update files taking 175MB space):
sudo apt-get clean
Nevertheless, you will need to be careful about future updates. Best to use the Terminal, and ensure you have at least 200MB free space before each one. Deleting Trash (as above) is useful.

To fix the Firefox bookmarks / profile issue:

Either use Terminal (Applications -> Accessories -> Terminal):
Make sure you copy and paste exactly as here
rm ~/.mozilla/"web browser"
ln -s ~/.mozilla/firefox/ ~/.mozilla/"web browser"
Or use the File Manager (aka nautilus):
Browse "Home Folder" (Places -> Home Folder)
Menu: View -> Show hidden Files
Double-click to Open ".mozilla"
Single left-click "web browser" (if it exists) and press Delete key on keyboard
Right-click "firefox" -> Make link
Right-click "Link to firefox" -> Rename; type "web browser" and press Return on keyboard

To remap the Windows key to F11 (which allows fullscreen in Firefox):
echo "keycode 115 = F11" > .Xmodmap
Reboot and "load" the xmodmap when offered.[/quote:3qwts9dc]
Reply With Quote