使用 autoremove 命令删除 linux-image 安全吗?

使用 autoremove 命令删除 linux-image 安全吗?

我运行sudo apt-get autoremove后出现了以下软件包列表:

The following packages will be REMOVED:
  fonts-horai-umefont fonts-wqy-microhei gnome-exe-thumbnailer icoutils
  libasn1-8-heimdal:i386 libcapi20-3 libcapi20-3:i386 libexif12:i386
  libgd3:i386 libgif4 libgif4:i386 libglu1-mesa:i386 libgphoto2-6:i386
  libgphoto2-port10:i386 libgssapi3-heimdal:i386
  libgstreamer-plugins-base0.10-0:i386 libgstreamer0.10-0:i386
  libhcrypto4-heimdal:i386 libheimbase1-heimdal:i386 libheimntlm0-heimdal:i386
  libhx509-5-heimdal:i386 libieee1284-3:i386 libkrb5-26-heimdal:i386
  liblcms2-2:i386 libldap-2.4-2:i386 libltdl7:i386 libmpg123-0:i386 libodbc1
  libopenal1:i386 libosmesa6 libosmesa6:i386 libp11-kit-gnome-keyring:i386
  libroken18-heimdal:i386 libsane:i386 libsasl2-2:i386 libsasl2-modules:i386
  libsasl2-modules-db:i386 libusb-1.0-0:i386 libv4l-0:i386 libv4lconvert0:i386
  libvpx1:i386 libwind0-heimdal:i386 libxcomposite1:i386 libxcursor1:i386
  libxinerama1:i386 libxpm4:i386 libxrandr2:i386 linux-headers-3.13.0-32
  linux-headers-3.13.0-32-generic linux-image-3.13.0-32-generic
  linux-image-extra-3.13.0-32-generic linux-image-generic odbcinst
  odbcinst1debian2 p11-kit-modules:i386 p7zip ttf-wqy-microhei unixodbc
  wine-gecko2.21 wine-gecko2.21:i386 wine-mono0.0.8 winetricks
0 upgraded, 0 newly installed, 62 to remove and 0 not upgraded.
After this operation, 488 MB disk space will be freed.

其中大部分看起来都很重要,尤其是 Linux 映像等。我犹豫着是否要删除它们,所以如果有人能提供一些见解那就太好了!

答案1

通常情况下是的。只要您linux-image-generic安装了软件包,自动删除linux-image-*-generic软件包就是安全的。这样做是为了防止您的/boot目录和 GRUB 启动菜单被未使用的内核映像弄得乱七八糟。如果您不确定,请检查删除的软件包是否与您当前的内核版本相同,可以使用以下命令进行uname -r验证linux-image-generic

sudo apt-get install linux-image-generic

相关内容