ubuntu - TPM 与裤子安装问题
问题描述
我想为磁盘加密设置我的 TPM。我有具有 TPM 2.0 的 Intel NUC7i5DNKE 计算机。这是在内核版本 4.15.0-29 的机器上安装 Ubuntu 16.04.5 的干净桌面。
这是正在发生的事情。谁能知道出了什么问题?如果您伸出援手,我将不胜感激。谢谢!
root@deniz-NUC7i5DNKE:/home/deniz/linux-luks-tpm-boot# sudo apt-get
install trousers tpm-tools
Reading package lists... Done
Building dependency tree
Reading state information... Done
trousers is already the newest version (0.3.13-4).
tpm-tools is already the newest version (1.3.8-2).
0 upgraded, 0 newly installed, 0 to remove and 3 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
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_TIME = "sv_SE.UTF-8",
LC_MONETARY = "sv_SE.UTF-8",
LC_CTYPE = "UTF-8",
LC_ADDRESS = "sv_SE.UTF-8",
LC_TELEPHONE = "sv_SE.UTF-8",
LC_NAME = "sv_SE.UTF-8",
LC_MEASUREMENT = "sv_SE.UTF-8",
LC_IDENTIFICATION = "sv_SE.UTF-8",
LC_NUMERIC = "sv_SE.UTF-8",
LC_PAPER = "sv_SE.UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
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.
● trousers.service - LSB: starts tcsd
Loaded: loaded (/etc/init.d/trousers; bad; vendor preset: enabled)
Active: failed (Result: exit-code) since Tue 2018-10-23 16:54:53 CEST; 3ms ago
Docs: man:systemd-sysv-generator(8)
Process: 28138 ExecStart=/etc/init.d/trousers start (code=exited, status=30)
Oct 23 16:54:53 deniz-NUC7i5DNKE systemd[1]: Starting LSB: starts tcsd...
Oct 23 16:54:53 deniz-NUC7i5DNKE trousers[28138]: * Starting Trusted Computing daemon tcsd
Oct 23 16:54:53 deniz-NUC7i5DNKE tcsd[28144]: TCSD TDDL[28144]: TrouSerS ioctl: (25) Inappropriate ioctl for device
Oct 23 16:54:53 deniz-NUC7i5DNKE tcsd[28144]: TCSD TDDL[28144]: TrouSerS Falling back to Read/Write device support.
Oct 23 16:54:53 deniz-NUC7i5DNKE trousers[28138]: ...fail!
Oct 23 16:54:53 deniz-NUC7i5DNKE systemd[1]: trousers.service: Control process exited, code=exited status=30
Oct 23 16:54:53 deniz-NUC7i5DNKE systemd[1]: Failed to start LSB: starts tcsd.
Oct 23 16:54:53 deniz-NUC7i5DNKE systemd[1]: trousers.service: Unit entered failed state.
Oct 23 16:54:53 deniz-NUC7i5DNKE systemd[1]: trousers.service: Failed with result 'exit-code'.
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)
PS。我已经激活了 TPM,并且我拥有的 NUC PC 根据其规范具有 TPM2.0。
解决方案
看起来你正试图用裤子设置 luks,但你有一个 TPM 2.0 芯片。Trousers 是 TPM 1.2 的 TSS 实现,不适用于 TPM 2.0(仅适用于 TPM 1.2)。因此,您必须安装 TPM 2.0 TSS 或一组兼容的工具,并使其与 luks 一起使用。tpm2-tss是一个很好的起点,这是设置其余步骤的一个很好的步骤列表:https ://github.com/vchatterji/tpm2-luks
推荐阅读
- excel - VBA - 选择图形时 Excel 加载项菜单消失
- hyperledger - Hyperledger Composer 时间戳
- ios - PushNotificationIOS.getDeliveredNotifications(callback) 在设备上不起作用
- java - 试图在 Jersey 2.27 中绑定工厂类的编译错误
- json - 解析数据 JSON 时出错,Fragment Android Studio
- angularjs - AngularJS 请求表单
- doxygen - 如何生成按命名空间块分组的 C++ 类图
- docker - 如何延迟 Docker Swarm 更新有状态容器,直到它准备好?
- firebase - 找不到模式默认 Firebase 应用程序
- java - 关于最佳实践和当前写作测试的 Spring Boot 单元测试