LinuxSir.cn,穿越时空的Linuxsir!

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

[help]apt-get dist-upgrade error{DONE}

[复制链接]
发表于 2005-8-16 22:29:24 | 显示全部楼层 |阅读模式
After run apt-get dist-upgrade in my debain, some errors are shown as blow:
Reading package lists... Done
Building dependency tree... Done
The following packages will be upgraded:
   udev (0.056-3 => 0.066-1)
1 upgraded, 0 newly installed, 0 to remove and 106 not upgraded.
268 not fully installed or removed.
Need to get 0B/307kB of archives.
After unpacking 246kB of additional disk space will be used.
(Reading database ... 91499 files and directories currently installed.)
Preparing to replace udev 0.056-3 (using .../archives/udev_0.066-1_i386.deb) ...
udev requires a kernel >= 2.6.12, upgrade aborted.
dpkg: error processing /var/cache/apt/archives/udev_0.066-1_i386.deb (--unpack):
subprocess pre-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/udev_0.066-1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

It can't work when i want to install kernel 2.6.12, the error still comes again:
Reading package lists... Done
Building dependency tree... Done
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
  hal: Depends: udev (>= 0.063) but 0.056-3 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

everyone who could help me solve the problem? Many thanks for your advise!


after looking at the manual for apt_preferences, I added

Package: udev
Pin: version 0.056*
Pin-Priority: 1001

to /etc/apt/preferences and reran

apt-get dist-upgrade

and all is well.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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