gpt4 book ai didi

linux - 为 tpm 模拟器安装裤子

转载 作者:IT王子 更新时间:2023-10-29 00:45:00 28 4
gpt4 key购买 nike

我已经成功安装了 tpm 模拟器。我得到这个错误

* Starting Trusted Computing daemon tcsd    /etc/init.d/trousers: 32: [: /dev/tpm: unexpected operator [fail]
invoke-rc.d: initscript trousers, action "start" failed.
dpkg: error processing trousers (--configure):
subprocess installed post-installation script returned error exit status 2
E: Sub-process /usr/bin/dpkg returned an error code (1)

执行时

sudo apt-get install tpm-tools libtspi-dev

最佳答案

该特定错误消息的答案是给定脚本 /etc/init.d/trousers 中的虚线。

违规的第 32 行:

31:
32: if [ ! -e /dev/tpm* ]
33: then

扩展为:

if [ ! -e /dev/tpm /dev/tpm0 ]

这会引发错误。将该行更改为类似以下内容:

31:
32: if [ ! -e /dev/tpm ] && [ ! -e /dev/tpm0 ]
33: then

至少应该使脚本工作。

关于linux - 为 tpm 模拟器安装裤子,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21957979/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com