Failed to execute child process "/usr/bin/truecrypt" (No such file or directory)

Asked by John Kirby

Trying to install Truecrypt on Ubuntu 10.04 I get this message

Failed to execute child process "/usr/bin/truecrypt" (No such file or directory)

I downloaded the standard 32 bit version and expanded the .gz file from john/download. I can see Trucrypt in usr/bin.

Truecrypt appears in the application menu but gives the above message when I try to execute it.

What is the child process and how do I fix it?

Regards
John

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Victor Ashik
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

try:

sudo apt-get clean; sudo apt-get update; sudo apt-get --reinstall install truecrypt

Can you also give the output of:

sudo find / -iname "truecr*"

Thanks

Revision history for this message
John Kirby (john-kirbynet) said :
#2

Thanks for your suggestions.

In view of the message at the end re another package ... please note that I did install EasyCrypt from the Synaptic Package Manager first.

Output from the sudo commands:

john@ubuntu:~$ sudo apt-get clean
john@ubuntu:~$ sudo apt-get update
Hit http://security.ubuntu.com lucid-security Release.gpg
Ign http://security.ubuntu.com/ubuntu/ lucid-security/main Translation-en_GB
Hit http://archive.canonical.com lucid Release.gpg
Ign http://archive.canonical.com/ubuntu/ lucid/partner Translation-en_GB
Hit http://gb.archive.ubuntu.com lucid Release.gpg
Hit http://gb.archive.ubuntu.com/ubuntu/ lucid/main Translation-en_GB
Ign http://security.ubuntu.com/ubuntu/ lucid-security/restricted Translation-en_GB
Ign http://security.ubuntu.com/ubuntu/ lucid-security/universe Translation-en_GB
Ign http://security.ubuntu.com/ubuntu/ lucid-security/multiverse Translation-en_GB
Hit http://security.ubuntu.com lucid-security Release
Hit http://gb.archive.ubuntu.com/ubuntu/ lucid/restricted Translation-en_GB
Hit http://gb.archive.ubuntu.com/ubuntu/ lucid/universe Translation-en_GB
Hit http://gb.archive.ubuntu.com/ubuntu/ lucid/multiverse Translation-en_GB
Hit http://gb.archive.ubuntu.com lucid-updates Release.gpg
Ign http://gb.archive.ubuntu.com/ubuntu/ lucid-updates/main Translation-en_GB
Ign http://gb.archive.ubuntu.com/ubuntu/ lucid-updates/restricted Translation-en_GB
Ign http://gb.archive.ubuntu.com/ubuntu/ lucid-updates/universe Translation-en_GB
Ign http://gb.archive.ubuntu.com/ubuntu/ lucid-updates/multiverse Translation-en_GB
Hit http://gb.archive.ubuntu.com lucid Release
Hit http://archive.canonical.com lucid Release
Hit http://gb.archive.ubuntu.com lucid-updates Release
Hit http://security.ubuntu.com lucid-security/main Packages
Hit http://gb.archive.ubuntu.com lucid/main Packages
Hit http://security.ubuntu.com lucid-security/restricted Packages
Hit http://security.ubuntu.com lucid-security/main Sources
Hit http://security.ubuntu.com lucid-security/restricted Sources
Hit http://security.ubuntu.com lucid-security/universe Packages
Hit http://archive.canonical.com lucid/partner Packages
Hit http://gb.archive.ubuntu.com lucid/restricted Packages
Hit http://gb.archive.ubuntu.com lucid/main Sources
Hit http://gb.archive.ubuntu.com lucid/restricted Sources
Hit http://gb.archive.ubuntu.com lucid/universe Packages
Hit http://security.ubuntu.com lucid-security/universe Sources
Hit http://security.ubuntu.com lucid-security/multiverse Packages
Hit http://security.ubuntu.com lucid-security/multiverse Sources
Hit http://gb.archive.ubuntu.com lucid/universe Sources
Hit http://gb.archive.ubuntu.com lucid/multiverse Packages
Hit http://gb.archive.ubuntu.com lucid/multiverse Sources
Hit http://gb.archive.ubuntu.com lucid-updates/main Packages
Hit http://gb.archive.ubuntu.com lucid-updates/restricted Packages
Hit http://gb.archive.ubuntu.com lucid-updates/main Sources
Hit http://gb.archive.ubuntu.com lucid-updates/restricted Sources
Hit http://gb.archive.ubuntu.com lucid-updates/universe Packages
Hit http://gb.archive.ubuntu.com lucid-updates/universe Sources
Hit http://gb.archive.ubuntu.com lucid-updates/multiverse Packages
Hit http://gb.archive.ubuntu.com lucid-updates/multiverse Sources
Reading package lists... Done
john@ubuntu:~$ sudo apt-get --reinstall install truecrypt
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package truecrypt is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package truecrypt has no installation candidate

