我僅在運行 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。