![Debian 6 升级到 Wheezy 然后测试版本需要内核升级吗?](https://linux22.com/image/34647/Debian%206%20%E5%8D%87%E7%BA%A7%E5%88%B0%20Wheezy%20%E7%84%B6%E5%90%8E%E6%B5%8B%E8%AF%95%E7%89%88%E6%9C%AC%E9%9C%80%E8%A6%81%E5%86%85%E6%A0%B8%E5%8D%87%E7%BA%A7%E5%90%97%EF%BC%9F.png)
Debian 6 升级到 Wheezy 然后测试版本需要内核升级吗?
我正在做一次紧张的升级。然后我开始测试。每个步骤都先升级然后再升级。我想我可能升级过度了。
反正。现在我无法 apt-get 安装任何东西。
thw@chttl-90092eb8e95ecef8:~/node-v0.10.33-linux-x64$ sudo apt-get upgrade
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:
consolekit : Breaks: udev (< 204-1) but 175-7.2 is installed
libcairo-perl : Depends: perlapi-5.14.2 but it is not installable
libfont-freetype-perl : Depends: perlapi-5.14.2 but it is not installable
libglib-perl : Depends: perlapi-5.14.2 but it is not installable
libgtk2-perl : Depends: perlapi-5.14.2 but it is not installable
libhtml-parser-perl : Depends: perlapi-5.14.2 but it is not installable
liblocale-gettext-perl : PreDepends: perlapi-5.14.2 but it is not installable
libnet-dbus-perl : Depends: perlapi-5.14.2 but it is not installable
libnet-ssleay-perl : Depends: perlapi-5.14.2 but it is not installable
libpango-perl : Depends: perlapi-5.14.2 but it is not installable
libperl5.14 : Depends: perl-base (= 5.14.2-21+deb7u2) but 5.20.1-3 is installed
libtext-charwidth-perl : Depends: perlapi-5.14.2 but it is not installable
libtext-iconv-perl : Depends: perlapi-5.14.2 but it is not installable
libuuid-perl : Depends: perlapi-5.14.2 but it is not installable
libxml-parser-perl : Depends: perlapi-5.14.2 but it is not installable
lsof : Depends: libperl4-corelibs-perl but it is not installed or
perl (< 5.12.3-7) but 5.20.1-3 is installed
E: Unmet dependencies. Try using -f.
随着apt-get install -f
我得到
(Reading database ... 154815 files and directories currently installed.)
Preparing to unpack .../archives/udev_215-7_amd64.deb ...
Since release 198, udev requires support for the following features in
the running kernel:
- inotify(2) (CONFIG_INOTIFY_USER)
- signalfd(2) (CONFIG_SIGNALFD)
- accept4(2)
- open_by_handle_at(2) (CONFIG_FHANDLE)
- timerfd_create(2) (CONFIG_TIMERFD)
- epoll_create(2) (CONFIG_EPOLL)
Please upgrade your kernel before or while upgrading udev.
AT YOUR OWN RISK, you can force the installation of this version of udev
WHICH DOES NOT WORK WITH YOUR RUNNING KERNEL AND WILL BREAK YOUR SYSTEM
AT THE NEXT REBOOT by creating the /etc/udev/kernel-upgrade file.
There is always a safer way to upgrade, do not try this unless you
understand what you are doing!
dpkg: error processing archive /var/cache/apt/archives/udev_215-7_amd64.deb (--unpack):
subprocess new pre-installation script returned error exit status 1
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
Errors were encountered while processing:
/var/cache/apt/archives/udev_215-7_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
我需要为此升级内核吗?我不是已经用upgrade
and这样做了吗dist-upgrade
?或者我只需要重新启动?
答案1
我认为问题在于apt-get upgrade
或者apt-get dist-upgrade
已经更新了内核映像。但是,新内核只有在重新启动后才会生效。 udev 软件包的版本需要新内核。因此,它警告我,我的系统当前运行的旧映像无法与新的 udev 一起使用,并且拒绝安装。
我只需重新启动系统即可使用新内核。然后我就跑了apt-get install -f
,没有遇到进一步的问题。