如何安装 systemd-journal-gatewayd

如何安装 systemd-journal-gatewayd

如何在树莓派上安装 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:~ $

答案1

您需要安装systemd-journal-remote包裹:

在 debian 延伸上

apt install systemd-journal-remote

在 debian Jessie 上systemd-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

相关内容