The officially official Devuan Forum!

You are not logged in.

#1 2024-03-25 14:39:26

devur
Member
From: Denmark
Registered: 2017-05-29
Posts: 74  

[SOLVED] mtp-tool will not start

mtp-tool will not start
I have no Internet on my pc and will install mtp white dpkg -i I have downloaded 4 files from devuan package search mtp-tool libmtp9 libmtp libc4.
mtp install without any error, but mtp will not startup.

dpkg -l mtp-tool
Desired=unknown/install/remove/purge/hold
Status=not/inst/conf-files/unpacked/half-conf/half-inst/trig-await/trig-pend
Err?=none /reinst-requierd

And the file ii mtp…

I have thought about synaptic and the install usb and the file on it, but it has not been possible to connect the usb to synaptic.
looking to synapy mtp-tool is installed and marked green.

is there a way to locate the missing file and can they be found on the install media.


Laptop lenovo
Desktop XFCE
Os Devuan GNU/Linux

Offline

#2 2024-03-26 06:09:49

devur
Member
From: Denmark
Registered: 2017-05-29
Posts: 74  

Re: [SOLVED] mtp-tool will not start

Follow up
It looks like the package version is wrong, the download and installed is
mtp-tool 1.1.20-1. libc6_2.36-9+. litmtp9_1.1.20-1.
And the file i should have been downloaded is
libc6 (>= 2.33), libmtp9 (>= 1.1.18).
But the libc6_2.33 is not in the rep path the next version in numbers order is the one I got libc6_2.36-9.
Is there a solution to that problem


Laptop lenovo
Desktop XFCE
Os Devuan GNU/Linux

Offline

#3 2024-03-26 23:22:56

GlennW
Member
From: Brisbane, Australia
Registered: 2019-07-18
Posts: 650  

Re: [SOLVED] mtp-tool will not start

Hi Devur

The version symbol >= "greater than or equal to" looks correct. it maybe something else.

I do not have this installed, but as to where the packages are found on the install iso...

from a usb device...

/media/glenn/DEVUAN501/pool/DEBIAN/main/libm/libmtp/libmtp-runtime_1.1.20-1_amd64.deb
/media/glenn/DEVUAN501/pool/DEBIAN/main/libm/libmtp/libmtp9_1.1.20-1_amd64.deb
/media/glenn/DEVUAN501/pool/DEBIAN/main/libm/libmtp/libmtp-common_1.1.20-1_all.deb

I've just updated and upgraded today and libc6 was in the list of packages... But I think your versions are OK.

I hope this helps


pic from 1993, new guitar day.

Offline

#4 2024-03-27 00:24:05

alexkemp
Member
Registered: 2018-05-14
Posts: 357  

Re: [SOLVED] mtp-tool will not start

fwiw, this is from my system just now (daedalus):

$ apt search mtp | fgrep installed

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

jmtpfs/stable,now 0.5-4 amd64 [installed]
libmtp-common/stable,now 1.1.20-1 all [installed,automatic]
libmtp-runtime/stable,now 1.1.20-1 amd64 [installed,automatic]
libmtp9/stable,now 1.1.20-1 amd64 [installed,automatic]
libnet-smtp-ssl-perl/stable,now 1.04-2 all [installed,automatic]
mtp-tools/stable,now 1.1.20-1 amd64 [installed]

This is using just the common apt install from repository.

Offline

#5 2024-03-27 12:37:49

devur
Member
From: Denmark
Registered: 2017-05-29
Posts: 74  

Re: [SOLVED] mtp-tool will not start

it was an eye opener for me for Debian package search!
I remove the old version of mtp-tools and install it again but white no differences in result

sudo dpkg -i mtp-tools_1.1.20-1_amd64.deb jmtpfs_0.5-4_amd64.deb libmtp-runtime_1.1.20-1_amd64.deb
libc6_2.36-9+deb12u4_amd64.deb  libnet-smtp-ssl-perl_1.04-2_all.deb
libmtp9_1.1.20-1_amd64.deb libmtp-common_1.1.20-1_all.deb

Apt search Show a unknown

apt search mtp | fgrep installed > apt_search

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

jmtpfs/stable,now 0.5-4 amd64 [installed]
libmtp-common/unknown,stable,now 1.1.20-1 all [installed]
libmtp-runtime/unknown,stable,now 1.1.20-1 amd64 [installed]
libmtp9/unknown,stable,now 1.1.20-1 amd64 [installed]
libnet-smtp-ssl-perl/unknown,stable,now 1.04-2 all [installed,automatic]
mtp-tools/stable,now 1.1.20-1 amd64 [installed]

I did the following which shows that I have a mobile

sudo mtp-connect
libmtp version: 1.1.20

Device 0 (VID=22b8 and PID=2e82) is a Motorola Moto G (ID2).
Android device detected, assigning default bug flags
Usage: connect <command1> <command2>
Commands: --delete [filename]
          --sendfile [source] [destination]
          --sendtrack [source] [destination]
          --getfile [source] [destination]
          --newfolder [foldername]