============================================================

output from sudo find / -iname "truecr*"

/usr/bin/truecrypt
/usr/bin/truecrypt-uninstall.sh
/usr/share/pixmaps/truecrypt.xpm
/usr/share/applications/truecrypt.desktop
/usr/share/truecrypt
/usr/share/truecrypt/doc/TrueCrypt User Guide.pdf
/home/john/Downloads/truecrypt-7.0-linux-x86.tar.gz
/home/john/Downloads/truecrypt-7.0-linux-x86(2).tar.gz
/home/john/Downloads/truecrypt-7.0-setup-x86 (2)
/home/john/Downloads/temp truecrypt folder/truecrypt-7.0-setup-x86
/home/john/Downloads/truecrypt-7.0-linux-x86(3).tar.gz
/home/john/Downloads/truecrypt-7.0-setup-x86
/home/john/Public/truecrypt-7.0-setup-x86

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

The file is there, not sure of the issue. Do you still get the error if you run:

sudo apt-get --reinstall install truecrypt

Thanks

Revision history for this message
John Kirby (john-kirbynet) said :
#4

Yes I've tried again and get the same message.

Also removed Easycrypt and tried again.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#5

Sounds like a bug to me. I'd log a bug with:

ubuntu-bug truecrypt

Revision history for this message
John Kirby (john-kirbynet) said :
#6

OK I'll do that. Thanks for your help.

Regards
John

Revision history for this message
PeterPall (peterpall) said :
#7

Could you give us the output of

ls -l /usr/bin/truecrypt

Perhaps the permissions of the truecrypt binary are set up the wrong way so that the program can be read - but not be executed.

Revision history for this message
John Kirby (john-kirbynet) said :
#8

Hi Peter, here it is ...

john@ubuntu:~$ ls -l /usr/bin/truecrypt
-rwxr-xr-x 1 root root 4713232 2010-07-19 19:24 /usr/bin/truecrypt

Revision history for this message
PeterPall (peterpall) said :
#9

Hmmm... ...this seems to be fine.

... Then you have several options:

1) type
which truecrypt
into a terminal to find out if this really is the truecrypt program your system uses by default: In theory there can be another program named "truecrypt" in another folder Ubuntu looks into first.

2.) try starting truecrypt with the name
/usr/bin/truecrypt
instead of solely
truecrypt

3.) look if /usr/bin/truecrypt is a text file you can open using your text editor. If it is post the contents of this file to us: Debugging shell scripts normally is easy

4.) can you post the result of
file /usr/bin/truecrypt

file looks into a file and tries to find out what kind of data it sees.

We have to find a solution to this problem - and I am optimistic that we will.

Revision history for this message
John Kirby (john-kirbynet) said :
#10

The results of these commands are pasted below:

john@ubuntu:/usr/bin$ which truecrypt
/usr/bin/truecrypt
john@ubuntu:/usr/bin$ /usr/bin/truecrypt
bash: /usr/bin/truecrypt: No such file or directory
john@ubuntu:/usr/bin$ file /usr/bin/truecrypt
/usr/bin/truecrypt: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), stripped
john@ubuntu:/usr/bin$

Trying to open in gedit gives the message
 "could not open file
gedit has not been able to detect the character encoding.
Please check that you are not trying to open a binary file.
Select a character encoding from the menu and try again."

Revision history for this message
PeterPall (peterpall) said :
#11

Hmmm...

That means that
 - truecrypt is definitely there,
 - it is a program
 - it is executable
 - the file command can read it
 - but if you try to execute it your system says it is not there.

An almost surrealisic situation... never had this problem nor do I see how it can possibly occour...
Either something really weird is happening or the answer is so simple that we cannot possibly see it.

Try

strace /usr/bin/truecrypt

