systemd 升级因“删除 /etc/init.d/udev-mtab 的任何启动链接”而冻结

systemd 升级因“删除 /etc/init.d/udev-mtab 的任何启动链接”而冻结

我在升级运行最新 Debian 的 VPS 时遇到问题,我决定切换到测试分支以便能够使用 OpenSSH 6.7(当前稳定分支仅提供 6.0,缺少许多密码和对我来说很重要的功能)。因此,在花了大约 5 个小时尝试完成这项工作后,我放弃了,并来这里寻求指导,因为没有找到有效的解决方案。我尝试这样做,apt-get install openssh-server但它只会抛出未满足的依赖项。

[root:~]# apt-get install openssh-server
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:
lsof : Depends: libperl4-corelibs-perl or
             perl (< 5.12.3-7) but 5.20.1-4 is to be installed
openssh-server : Depends: init-system-helpers (>= 1.18~) but it is not going to be installed
              Depends: openssh-client (= 1:6.7p1-3)
              Depends: openssh-sftp-server but it is not going to be installed
              Recommends: xauth but it is not going to be installed
plymouth : Depends: init-system-helpers (>= 1.18) but it is not going to be installed
systemd-sysv : Depends: systemd (= 44-11+deb7u4) but 215-8 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

我对此表示赞同

[root:~]# 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:
  libicu48 libmagickcore5 libmagickwand5 libming1 libsystemd-daemon0 libsystemd-id128-0 libsystemd-journal0 pslib1
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  init-system-helpers libperl4-corelibs-perl systemd-sysv
The following NEW packages will be installed:
  init-system-helpers libperl4-corelibs-perl
The following packages will be upgraded:
  systemd-sysv
1 upgraded, 2 newly installed, 0 to remove and 165 not upgraded.
4 not fully installed or removed.
Need to get 0 B/88.5 kB of archives.
After this operation, 342 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up udev (215-8) ...
 Removing any system startup links for /etc/init.d/udev-mtab ...

到目前为止,该过程仍停留在这一点上,我尝试重新启动并更改源列表和更新 apt,但似乎没有任何作用。

我不会冒险进行完全重启,因为这意味着关闭一组重要的服务(邮件服务器、Web 服务器和游戏服务器),但如果现在有必要这样做,我会这么做。

相关内容