Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I was updating my netbook latest version after 1st installation so a lot of updates where there. The updates were downloaded and it was being installed. The computer got switched off in between. Now its not working. I want to just run the command "apt-get upgrade". What is the procedure...

share|improve this question
add comment

2 Answers

up vote 0 down vote accepted

You didn't say how it isn't working. I'm assuming that you mean that your computer won't boot. In that case, you can try booting into a LiveCD or LiveUSB environment (of the same version as your Ubuntu installation). Then, mount your hard drive somewhere. I'm assuming that you mounted it on /mnt for the sake of this answer. Any other place is fine, as long as you make the necessary adjustments to my instructions.

sudo mount --bind /sys /mnt/sys
sudo mount --bind /proc /mnt/proc
sudo chroot /mnt

At this point, you're in your machine with root privileges.

apt-get upgrade # Or whatever commands you want.
exit # Back to the live environment...
sudo umount /mnt/{proc,sys}
sudo umount /mnt
sudo reboot
share|improve this answer
add comment

If you want to upgrade it to Natty 11.04, Ctrl + F2 and type

update-manager -d

This will check for update of distribution.

If you don't want to update your distro then simply (in a terminal):

sudo apt-get update 
sudo apt-get upgrade

For bringing up a terminal Ctrl + T or F2 while you boot or Ctrl + Shift + 8 number 2-8 for the relevant tty

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.