The mtp-tools always reports "Unable to open ~/.mtpz-data for reading, MTPZ disabled." at start, and it is reported even before "libmtp version 1.1.6".
For example :
jinoh67@JINOHPC:~$ mtp-detect Unable to open ~/.mtpz-data for reading, MTPZ disabled.libmtp version: 1.1.6 Listing raw device(s) Device 0 (VID=04e8 and PID=6860) is a Samsung Galaxy models (MTP). Found 1 device(s): Samsung: Galaxy models (MTP) (04e8:6860) @ bus 3, dev 10
So I created the directory "~/.mtpz-data" and it now reports :
Unable to read MTPZ public exponent from ~/.mtpz-data, MTPZ disabledlibmtp version: 1.1.6
The weird message could also be found at the '69-libmtp.rules' at the first line, which was not commented.
I compiled libmtp-1.1.6 with
./configure --prefix=/usr make sudo make install
Any problems?
Anonymous
At least, the libmtp could make the file ~/.mtpz-data at first time.
This error is found on src/mtpz.c at line 130 in function mtpz_loaddata.
No manuals exist for how to create the configuration file.
Same issue there.
Just installed mtp packages from Ubuntu Saucy via "sudo apt-get install mtp-tools mtpfs"
Any suggestion ?
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
This method works.
Thanks.
Same issue here after installing mtp-tools via apt-get.
I believe this is because the person who merged the mtpz work on libmtp back in missed a file. If you copy the file from this project:
https://github.com/kbhomes/libmtp-zune
(in the src directory) then it works. However, I don't see why this file needs to exist, the data could simply be stored in libmtp.
Is there a workaround?
If your device is not MTPZ device, it does not automatically create mtpz-data. You can go to find mtpz-data on github, you will not have this error.
Fixed in git version.
where i can get this git version, i have the same problem too
I have the same problem too (diasalm@yahoo.com.br)
I have the same problem. What file was left out of the build? I'm trying to build 1.1.8 from source and I get the same error.
How was the problem fixed? Is there a workaround? Please? Anyone?
the 1.1.9 release should no longer print it
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
this bug still exists. It is affecting me right now. Why is this listed as closed?
if you have correctly upgraded to 1.1.9 it should have gone. If it is still there, probably your distributions libmtp is still being used.
I seem to be on 1.1-4.1, thanks to apt-get in Linux Mint 17.2. Not sure what steps need to be taken, where, to get this fixed?
On the bright side, by making the configuration file using the link provided by Alex Franchuk above, I was able to remove the error message in question. Now it just says 'No raw devices found', which I'm almost sure counts as progress.
Last edit: Fergus Ray-Murray 2015-11-07
open a ticket with Mint.
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
oh.gosh.
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
Thanks Alex Franchuk. The link you posted (https://github.com/kbhomes/libmtp-zune) is the solution... I compiled libmtp my self with these steps (maybe is usefull for someone):
From inside libmtp directory I canged the priviledged from the inner files:
sudo chmod 777 -R /path_to_directory
After that I used:
sh autogen.sh
to generate the install files;
After that (the c++ builder - gcc, gcc++... with dependencies should be installed):
./configure
After that:
make
And finally:
sudo make install
That should solve the problem. At least for me it solved it.
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
this solved for may case
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
It worked for me, at last! However, I had to install a couple of files. Here's what I did:
after "sudo chmod 777 -R /path_to_directory":
cd <path_to_directory>
sudo apt-get install libtool
sudo apt-get install automake
then...
sudo ./configure
sudo make
sudo make install
Then it worked. Thanks a lot!
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
@Alex Franchuk
In your Link is no mtpz-data, just an mtpz.md
I found this Link in the md: http://www.sajidanwar.me/
So i built libmtp with
--disable-mtpz
How i did it:
Created a temporary directory
mkdir ~/tmp
cd ~/tmp
Got my Files
wget -nc https://sourceforge.net/projects/libmtp/files/libmtp/1.1.11/libmtp-1.1.11.tar.gz
Unpacked tar
tar xvf libmtp-1.1.11.tar.gz
cd libmtp-1.1.11
Compiled
./configure --prefix=/usr --disable-mtpz
make
sudo make install
Copied the 69-libmtp.rules to the right place
sudo cp 69-libmtp.rules /etc/udev/rules.d
Clean up
cd /; rm -r ~/tmp
So far still
But jmtpfs works.