Article Title: how to update the kernel and clear useless files in ubuntu. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
When I update the kernel for the first time, I am prompted
"Is the menu. list of the boot file automatically updated after being edited?
At that time, I thought I had to re-edit the update.
"No".
Why do I need to edit it? Due to hardware problems, I added the noapic parameter to start the system.
As a result, the problem arises. Although a new kernel is installed on the machine, but menu. list is not updated, I have to use the old kernel.
Manually add the file name of the new kernel to menu. list, because I don't know what uuid is, I didn't write it.
Restart the system...
Select the newly added kernel...
Boot successful...
...
The ubuntu system gets stuck at the startup screen.
After some searching, I got it done after asking a question.
Uuid seems to be the recorded hard disk information. I thought about copying the uuid of the old kernel to the new kernel, but I was afraid that it would be worse if there were any major errors because I didn't know what the uuid was.
After all, I am most afraid of the issue of "guiding" Hard Disk Data.
The following are some knowledge required to update the kernel:
Edit software source
Sudo gedit/etc/apt/sources. list
View the existing kernel of the system.
Dpkg-l | grep linux
Or
Dpkg? Get-selections | grep linux
Display current Kernel
Uname-
Upgrade the kernel
Apt-get dist-upgrade
Delete Kernel
Sudo apt-get remove kernel name
Files with an image need to be deleted and must contain all versions and other characters. Other related files are automatically deleted.
For example:
Sudo apt-get remove? Purge linux-image-2.6.24-19-generic
? The purge parameter indicates that the object is permanently deleted.
In addition, when I deleted the kernel 2.6.24-19, I forgot to use it. Fortunately, there is no risk. The current kernel cannot be deleted.
Update menu. list
Sudo update-grub
Back up menu. list and rename or delete it. This will automatically recreate the file. Copy the required items in the original menu. list to the new menu. list.
Grub does not add boot information from other systems during reconstruction. You just need to copy it from the original file.
System spam cleaning
Sudo apt-get autoclean clear old software Cache
Sudo apt-get clean all software caches
Sudo apt-get autoremove deletes isolated software that is no longer used by the System
Reference webpage:
Http://gflyer2911.spaces.live.com/blog/cns! 1966A72836DAFE56! 148. entry
Unlike Windows systems, Ubuntu Linux does not generate useless junk files. However, during cache upgrade, Ubuntu Linux does not automatically delete these files. Today, we will discuss how to clean these junk files.
[1] [2] Next page