This Tuesday, I found some ways to delete system spam from the Internet.
Sudo apt-Get autoclean
Sudo apt-Get clean
Sudo apt-Get autoremove
These three commands mainly clean up and upgrade the cache and useless packages.
Tracker is also uninstalled. It is said that it can produce a lot of cache and affect the system boot speed.
Run the command dpkg -- Get-selections | grep Linux on the terminal.
If there is an image, the kernel file should first look at the current kernel: uname-A. Do not delete the kernel version currently in use!
Delete the old kernel file:
Sudo apt-Get remove Kernel File name (e.g.: linux-image-2.6.27-2-generic)
Delete the kernel and release the space. The space should be-MB.
I saw someone like: linux-image-2.6.27-2-generic, And then I also deleted my linux-image-2.6.27.7-generic, And then I use uname-a to see, just deleted is my use of the kernel, at that time, I didn't respond yet, because a Chinese Input Method scim-pinyin was installed and the system needs to be restarted. After the restart, I found that grub does not have the ubuntu8.10 option, my head was instantly filled with ice water in the Arctic, just like a blank space of three minutes, and then I immediately fainted.
After searching for related posts on the internet, I found that a person, like me, had immediately reinstalled the system, but I couldn't do it. After such a long time, I completed the setup, after setting up such a depressing environment, I won't be ruined. Oh no, I am ruined for a moment. So I found a senior who graduated from college to work hard. At first, people didn't understand it, so after two nights (for various reasons, we can only contact by email, so we can only receive messages one day), and then tell me when I start the grub interface, press C to enter the command line, I enter, see is grup> command line, then I use help to see what command, find linux-image-2.6.27-7-generic, not found, I was sure I deleted the kernel, so I tried it again with live CD without changing anything on the computer, I checked the live CD/boot on the/BOOT disk where the Ubuntu system is located and did not have any kernel information. So I opened the terminal and wanted to install the kernel, however, this is a live CD terminal and cannot be used to access this user. Therefore, it must not be installed.
It was very cold yesterday. I didn't know how to proceed to that step. It took another half a day this morning to complete the solution. The solution is as follows:
Use live CD or the same system of others to copy two files under/usr/src to the/usr/src/disk where the Ubuntu system is installed, but when I copied it, I jumped out without knowing what went wrong. But it was strange that I saw more than 60 m in the USB flash drive and copied it to the computer more than 20 m, I don't have to worry about it, so I should have not copied it successfully, but I modified the menu. LST, as follows:
Title Ubuntu 8.10, kernel 2.6.27-7-generic
UUID 0437eece-99c3-4846-91bf-d526b591081e
Kernel/boot/vmlinuz-2.6.27-7-generic root = UUID = 0437eece-99c3-4846-91bf-d526b591081e Ro locale = zh_cn quiet splash
Initrd/boot/initrd. img-2.6.27-7-generic
Quiet
Title Ubuntu 8.10, kernel 2.6.27-7-generic (recovery mode)
UUID 0437eece-99c3-4846-91bf-d526b591081e
Kernel/boot/vmlinuz-2.6.27-7-generic root = UUID = 0437eece-99c3-4846-91bf-d526b591081e Ro locale = zh_cn single
Initrd/boot/initrd. img-2.6.27-7-generic
(Note that the uuid here is based on the menu below. the UUID of memtest86 + in lst is written. I don't know what it is, maybe it is the computer ID or something else)
And set menu. initrd. img-2.6.27-7-generic and vmlinuz-2.6.27-7-generic copy to/boot, and then copy my linux-image-2.6.27-7-generic.deb online to/boot to re-install the kernel, in this way, the grub option will be available during the restart and you will be able to access the logon interface of the system, but the keyboard and mouse cannot be moved, you may have deleted the driver when you delete the kernel, So I press CTRL + ALT + F2 to enter the character interface, use sudo Su to enter the root permission, and then use it in/boot.
Dpkg-I/boot/linux-image-2.6.27-7-generic.deb
Install the kernel again, and then restart it.
After five days of suffering, I finally saw a sunny day.