首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Ubuntu中的这种依赖升级安全吗?

Ubuntu中的这种依赖升级安全吗?
EN

Server Fault用户
提问于 2014-02-21 16:33:43
回答 2查看 349关注 0票数 0

我想在运行Ubuntu12.04LTS的内部生产服务器上安装PHP5。当我尝试使用apt-get安装时,它列出了大量的依赖项,并建议运行apt-get -f install。当我运行它时,我会得到它:

代码语言:javascript
复制
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运行此脚本时,我得到以下信息:

代码语言:javascript
复制
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中的一些空间:

代码语言:javascript
复制
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)
EN

回答 2

Server Fault用户

回答已采纳

发布于 2014-02-21 16:48:50

apt-get -f install是一种修复手术。因此,您的系统目前有问题,这是要修复的。

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

票数 1
EN

Server Fault用户

发布于 2014-02-21 16:36:40

这只是一个可用的内核升级。您可以毫无问题地进行更新。一旦重新启动,它将加载新内核。如果确实发生了什么事情,您可以在引导加载程序中选择旧内核,然后卸载最新的内核。

票数 1
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/577387

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档