debian lenny 错误libudev0:depends:udev
debian lenny安装tomcat6出现错误libudev0:depends:udev - cooliron的日志 - 网易博客
出现的错误如下:
You might want to run apt-get -f install to correct these:
the following packages have unmet dependencies:
libudev0: Depends: udev (= 151-3) but 0.125-7+lenny3 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
E: apt-get failed
其解决办法如下:
01 apt-get update
02 apt-get dist-upgrade
03 apt-get update
04 apt-get dist-upgrade
05 touch /etc/udev/kernel-upgrade
06 dpkg -i /var/cache/apt/archives/udev_151-3_i386.deb
07 apt-get dist-upgrade -f
出现安装的过程一路默认即可。
成功后,在安装tomcat
apt-get install tomcat6
成功。
参考:http://devplant.net/2010/03/26/linux-upgrading-debian-lenny-to-testing-halts-on-udev-package
![](http://img.zemanta.com/pixy.gif?x-id=2259fdc6-451d-817a-9dc5-3b14a62c7611)