Ubuntu中这种依赖性升级是否安全?

我想要在运行Ubuntu 12.04 LTS的内部生产服务器上安装PHP5。 当我尝试使用apt-get进行安装时,列出了许多依赖项,并build议运行apt-get -f install 。 当我运行,我得到这个返回:

 Reading package lists... Done Building dependency tree Reading state information... Done Correcting dependencies... Done The following extra packages will be installed: linux-headers-3.2.0-59 linux-headers-3.2.0-59-generic linux-headers-server linux-image-3.2.0-59-generic linux-image-server linux-server Suggested packages: fdutils linux-doc-3.2.0 linux-source-3.2.0 linux-tools The following NEW packages will be installed: linux-headers-3.2.0-59 linux-headers-3.2.0-59-generic linux-image-3.2.0-59-generic The following packages will be upgraded: linux-headers-server linux-image-server linux-server 3 upgraded, 3 newly installed, 0 to remove and 379 not upgraded. 3 not fully installed or removed. Need to get 51.4 MB of archives. After this operation, 218 MB of additional disk space will be used. Do you want to continue [Y/n]? n 

这是在生产机器上进行安全升级吗? 我知道apt-get dist-upgrade可以是非常重要的,可以打破一切。 这是一个小升级还是重大?

谢谢

—更新1 —

/boot分区已满,不允许我运行apt-get -f install 。 尝试从ubuntugenius dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | xargs sudo apt-get -y purge -l'linux- dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | xargs sudo apt-get -y purge运行此脚本时 dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | xargs sudo apt-get -y purge dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | xargs sudo apt-get -y purge我得到以下内容:

 rgs sudo apt-get -y purge [sudo] password for tech: Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies: linux-headers-server : Depends: linux-headers-3.2.0-59-generic but it is not going to be installed linux-server : Depends: linux-headers-server (= 3.2.0.37.44) but 3.2.0.59.70 is to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution). 

我觉得我现在陷入了一个循环的一个循环现在与完整/boot ,不会让我跑修理,但我不能清除/boot没有运行修复。

—更新2

我已经成功清除/boot一些空间,现在只是得到以下错误:

 Reading package lists... Done Building dependency tree Reading state information... Done Correcting dependencies... Done The following extra packages will be installed: linux-server The following packages will be upgraded: linux-server 1 upgraded, 0 newly installed, 0 to remove and 379 not upgraded. 1 not fully installed or removed. Need to get 0 B/1,732 B of archives. After this operation, 1,024 B of additional disk space will be used. Do you want to continue [Y/n]? y dpkg: dependency problems prevent configuration of linux-server: linux-server depends on linux-image-server (= 3.2.0.37.44); however: Version of linux-image-server on system is 3.2.0.59.70. linux-server depends on linux-headers-server (= 3.2.0.37.44); however: Version of linux-headers-server on system is 3.2.0.59.70. dpkg: error processing linux-server (--configure): dependency problems - leaving unconfigured No apport report written because the error message indicates its a followup error from a previous failure. Errors were encountered while processing: linux-server E: Sub-process /usr/bin/dpkg returned an error code (1) 

apt-get -f install是一个修复操作。 所以,你的系统目前有些问题是打算解决的。

我的猜测是,如果您现在还没有安装内核,那么您确实需要这样做,因为您的系统现在可能无法启动!

这只是一个可用的内核升级。 你可以更新没有问题。 一旦你重新启动它将加载新的内核。 如果发生什么事情,你可以在你的引导程序中select较旧的内核,然后卸载最新的内核。