In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to delete the redundant old kernel startup menu items in the ubuntu system". The explanation in the article is simple and clear, and is easy to learn and understand. Please follow the editor's train of thought to study and learn "how to delete the redundant old kernel startup menu items in the ubuntu system".
Note: the editor's suggestion is only applicable to the pre-10.10 version of the ubuntu system, followed by 11.04 people 11.10. 14.04 this experience is not applicable because the default desktop is different. If you want to use it, please install the GNOME desktop.
1. Open "applications", then click "attachments" in the pop-up menu, select and open "Terminal", and open the terminal command window.
2. Enter and execute the following command in the terminal command window: uname-a, check the kernel we are currently using, do not delete the error, or when we enter the system using the old kernel, we want to delete the kernel startup item, which cannot be deleted. You can delete it only if you select another kernel startup item to enter the system when you boot.
3. Enter the following command to see which kernel startup items are currently in our system. At the same time, it is also convenient for us to copy. The specific commands are:
Dpkg-- get-selections | grep linux
4. Start deleting the kernel startup item, select the kernel startup item, and then copy it, so that it is easy to operate, and then enter the following command:
Sudo apt-get remove linux-image-2.6.32.21-generic
5. during execution, we will be warned that we really need to perform this operation, enter the letter y, then enter, and begin to uninstall the old kernel.
6. After that, there are some hints of the specific uninstallation process, which have updated the information of the startup items of the system.
7. Let's use the command again: dpkg-- get-selections | grep linux to view the current kernel situation:
Deinstall is displayed after linux-image-2.6.32.21-generic, indicating that it has been uninstalled
Linux-headers-2.6.32.21 and linux-headers-2.6.32.21-generic are header files associated with the kernel that we uninstalled before, but now they are of no use to us. They can also be uninstalled. Uninstalling them can help us clear up a lot of disk space. The specific command is as follows:
Sudo apt-get remove linux-headers-2.6.32-21
Sudo apt-get remove linux-headers-2.6.32-21-generic
8. After deletion, use the command: dpkg-- get-selections | grep linux to view the information about the current kernel startup options:
Linux-headers-2.6.32-21 is gone. It has been deleted.
Linux-headers-2.6.32-21-generic is gone. It has been deleted
Linux-image-2.6.32-21-generic is displayed as deinstall, indicating that it has been uninstalled and deleted.
9. Although the message indicates that the system startup item has been updated for us when uninstalling the old kernel, to be on the safe side, we perform the sudo update-grub update boot control file.
Thank you for your reading, the above is the content of "how to delete the redundant old kernel startup menu items of the ubuntu system". After the study of this article, I believe you have a deeper understanding of how to delete the redundant old kernel startup menu items of the ubuntu system, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.