strace is a program that loads a program and tells you what this program is telling the system to do. Perhaps it starts and then for some reason outputs an error message saying that it isn't there...

Revision history for this message
John Kirby (john-kirbynet) said :
#12

Here is the result of strace:

john@ubuntu:/usr/bin$ strace /usr/bin/truecrypt
execve("/usr/bin/truecrypt", ["/usr/bin/truecrypt"], [/* 38 vars */]) = -1 ENOENT (No such file or directory)
dup(2) = 3
fcntl(3, F_GETFL) = 0x8002 (flags O_RDWR|O_LARGEFILE)
fstat(3, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f3ac5101000
lseek(3, 0, SEEK_CUR) = -1 ESPIPE (Illegal seek)
write(3, "strace: exec: No such file or di"..., 40strace: exec: No such file or directory
) = 40
close(3) = 0
munmap(0x7f3ac5101000, 4096) = 0
exit_group(1) = ?

Revision history for this message
PeterPall (peterpall) said :
#13

That *really* is weird. Why doesn't your system find this program as it clearly is there, readable *and* executable?

Revision history for this message
John Kirby (john-kirbynet) said :
#14

OK I've uninstalled & tried again.

Still nothing happens when I click on the Truecrypt icon under the menu applications>accessories.

So I brought up terminal and tried to execute from usr/bin. Error message returned is:

john@ubuntu:~/usr/bin$ truecrypt
truecrypt: error while loading shared libraries: libfuse.so.2: cannot open shared object file: No such file or directory

Does this help to resolve my problem?

Regards
john

Revision history for this message
PeterPall (peterpall) said :
#15

It does - and does not look too bad:

It does mean that truecrypt did actually try to start up - but did not manage to do anything since libfuse2 is missing. You can compare this error message with a windows complaining about a missing DLL. Only that when sing linux installing a new DLL is simple. (

Do a
sudo apt-get install libfuse2
in a terminal or use System/Administration/Synaptic pacage manager to install the package libfuse2

Revision history for this message
John Kirby (john-kirbynet) said :
#16

libfuse2 seems to be already installed. (Also confirmed by synaptic manger). Can I target lib.so.2 more specifically ?

john@ubuntu:~$ sudo apt-get install libfuse2
Reading package lists... Done
Building dependency tree
Reading state information... Done
libfuse2 is already the newest version.
The following packages were automatically installed and are no longer required:
  linux-headers-2.6.32-21-generic linux-headers-2.6.32-21
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 16 not upgraded.
john@ubuntu:~$ truecrypt
truecrypt: error while loading shared libraries: libfuse.so.2: cannot open shared object file: No such file or directory
john@ubuntu:~$

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#17

sudo apt-get --purge autoremove; sudo apt-get --reinstall install libfuse2

Should fix the lib issue.

Revision history for this message
John Kirby (john-kirbynet) said :
#18

I've tried this but I'm afraid I've got the same result. Terminal output below:

john@ubuntu:~$ sudo apt-get --purge autoremove
[sudo] password for john:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED
  linux-headers-2.6.32-21* linux-headers-2.6.32-21-generic*
0 upgraded, 0 newly installed, 2 to remove and 29 not upgraded.
After this operation, 85.3MB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 161311 files and directories currently installed.)
Removing linux-headers-2.6.32-21-generic ...
Removing linux-headers-2.6.32-21 ...
john@ubuntu:~$ sudo apt-get --reinstall install libfuse2
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 29 not upgraded.
Need to get 0B/146kB of archives.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]? y
(Reading database ... 143142 files and directories currently installed.)
Preparing to replace libfuse2 2.8.1-1.1ubuntu2 (using .../libfuse2_2.8.1-1.1ubuntu2_amd64.deb) ...
Unpacking replacement libfuse2 ...
Setting up libfuse2 (2.8.1-1.1ubuntu2) ...

Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
john@ubuntu:~$ truecrypt
truecrypt: error while loading shared libraries: libfuse.so.2: cannot open shared object file: No such file or directory

Revision history for this message
Best Victor Ashik (vashik+) said :
#19

I met the same "error". The problem most possibly is that you are trying to use x86 Truecrypt on x64 Ubuntu or vice versa. Uninstall Truecrypt, get and install the right build.

Revision history for this message
John Kirby (john-kirbynet) said :
#20

Thanks Victor Ashik, that solved my question.