Menu

#968 Unable to open ~/.mtpz-data for reading, MTPZ disabled.

Last release
closed
None
5
2016-05-16
2014-01-05
Damn
No

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?

Discussion

  • Damn

    Damn - 2014-01-05

    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.

     
  • Thierry

    Thierry - 2014-03-02

    Same issue there.
    Just installed mtp packages from Ubuntu Saucy via "sudo apt-get install mtp-tools mtpfs"
    Any suggestion ?

     
    • Anonymous

      Anonymous - 2016-03-01

      This method works.
      Thanks.

       
  • Anonymous

    Anonymous - 2014-04-27

    Same issue here after installing mtp-tools via apt-get.

     
  • Alex Franchuk

    Alex Franchuk - 2014-05-25

    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.

     
  • Anonymous

    Anonymous - 2014-07-07

    Is there a workaround?

     
  • Anonymous

    Anonymous - 2014-07-09

    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.

     
  • Linus Walleij

    Linus Walleij - 2014-08-13
    • status: open --> closed
    • assigned_to: Linus Walleij
     
  • Linus Walleij

    Linus Walleij - 2014-08-13

    Fixed in git version.

     
  • Anonymous

    Anonymous - 2014-08-15

    where i can get this git version, i have the same problem too

     
  • Anonymous

    Anonymous - 2014-11-02

    I have the same problem too (diasalm@yahoo.com.br)

     
  • Anonymous

    Anonymous - 2015-07-02

    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?

     
  • Marcus Meissner

    Marcus Meissner - 2015-07-02

    the 1.1.9 release should no longer print it

     
  • Anonymous

    Anonymous - 2015-10-26

    this bug still exists. It is affecting me right now. Why is this listed as closed?

     
  • Marcus Meissner

    Marcus Meissner - 2015-10-26

    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.

     
  • Fergus Ray-Murray

    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
  • Marcus Meissner

    Marcus Meissner - 2015-11-08

    open a ticket with Mint.

     
  • Anonymous

    Anonymous - 2015-11-21

    oh.gosh.

     
  • Anonymous

    Anonymous - 2016-03-22

    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.

     
    • Anonymous

      Anonymous - 2017-02-22

      this solved for may case

       
    • Anonymous

      Anonymous - 2017-06-17

      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!

       
  • Anonymous

    Anonymous - 2016-05-16

    @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

    Unable to open ~/.mtpz-data for reading, MTPZ disabled.Listing raw device(s)

    But jmtpfs works.

     

Anonymous
Anonymous

Add attachments
Cancel