Ubuntu 14.10 服务器启动

Ubuntu 14.10 服务器启动

我在运行 14.04 Server 的硬件上只安装了 OpenSSH 服务器。除了启动时要经过的检查页面之外,我认为它应该能够识别 USB 键盘的滚动锁定,但事实并非如此。

一切似乎都很好,直到我登录并得到:

[305.760849] system-logind[1419]: Failed to start unit [email protected]: 
 Unknown unit: [email protected]
[305.761004] system-logind[1419]: Failed to start user services: 
  Unknown unit: [email protected]

这两个错误是否与 OpenSSH 有关,因为它尚未设置,或者与其他东西有关?

我尝试搜索系统和 Ubuntu 上的手册和帮助文件,但没有成功。

答案1

为了挽回我的声誉,我做了更多的研究,并尝试了一些方法。在做了以下操作后,我不再收到错误消息,我的服务器似乎运行正常。我使用了此页面SystemdForUpstartUsers寻求指导。

我不知道它做了什么,但它似乎有效。我感觉 Upstart 和 Systemd 有冲突。强制安装 Systemd 后,Upstart 被删除了。

apt-get --force-yes install systemd-sysv ubuntu-standard
update-initramfs -u

这是我的输出:

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  ubuntu-minimal upstart ureadahead
The following NEW packages will be installed:
  systemd-sysv ubuntu-standard
0 upgraded, 2 newly installed, 3 to remove and 0 not upgraded.
Need to get 8,548 B/11.4 kB of archives.
After this operation, 723 kB disk space will be freed.
Do you want to continue? [Y/n]
WARNING: The following packages cannot be authenticated!
  systemd-sysv ubuntu-standard
Install these packages without verification? [y/N] y
Get:1 http://us.archive.ubuntu.com/ubuntu/ utopic-updates/universe systemd-sysv amd64 208-8ubuntu8.2 [8,548 B]
Fetched 8,548 B in 4s (2,042 B/s)
(Reading database ... 132103 files and directories currently installed.)
Removing ubuntu-minimal (1.327) ...
Removing ureadahead (0.100.0-16) ...
dpkg: upstart: dependency problems, but removing anyway as you requested:
 friendly-recovery depends on upstart | systemd-sysv; however:
  Package upstart is to be removed.
  Package systemd-sysv is not installed.

Removing upstart (1.13.2-0ubuntu2) ...
Processing triggers for man-db (2.7.0.2-2) ...
Selecting previously unselected package systemd-sysv.
(Reading database ... 132056 files and directories currently installed.)
Preparing to unpack .../systemd-sysv_208-8ubuntu8.2_amd64.deb ...
Unpacking systemd-sysv (208-8ubuntu8.2) ...
Selecting previously unselected package ubuntu-standard.
Preparing to unpack .../ubuntu-standard_1.327_amd64.deb ...
Unpacking ubuntu-standard (1.327) ...
Processing triggers for man-db (2.7.0.2-2) ...

希望这对某人有帮助。

答案2

我在相对较新安装的 ubuntu 15.10 上也遇到了这个问题,上面的答案说这为我解决了这个问题

    sudo  apt-get install systemd-sysv

我有与上述相同的 dmesg,此外我的症状包括无法从挂起状态启动,这迫使我每次都进行冷启动

答案3

我试过了,它有效

do-release-upgrade -d 

您将使用“-d”开关进入开发版本。

对于这个特定的服务器,我一开始使用的是 14.04,然后执行了“do-release-upgrade”,将我升级到了 14.10。这时我开始收到同样的错误消息。所以我发现更新至 Ubuntu 14.10 后...并决定尝试一下。然后我升级到了版本 15。

相关内容