Today I had a bit of an issue. I ran a auto cleanup script and it removed GDM. This meant I had no way of being able to log into the desktop.
I was kinda shocked that in my Google searches I couldn't find any info on how to install packages from recovery.
So here is just a simple guide for anymore that may come across the same/similar problem.
If the system is using wifi then you will need to copy the packages to the cache. This can be done with a live cd.
Find the packages you want to install from here: http://packages.ubuntu.com/search?keywords=search
Then copy them to the cache on the system you want them installed on.
Now boot into recovery.
Then select root terminal.
Once in the terminal enter this:
Then use aptitude to install the package, not apt-get.
I was kinda shocked that in my Google searches I couldn't find any info on how to install packages from recovery.
So here is just a simple guide for anymore that may come across the same/similar problem.
If the system is using wifi then you will need to copy the packages to the cache. This can be done with a live cd.
Find the packages you want to install from here: http://packages.ubuntu.com/search?keywords=search
Then copy them to the cache on the system you want them installed on.
Code:
/var/cache/apt/archives
Now boot into recovery.
Then select root terminal.
Once in the terminal enter this:
Code:
startx
mount -o remount,rw /
Then use aptitude to install the package, not apt-get.
Code:
sudo aptitude install *pacakage name*