[问题] Edgy升级到Feisty出现问题,与Apache有关,大伙帮忙看看!

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
头像
xport
帖子: 1277
注册时间: 2006-05-19 21:23
联系:

[问题] Edgy升级到Feisty出现问题,与Apache有关,大伙帮忙看看!

#1

帖子 xport » 2007-03-26 12:17

更新sources.list到feisty后,执行了apt-get update,然后apt-get dist-upgrade的时候出来这个了:

代码: 全选

正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
Reading state information... 完成      
您也许需要运行“apt-get -f install”来纠正上面的错误。
下列的软件包有不能满足的依赖关系:
  apache2: 依赖: apache2-mpm-worker (>= 2.2.3-3.2build1) 但是它还没有被安装 或
                   apache2-mpm-prefork (>= 2.2.3-3.2build1) 但是 2.0.55-4ubuntu4 已经安装了 或
                   apache2-mpm-event (>= 2.2.3-3.2build1) 但是它还没有被安装
  libapache2-mod-php5: 依赖: apache2.2-common 但是它还没有被安装
E: 不能满足依赖关系。不妨试一下 -f 选项。
执行 apt-get -f install 后看到:

代码: 全选

正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
Reading state information... 完成      
正在更正依赖关系... 完成
The following packages were automatically installed and are no longer required:
  apache2-common
使用 'apt-get autoremove' 来删除它们。
将会安装下列额外的软件包:
  apache2-mpm-prefork apache2.2-common
下列软件包将被【卸载】:
  apache2-common
下列【新】软件包将被安装:
  apache2.2-common
下列的软件包将被升级:
  apache2-mpm-prefork
共升级了 1 个软件包,新安装了 1 个软件包,要卸载 1 个软件包,有 910 个软件未被升级。
有 3 个软件包没有被完全安装或卸载。
需要下载 0B/1358kB 的软件包。
解压缩后会消耗掉 602kB 的额外空间。
您希望继续执行吗?[Y/n]Y
dpkg:apache2-common:有依赖问题,但是如您所愿还是继续删除:
 apache2-mpm-prefork 依赖于 apache2-common (= 2.0.55-4ubuntu4).
(正在读取数据库 ... 系统当前总共安装有 104408 个文件和目录。)
正在删除 apache2-common ...
 * Stopping apache 2.0 web server...                                                                    [fail] 
invoke-rc.d: initscript apache2, action "stop" failed.
dpkg:处理 apache2-common (--remove)时出错:
 子进程·pre-removal script·返回了错误号·1
在处理时有错误发生:
 apache2-common
E: Sub-process /usr/bin/dpkg returned an error code (1)
过不去了,怎么办呢?
其实我是一个演员!-http://blog.csdn.net/xport/
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

#2

帖子 eexpress » 2007-03-26 12:22

aptitude试下,看几种方案
还不行,就卸载先。。。--purge卸载
● 鸣学
头像
juanzhewudi
帖子: 1114
注册时间: 2006-01-19 11:55
来自: HUST
联系:

#3

帖子 juanzhewudi » 2007-03-26 12:38

手动把apache停了试试,可能是配置出错无法停apache后就跳出了
头像
xport
帖子: 1277
注册时间: 2006-05-19 21:23
联系:

#4

帖子 xport » 2007-03-26 16:23

用了Synaptic把apache2移除后就可以继续升级动作了!
其实我是一个演员!-http://blog.csdn.net/xport/
头像
seabee
帖子: 243
注册时间: 2006-11-08 13:02

#5

帖子 seabee » 2007-10-06 22:51

edgy server 升级到7.04也遇到这样的情况。。。
救命啊~~
没有X的。。。有没有解决方法呢?
上次由 seabee 在 2007-10-06 23:18,总共编辑 1 次。
简简单单的生活,自自然然的我~www.3gcomet.com
头像
seabee
帖子: 243
注册时间: 2006-11-08 13:02

#6

帖子 seabee » 2007-10-06 22:54

root@uServer:/var/log/apache2# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
apache2-common
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
apache2-mpm-prefork apache2.2-common
The following packages will be REMOVED:
apache2-common
The following NEW packages will be installed:
apache2.2-common
The following packages will be upgraded:
apache2-mpm-prefork
1 upgraded, 1 newly installed, 1 to remove and 199 not upgraded.
6 not fully installed or removed.
Need to get 0B/1359kB of archives.
After unpacking 602kB of additional disk space will be used.
Do you want to continue [Y/n]? y
dpkg: apache2-common: dependency problems, but removing anyway as you request:
apache2-mpm-prefork depends on apache2-common (= 2.0.55-4ubuntu4.1).
(Reading database ... 54809 files and directories currently installed.)
Removing apache2-common ...
* Stopping apache 2.0 web server... [fail]
invoke-rc.d: initscript apache2, action "stop" failed.
dpkg: error processing apache2-common (--remove):
subprocess pre-removal script returned error exit status 1
Errors were encountered while processing:
apache2-common
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@uServer:/var/log/apache2#
简简单单的生活,自自然然的我~www.3gcomet.com
回复