LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1080|回复: 11

升级udev却无法删除hotplug,怎么办?

[复制链接]
发表于 2006-1-5 21:52:14 | 显示全部楼层 |阅读模式
升级的时候非要删除hotplug,可是他的依赖关系比较复杂啊,大虾们怎么解决的:ask
发表于 2006-1-5 22:03:17 | 显示全部楼层
不应该吧,我这里就没有这个问题。更新的时候会自动把hotplug卸载掉。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-1-5 22:20:33 | 显示全部楼层
我这里是告诉我依赖hwd这个包,可是我把hwd删除了也不行。
是不是跟hwdetect有关系?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-1-5 22:22:18 | 显示全部楼层
[root@huang ~]# pacman -Syu
:: Synchronizing package databases...
current                  [############################################################] 100%      48K   117.2K/s  00:00:00
extra                    [############################################################] 100%     228K    79.4K/s  00:00:02
:: community is up to date
:: udev conflicts with hotplug. Remove hotplug? [Y/n] Y

Remove:  hotplug

Targets: udev-079-1

Total Package Size:   0.2 MB

Proceed with upgrade? [Y/n] Y

checking package integrity... done.
error: this will break the following dependencies:
  hotplug: is required by hwd
回复 支持 反对

使用道具 举报

发表于 2006-1-5 22:22:50 | 显示全部楼层
Quote from Judd:
Comment by Judd Vinet (judd) - Wednesday, 04 January 2006, 01:20AM

For some reason, even though hwd no longer depends on hotplug, it has been left as a REQUIREDBY package in hotplug, which is preventing you from upgrading.

Here are the steps to manually fix. I know this isn't ideal. If many users have this problem, I'll post a script or equivalent that will do the job for them.

1. As root, edit "/var/lib/pacman/local/hotplug-2004_09_23-4/depends" with a text editor
2. Delete all package names that come _after_ "%REQUIREDBY%" and _before_ the blank line that comes before "%CONFLICTS%"

For example, here is the depends file before editing. I've explicitly marked the blank lines.

[snip]
%DEPENDS%
usbutils
-----BLANK LINE HERE-----
%REQUIREDBY%
hwd
pcmciautils
udev
-----BLANK LINE HERE-----
%CONFLICTS%
-----BLANK LINE HERE-----
%PROVIDES%
-----BLANK LINE HERE-----
[/snip]


Now here is the file after editing.

[snip]
%DEPENDS%
usbutils
-----BLANK LINE HERE-----
%REQUIREDBY%
-----BLANK LINE HERE-----
%CONFLICTS%
-----BLANK LINE HERE-----
%PROVIDES%
-----BLANK LINE HERE-----
[/snip]


Once finished editing, try upgrading again.
回复 支持 反对

使用道具 举报

发表于 2006-1-5 22:22:54 | 显示全部楼层
没有关系应该…………按理说应该没什么问题啊。奇怪。

pacman -Syu,提示移除hotplug的时候选Y,一直执行下去,输出信息全贴出来。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-1-5 22:36:27 | 显示全部楼层
按照你给的方法到是解决问题了,可是不知道重启后会不会有问题!!
谢谢!!!
回复 支持 反对

使用道具 举报

发表于 2006-1-5 22:42:25 | 显示全部楼层
ganloo,真奇怪,这个问题是什么造成的?为什么我upgrade的时候非常顺利?judd说的some reason也太含糊了……
回复 支持 反对

使用道具 举报

发表于 2006-1-5 23:37:05 | 显示全部楼层
Post by hhf3498
我这里是告诉我依赖hwd这个包,可是我把hwd删除了也不行。
是不是跟hwdetect有关系?


我先前也提到依赖hwd这个包,我没敢升级
然后我先升级的内核,再升级的udev,
udev和hotplug冲突了,然后就把hotplug卸了.
hwd还在.
好像跟升级的顺序有关...
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-1-5 23:44:34 | 显示全部楼层
跟顺序是没关系的,我也是后来先升级内核和其他软件再来升级udev可是还不行,只有用了diony提供的方法才解决!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表