Earlier today, I was looking up a tutorial on how to remove old kernel headers/modules and when I followed the tutorial (This is hypothetical, and I had older kernel headers previously that I purged) which was similar to the following code
- Code: Select all
:~$ dpkg -l | grep linux-headers
ii linux-headers-3.2.0-36 3.2.0-36.57 Header files related to Linux kernel version 3.2.0
ii linux-headers-3.2.0-36-generic 3.2.0-36.57 Linux kernel headers for version 3.2.0 on 32 bit x86 SMP
ii linux-headers-3.2.0-36-generic-pae 3.2.0-36.57 Linux kernel headers for version 3.2.0 on 32 bit x86 SMP
ii linux-headers-generic 3.2.0.36.43 Generic Linux kernel headers
ii linux-headers-generic-pae 3.2.0.36.43 Generic Linux kernel headers
- Code: Select all
sudo apt-get purge [3.2.0-36-generic-pae]
Needless to say, it starting purging everything from /* and beyond and I knew I was fucked; kinda...
I spent the next three hours re-installing ubuntu 11.10, and upgrading it. Then I had to recover the corrupted partition which took forever, and mount it and copy all my files, and then free the old partition space, and add it to the new one.
My question is what is the methods that you use, that is safe?
I ask because in the future, I do not want to risk having to do this again.
Thanks in advance,
- Ninjex