$ sudo jmtpfs
Device 0 (VID=22b8 and PID=2e82) is a Motorola Moto G (ID2).
Android device detected, assigning default bug flags
fuse: missing mountpoint parameter

$ sudo sed -i '/user_allow_other/s/^#//g' /etc/fuse.conf
hans@devuan:~/Downloads$ jmtpfs ~/mtp
Device 0 (VID=22b8 and PID=2e82) is a Motorola Moto G (ID2).
Android device detected, assigning default bug flags
fuse: bad mount point `/home/hans/mtp': No such file or directory

Laptop lenovo
Desktop XFCE
Os Devuan GNU/Linux

Offline

#6 2024-03-27 21:49:26

ralph.ronnquist
Administrator
From: Battery Point, Tasmania, AUS
Registered: 2016-11-30
Posts: 1,268  

Re: [SOLVED] mtp-tool will not start

That very last error line would be due to missing fuse module, i.e. it's not loaded. If it exists in your installation you may load it manually by:

# modprobe fuse

Further by adding it to your /etc/initramfs-tools/modules (and update-initrd -u -k all) it will be installed automatically during the bootup.

Offline

#7 2024-03-28 09:06:37

rolfie
Member
Registered: 2017-11-25
Posts: 1,183  

Re: [SOLVED] mtp-tool will not start

You should install fuse3. But you will have to remove jmtpfs, that conflicts with fuse3.

Online

#8 2024-03-28 11:35:38

devur
Member
From: Denmark
Registered: 2017-05-29
Posts: 74  

Re: [SOLVED] mtp-tool will not start

it got me a little further
I found some unmet dependencies using synaptic properties and also found that fuse where not install and that it
conflicted whit fuse3 there where uninstall and removed and then install these

$ sudo dpkg -i fuse_2.9.9-6+b1_amd64.deb libstdc++6_12.2.0-14_amd64.deb mount_2.38.1-5devuan1+b1_amd64.deb

so now apt search look lice these

$ apt search fuse | fgrep installed

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

fuse/unknown,stable,now 2.9.9-6+b1 amd64 [installed]
jmtpfs/stable,now 0.5-4 amd64 [installed]
libfuse2/unknown,stable,now 2.9.9-6+b1 amd64 [installed,automatic]
libfuse3-3/unknown,stable,now 3.14.0-4 amd64 [installed,auto-removable]
libntfs-3g89/unknown,stable,now 1:2022.10.3-1+b1 amd64 [installed,auto-removable

and add mount point

$ sudo mkdir -p /media/mtp

but still no mtp-tool gui or otherwise any useful connection with the mobul

I then did, and add it to modules last line

# modprobe fuse
# nano /etc/initramfs-tools/modules

And update the initramfs

# update-initramfs -u -k all
update-initramfs: Generating /boot/initrd.img-6.1.0-18-amd64
update-initramfs: Generating /boot/initrd.img-6.1.0-10-amd64
# reboot

After rebbot

:~$ sudo jmtpfs /media/mtp
Device 0 (VID=22b8 and PID=2e82) is a Motorola Moto G (ID2).
Android device detected, assigning default bug flags

but the mounted mtp dos not give me access to the mobile as i can see it, so then

:~$ fusermount -u /media/mtp
fusermount: entry for /media/mtp not found in /etc/mtab

The map file

jmtpfs /media/mtp fuse.jmtpfs rw,nosuid,nodev,relatime,user_id=0,group_id=0 0 0

umount the mtp

$ sudo fusermount -u /media/mtp

mount mtp white the -o option

$ sudo jmtpfs -o /media/mtp
Device 0 (VID=22b8 and PID=2e82) is a Motorola Moto G (ID2).
Android device detected, assigning default bug flags
fuse: missing mountpoint parameter
$ sudo jmtpfs /media/mtp
Device 0 (VID=22b8 and PID=2e82) is a Motorola Moto G (ID2).
Android device detected, assigning default bug flags

And i have a list devices

$ sudo jmtpfs --listDevices
Device 0 (VID=22b8 and PID=2e82) is a Motorola Moto G (ID2).
Available devices (busLocation, devNum, productId, vendorId, product, vendor):
2, 7, 0x2e82, 0x22b8, Moto G (ID2), Motorola

but still no mtp-tool gui or otherwise any useful connection with the mobil


Laptop lenovo
Desktop XFCE
Os Devuan GNU/Linux

Offline

#9 2024-03-28 12:58:48

rolfie
Member
Registered: 2017-11-25
Posts: 1,183  

Re: [SOLVED] mtp-tool will not start

Try to install additionally gvfs-backend and gvfs-fuse. You may need to remove jmtpfs.

This should enable that you get you phone shown on the desktop. Worked for me.

Online

#10 2024-03-28 15:55:43

devur
Member
From: Denmark
Registered: 2017-05-29
Posts: 74  

Re: [SOLVED] mtp-tool will not start

i solved my problem by installing android_file_transfure it works for me
when i try to uninstall jmtpfs i get a dependency error and synaptic won't finish the process
but I will try again at another time, thank you very much for your help!


Laptop lenovo
Desktop XFCE
Os Devuan GNU/Linux

Offline

Board footer