据我所知,我需要安装这两个包才能与 tpm 模块通信。
我在安装这两个包的时候遇到了以下错误:
sudo apt-get install tpm-tools trousers
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
tpm-tools trousers
0 upgraded, 2 newly installed, 0 to remove and 382 not upgraded.
Need to get 0 B/250 kB of archives.
After this operation, 3506 kB of additional disk space will be used.
Selecting previously unselected package trousers.
(Reading database ... 176907 files and directories currently installed.)
Preparing to unpack .../trousers_0.3.13-4_amd64.deb ...
Unpacking trousers (0.3.13-4) ...
Selecting previously unselected package tpm-tools.
Preparing to unpack .../tpm-tools_1.3.8-2_amd64.deb ...
Unpacking tpm-tools (1.3.8-2) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for systemd (229-4ubuntu7) ...
Processing triggers for ureadahead (0.100.0-19) ...
ureadahead will be reprofiled on next reboot
Setting up trousers (0.3.13-4) ...
Job for trousers.service failed because the control process exited with error code. See "systemctl status trousers.service" and "journalctl -xe" for details.
invoke-rc.d: initscript trousers, action "start" failed.
dpkg: error processing package trousers (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of tpm-tools:
tpm-tools depends on trousers; however:
Package trousers is not configured yet.
dpkg: error processing package tpm-tools (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Processing triggers for systemd (229-4ubuntu7) ...
Processing triggers for ureadahead (0.100.0-19) ...
Errors were encountered while processing:
trousers
tpm-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
sudo apt-get install trousers
Reading package lists... Done
Building dependency tree
Reading state information... Done
trousers is already the newest version (0.3.13-4).
0 upgraded, 0 newly installed, 0 to remove and 382 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up trousers (0.3.13-4) ...
Job for trousers.service failed because the control process exited with error code. See "systemctl status trousers.service" and "journalctl -xe" for details.
invoke-rc.d: initscript trousers, action "start" failed.
dpkg: error processing package trousers (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of tpm-tools:
tpm-tools depends on trousers; however:
Package trousers is not configured yet.
dpkg: error processing package tpm-tools (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
trousers
tpm-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)
通过输入systemctl status trousers.service
● trousers.service - LSB: starts tcsd
Loaded: loaded (/etc/init.d/trousers; bad; vendor preset: enabled)
Active: failed (Result: exit-code) since 四 2017-03-23 14:47:27 CST; 14min ago
Docs: man:systemd-sysv-generator(8)
Process: 9814 ExecStart=/etc/init.d/trousers start (code=exited, status=30)
三 23 14:47:27 tank-Super-Server systemd[1]: Starting LSB: starts tcsd...
三 23 14:47:27 tank-Super-Server trousers[9814]: * Starting Trusted Computing daemon tcsd
三 23 14:47:27 tank-Super-Server tcsd[9820]: TCSD TDDL[9820]: TrouSerS ioctl: (25) Inappropriate ioctl for device
三 23 14:47:27 tank-Super-Server tcsd[9820]: TCSD TDDL[9820]: TrouSerS Falling back to Read/Write device support.
三 23 14:47:27 tank-Super-Server trousers[9814]: ...fail!
三 23 14:47:27 tank-Super-Server systemd[1]: trousers.service: Control process exited, code=exited status=30
三 23 14:47:27 tank-Super-Server systemd[1]: Failed to start LSB: starts tcsd.
三 23 14:47:27 tank-Super-Server systemd[1]: trousers.service: Unit entered failed state.
三 23 14:47:27 tank-Super-Server systemd[1]: trousers.service: Failed with result 'exit-code'.
结果journalctl -xe
是粘贴在这里它包含几个错误,其中之一是:
三 23 14:22:54 tank-Super-Server gpu-manager[3628]: 错误:无法打开 /lib/modules/4.4.0-31-generic/updates/dkms
我该如何解决?
答案1
这意味着您没有安装 TPM 1.2 cip[,但您有 TPM 2.0 芯片。
您无法安装裤子,因为它需要 TPM 1.2 才能工作。
使用以下方法检查 TPM 版本:
user@ubuntu:~$ sudo dmesg | grep -i tpm
[ 0.001234] ACPI: TPM2 0x00000000A1234567 000012 (v03 ABCDEF A B C 00000001 ABC 00000000)
[ 0.123456] tpm_tis MSFT0101:00: 2.0 TPM (device-id 0x1A, rev-id 16)
您必须安装tpm2-tools