agl / pond

Pond
BSD 3-Clause "New" or "Revised" License
911 stars 109 forks source link

Error installing dependencies on Ubuntu #198

Open elimisteve opened 9 years ago

elimisteve commented 9 years ago

64-bit Ubuntu 14.04.2 LTS, specifically. Probably not your problem, but I thought you should know in case these install instructions are wrong and you'd like to add Ubuntu 14.04 instructions to https://pond.imperialviolet.org/ --

$ sudo apt-get install git libgtk-3-dev libgtkspell3-3-dev libtspi-dev trousers tor mercurial tpm-tools
...
Setting up libcairo-script-interpreter2:amd64 (1.13.0~20140204-0ubuntu1.1) ...
Setting up libharfbuzz-gobject0:amd64 (0.9.27-1ubuntu1) ...
Setting up libseccomp2:amd64 (2.1.0+dfsg-1) ...
Setting up libtspi1 (0.3.11.2-1) ...
Setting up libtpm-unseal1 (1.3.8-1) ...
Setting up libgtkspell3-3-0 (3.0.4-1) ...
Setting up gir1.2-gtkspell3-3.0 (3.0.4-1) ...
Setting up libatk-bridge2.0-dev:amd64 (2.10.2-2ubuntu1) ...
Setting up libatk1.0-dev (2.10.0-2ubuntu2) ...
Setting up libfreetype6-dev (2.5.2-1ubuntu2.4) ...
Setting up libfontconfig1-dev (2.11.0-0ubuntu4.1) ...
Setting up x11proto-render-dev (2:0.11.1-2) ...
Setting up libxrender-dev:amd64 (1:0.9.8-1build0.14.04.1) ...
Setting up libice-dev:amd64 (2:1.0.8-2) ...
Setting up libsm-dev:amd64 (2:1.2.1-2) ...
Setting up libpixman-1-dev (0.30.2-2ubuntu1) ...
Setting up libxcb-shm0-dev:amd64 (1.10-2ubuntu1) ...
Setting up libcairo2-dev (1.13.0~20140204-0ubuntu1.1) ...
Setting up libenchant-dev (1.6.0-10ubuntu1) ...
Setting up libgdk-pixbuf2.0-dev (2.30.7-0ubuntu1) ...
Setting up libxft-dev (2.3.1-2) ...
Setting up libharfbuzz-dev (0.9.27-1ubuntu1) ...
Setting up libpango1.0-dev (1.36.3-1ubuntu1.1) ...
Setting up libxkbcommon-dev (0.4.1-0ubuntu1) ...
Setting up x11proto-xinerama-dev (1.2.1-2) ...
Setting up libxinerama-dev:amd64 (2:1.1.3-1) ...
Setting up x11proto-randr-dev (1.4.0+git20120101.is.really.1.4.0-0ubuntu1) ...
Setting up libxrandr-dev:amd64 (2:1.4.2-1) ...
Setting up libxcursor-dev:amd64 (1:1.1.14-1) ...
Setting up x11proto-composite-dev (1:0.4.2-2) ...
Setting up libxcomposite-dev (1:0.4.4-1) ...
Setting up libgtk-3-dev (3.10.8-0ubuntu1.6) ...
Setting up libgtkspell3-3-dev (3.0.4-1) ...
Setting up libopencryptoki0 (2.3.1+dfsg-3ubuntu5) ...
Setting up libtspi-dev (0.3.11.2-1) ...
Setting up opencryptoki (2.3.1+dfsg-3ubuntu5) ...
Adding group `pkcs11' (GID 132) ...
Done.
Adding user `root' to group `pkcs11' ...
Adding user root to group pkcs11
Done.
Starting PKCS#11 slot daemon: pkcsslotd.
Setting up tor (0.2.5.12-1~trusty) ...
Something or somebody made /var/lib/tor disappear.
Creating one for you again.
Something or somebody made /var/log/tor disappear.
Creating one for you again.
Warning from profile system_tor (/etc/apparmor.d/system_tor) ptrace rules not enforced
Warning from profile system_tor (/etc/apparmor.d/system_tor) signal rules not enforced
Warning from /etc/apparmor.d/system_tor (/etc/apparmor.d/system_tor line 18): profile system_tor network rules not enforced
 * Starting tor daemon...                                                                       [ OK ] 
Setting up torsocks (1.3-3) ...
Setting up trousers (0.3.11.2-1) ...
 * Starting Trusted Computing daemon tcsd                                                       [fail] 
invoke-rc.d: initscript trousers, action "start" failed.
dpkg: error processing package trousers (--configure):
 subprocess installed post-installation script returned error exit status 137
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
Processing triggers for ureadahead (0.100.0-16) ...
Setting up tor-geoipdb (0.2.5.12-1~trusty) ...
No apport report written because the error message indicates its a followup error from a previous failure.
   Processing triggers for libc-bin (2.19-0ubuntu6.6) ...
Errors were encountered while processing:
 trousers
 tpm-tools
elimisteve commented 9 years ago

After running the above, if I run it again, it's clear that is that * Starting Trusted Computing daemon tcsd failed:

$ sudo apt-get install git libgtk-3-dev libgtkspell3-3-dev libtspi-dev trousers tor mercurial tpm-tools
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libgtkspell3-3-dev is already the newest version.
libtspi-dev is already the newest version.
trousers is already the newest version.
tpm-tools is already the newest version.
git is already the newest version.
libgtk-3-dev is already the newest version.
mercurial is already the newest version.
tor is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 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] yes
Setting up trousers (0.3.11.2-1) ...
 * Starting Trusted Computing daemon tcsd                                                       [fail] 
invoke-rc.d: initscript trousers, action "start" failed.
dpkg: error processing package trousers (--configure):
 subprocess installed post-installation script returned error exit status 137
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)
burdges commented 9 years ago

If Linux has issues with TPM on your system then you can disable TPM with -tags notpm. I'm not 100% sure if there is a state file migration path between TPM and non-TPM systems, so you might get stuck this way if you do so, and that might be desirable if you own non-TPM systems like Macs.