Public bug reported:

The init script in /etc/init.d/trousers includes the following test on
line 32:

if [ ! -e /dev/tpm* ]

This will fail whenever the wildcard expansion of /dev/tpm* returns more
than one result with a message similar to `/etc/init.d/trousers: 32: [:
/dev/tpm0: unexpected operator`.

On my Surface book I have two files which match /dev/tpm0 and
/dev/tpmrm0.

ProblemType: Bug
DistroRelease: Ubuntu 19.04
Package: trousers 0.3.14+fixed1-1build1
Uname: Linux 5.0.9-surface-linux-surface x86_64
ApportVersion: 2.20.10-0ubuntu27
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Mon Apr 29 15:17:49 2019
InstallationDate: Installed on 2019-04-29 (0 days ago)
InstallationMedia: Ubuntu 19.04 "Disco Dingo" - Release amd64 (20190416)
SourcePackage: trousers
UpgradeStatus: No upgrade log present (probably fresh install)
modified.conffile..etc.tcsd.conf: [inaccessible: [Errno 13] Permission denied: 
'/etc/tcsd.conf']
--- 
ProblemType: Bug
ApportVersion: 2.20.10-0ubuntu27
Architecture: amd64
DistroRelease: Ubuntu 19.04
InstallationDate: Installed on 2019-04-29 (0 days ago)
InstallationMedia: Ubuntu 19.04 "Disco Dingo" - Release amd64 (20190416)
Package: trousers 0.3.14+fixed1-1build1
PackageArchitecture: amd64
ProcEnviron:
 LANGUAGE=en_GB:en
 TERM=xterm-256color
 PATH=(custom, no user)
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
Tags:  disco
Uname: Linux 5.0.9-surface-linux-surface x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups:
 
_MarkForUpload: True

** Affects: trousers (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug apport-collected disco

** Tags added: apport-collected

** Description changed:

  The init script in /etc/init.d/trousers includes the following test on
  line 32:
  
  if [ ! -e /dev/tpm* ]
  
  This will fail whenever the wildcard expansion of /dev/tpm* returns more
  than one result with a message similar to `/etc/init.d/trousers: 32: [:
  /dev/tpm0: unexpected operator`.
  
  On my Surface book I have two files which match /dev/tpm0 and
  /dev/tpmrm0.
  
  ProblemType: Bug
  DistroRelease: Ubuntu 19.04
  Package: trousers 0.3.14+fixed1-1build1
  Uname: Linux 5.0.9-surface-linux-surface x86_64
  ApportVersion: 2.20.10-0ubuntu27
  Architecture: amd64
  CurrentDesktop: ubuntu:GNOME
  Date: Mon Apr 29 15:17:49 2019
  InstallationDate: Installed on 2019-04-29 (0 days ago)
  InstallationMedia: Ubuntu 19.04 "Disco Dingo" - Release amd64 (20190416)
  SourcePackage: trousers
  UpgradeStatus: No upgrade log present (probably fresh install)
  modified.conffile..etc.tcsd.conf: [inaccessible: [Errno 13] Permission 
denied: '/etc/tcsd.conf']
+ --- 
+ ProblemType: Bug
+ ApportVersion: 2.20.10-0ubuntu27
+ Architecture: amd64
+ DistroRelease: Ubuntu 19.04
+ InstallationDate: Installed on 2019-04-29 (0 days ago)
+ InstallationMedia: Ubuntu 19.04 "Disco Dingo" - Release amd64 (20190416)
+ Package: trousers 0.3.14+fixed1-1build1
+ PackageArchitecture: amd64
+ ProcEnviron:
+  LANGUAGE=en_GB:en
+  TERM=xterm-256color
+  PATH=(custom, no user)
+  LANG=en_GB.UTF-8
+  SHELL=/bin/bash
+ Tags:  disco
+ Uname: Linux 5.0.9-surface-linux-surface x86_64
+ UpgradeStatus: No upgrade log present (probably fresh install)
+ UserGroups:
+  
+ _MarkForUpload: True

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1826887

Title:
  Trousers cannot start when more than one file matches /dev/tpm*

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/trousers/+bug/1826887/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to