zoukankan      html  css  js  c++  java
  • 解决"更新需要花去xM磁盘上总计/boot的空间..."的问题

    解决"更新需要花去xM磁盘上总计/boot的空间..."的问题
     
    系统自动升级会安装多个内核,卸载多余的内核可以获得更多磁盘空间
     
    root@local-Lenovo-G470:/home/local# dpkg --get-selections|grep linux      
     //带有image的为系统内核
      www.2cto.com  
    libselinux1
    install
    linux-firmware install
    linux-generic install
    linux-headers-3.2.0-23 install
    linux-headers-3.2.0-23-generic install
    linux-headers-3.2.0-24 install
    linux-headers-3.2.0-24-generic install
    linux-headers-3.2.0-27 install
    linux-headers-3.2.0-27-generic install
    linux-headers-3.2.0-29 install
    linux-headers-3.2.0-29-generic install
    linux-headers-generic install
    linux-image-3.2.0-24-generic install
    linux-image-3.2.0-27-generic install
    linux-image-3.2.0-29-generic install
    linux-image-generic install
    root@local-Lenovo-G470:/home/local# uname -a          //查看系统当前使用内核
    Linux local-Lenovo-G470 3.2.0-29-generic #46-Ubuntu SMP Fri Jul 27 17:03:23 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
     
    root@local-Lenovo-G470:/home/local# sudo apt-get remove image-3.2.0-24-generic       //卸载多余内核
    正在读取软件包列表... 完成
    正在分析软件包的依赖关系树       
    正在读取状态信息... 完成       
    注意,根据正则表达式 image-3.2.0-24-generic 选中了 linux-image-3.2.0-24-generic
    注意,根据正则表达式 image-3.2.0-24-generic 选中了 linux-image-3.2.0-24-generic-pae
     
    下列软件包将被【卸载】:  www.2cto.com  
      linux-image-3.2.0-24-generic
    升级了 0 个软件包,新安装了 0 个软件包,要卸载 1 个软件包,有 90 个软件包未被升级。
    解压缩后将会空出 149 MB 的空间。
    您希望继续执行吗?[Y/n]y
     
    (正在读取数据库 ... 系统当前共安装有 251973 个文件和目录。)
    正在卸载 linux-image-3.2.0-24-generic ...
    Examining /etc/kernel/prerm.d.
    run-parts: executing /etc/kernel/prerm.d/dkms 3.2.0-24-generic /boot/vmlinuz-3.2.0-24-generic
    Examining /etc/kernel/postrm.d .
    run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.2.0-24-generic /boot/vmlinuz-3.2.0-24-generic
    update-initramfs: Deleting /boot/initrd.img-3.2.0-24-generic
    run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.2.0-24-generic /boot/vmlinuz-3.2.0-24-generic
     
    Generating grub.cfg ...  www.2cto.com  
    Found linux image: /boot/vmlinuz-3.2.0-29-generic
    Found initrd image: /boot/initrd.img-3.2.0-29-generic
    Found linux image: /boot/vmlinuz-3.2.0-27-generic
    Found initrd image: /boot/initrd.img-3.2.0-27-generic
    Found memtest86+ image: /memtest86+.bin
    Found Windows 7 (loader) on /dev/sda1
    Found Windows Recovery Environment (loader) on /dev/sda4
    done
    root@local-Lenovo-G470:/home/local# 
  • 相关阅读:
    (双指针 二分) leetcode 167. Two Sum II
    (双指针) leetcode 485. Max Consecutive Ones
    (双指针) leetcode 27. Remove Element
    (String) leetcode 67. Add Binary
    (数组) leetcode 66. Plus One
    (N叉树 BFS) leetcode429. N-ary Tree Level Order Traversal
    (N叉树 递归) leetcode 590. N-ary Tree Postorder Traversal
    (N叉树 递归) leetcode589. N-ary Tree Preorder Traversal
    (N叉树 DFS 递归 BFS) leetcode 559. Maximum Depth of N-ary Tree
    (BST 递归) leetcode98. Validate Binary Search Tree
  • 原文地址:https://www.cnblogs.com/androidstudy/p/5134606.html
Copyright © 2011-2022 走看看