Debian

如何安裝 systemd-journal-gatewayd

  • December 16, 2017

如何在樹莓派上安裝 systemd-journal-gatewayd? https://www.freedesktop.org/software/systemd/man/systemd-journal-gatewayd.service.html

拉緊

michael@stetch:~ $ sudo apt-get install systemd-journal-gatewayd
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package systemd-journal-gatewayd
michael@stetch:~ $ sudo apt-get install systemd-journal-gatewayd.socket
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package systemd-journal-gatewayd.socket
E: Couldn't find any package by glob 'systemd-journal-gatewayd.socket'
E: Couldn't find any package by regex 'systemd-journal-gatewayd.socket'
michael@stetch:~ $ sudo apt-get install systemd-journal-gatewayd.service
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package systemd-journal-gatewayd.service
E: Couldn't find any package by glob 'systemd-journal-gatewayd.service'
E: Couldn't find any package by regex 'systemd-journal-gatewayd.service'
michael@stetch:~ $

傑西

michael@jessie:~ $ sudo apt-get install systemd-journal-gatewayd
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package systemd-journal-gatewayd
michael@jessie:~ $ sudo apt-get install systemd-journal-gatewayd.socket
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package systemd-journal-gatewayd.socket
E: Couldn't find any package by regex 'systemd-journal-gatewayd.socket'
michael@jessie:~ $ sudo apt-get install systemd-journal-gatewayd.service
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package systemd-journal-gatewayd.service
E: Couldn't find any package by regex 'systemd-journal-gatewayd.service'
michael@jessie:~ $

您需要安裝systemd-journal-remote軟體包:

在 Debian 上拉伸

apt install systemd-journal-remote

在 debian Jessiesystemd-journal-remote上可用 jessie-backports

apt-get -t jessie-backports install systemd-journal-remote

啟動服務:

systemctl start systemd-journal-gatewayd.service

要從 Jessie-backports 安裝軟體包,您應該:

編輯你的sources.list

nano /etc/apt/sources.list

添加以下行:

deb http://deb.debian.org/debian jessie-backports main contrib non-free

保存然後更新:

apt-get update

引用自:https://unix.stackexchange.com/questions/411266