View Full Version : [SOLVED] Install Updates through Bootable Flash Drive?

April 26th, 2011, 03:36 PM
I have Ubuntu Natty Narwhal Beta 2. I was installing updates this morning, but as they were installing, my hardware crashed (perfect timing). I was forced to do a hard shut down. Now my desktop won't load.

I thought that if I tried to reinstall the updates, the problem would (hopefully) be fixed. Is there a way to install updates if I boot through a flash drive? If so, how would I do it?

April 26th, 2011, 05:03 PM
You can use a liveCD or USB to boot and then chroot into your system. Then you can run all the updates which should finish what was started.

Instructions on chrooting:
drs305 chroot to reinstall grub2 (you probably do not need grub reinstall)
kansasnoob- full chroot one line version with &&----

#Then run whatever other commands needed - no sudo needed (maybe good to run "df- H" and "cat /etc/issue" to be certain #you mounted the correct partition).
Commands once in chroot:
if not chroot use: sudo -i
apt-get autoclean # only removes files that cannot be downloaded anymore (obsolete)
apt-get clean
apt-get update #resync package index
apt-get upgrade #newest versions of all packages, update must be run first
#would upgrade you to the latest kernel in the repositories
#dist-upgrade is also able to remove existing packages if required
apt-get dist-upgrade
apt-get -f install
dpkg --configure -a

April 28th, 2011, 02:48 AM
Problem solved. Thanks!