Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-08-2016, 01:54 PM   #1
Registered: Dec 2016
Posts: 242

Rep: Reputation: Disabled
Finding documentation for package to delete files on MTP device

Overwhelmed by the number of packages for Ubuntu
I'm trying to copy files from an MTP device and then delete them afterwards.

I know I need the following packages

but can't find any useful documentation or examples of use to see if there is some sort of 'delete' command

Where is documentation hidden?
Old 12-08-2016, 03:07 PM   #2
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,886
Blog Entries: 13

Rep: Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931
Sorry however you'll have to be clearer about the actions which you are taking.

First, you should not need to copy packages, but instead install them and typically with aptitude.

As far as deleting files, there are a few ways depending on whether you're using a UI File Manager application or if you have a terminal or command line.

But bear in mind that simply copying packages from one place to another does not mean you have installed them and then are using them in your distribution.

Ubuntu has a software package manager in their UI desktop, but they also use aptitude.

An MTP device is either a phone, a USB thumbstick, a CD/DVD or some other external storage medium. Once again you just delete from those using normal Linux delete commands or actions; however it appears you either do not understand this or you have more particular needs which you haven't described as yet.

A good thing to do is describe the exact actions you are following, cite any links which reference thing if you're following some sort of guide. The links provided describe Ubuntu packages, but that is all, they tell someone what's in the package and also allow you to download it.

With the Ubuntu Software Center or Aptitude you can install packages from the Internet without pre-downloading them. Or you can download the source and build the packages on your system. This is not always the correct choice for a normal Desktop Linux installation, you shouldn't have to build the packages if you're running them on a regular PC with the equivalent of an Intel processor.

Please post better descriptions of what you're trying to achieve as well as your system specifications so that people can aid you better.

You also seem to be posting multiple, but related questions in different threads. This is fine if you have multiple questions; however be aware that if you fire away a large number of identical questions, it will cause confusion. If you fire away a large number of different questions, however need to fulfill a specific baseline to get going first, it may be best to concentrate on one question at a time versus asking them all and then confusing several answers.

Linux answers may vary and there usually are several ways to accomplish what you want to do. Plus given the flexibility of Linux, there are a number of things you can do, but perhaps should not attempt unless you have greater experience or are very organized with your approach. Given that you've cited in other threads that you are a novice, my caution here is that you may confuse yourself by asking all your questions and then seeing the variety of answers and then be worse off than when you started. Recommend you identify a main first thing to accomplish, get working, and the move on to the next topic. You'll eventually understand it, don't worry.

Last edited by rtmistler; 12-08-2016 at 03:11 PM.
1 members found this post helpful.
Old 12-08-2016, 03:15 PM   #3
Registered: Dec 2016
Posts: 242

Original Poster
Rep: Reputation: Disabled
Thanks. Much googling later I found the method I was looking for


which expects the ID fo the file to delete.

My one remaining issue is I can't reset the file ID. Every time I delete a file the ID increments by one.

And for some reason I can't issue a mtp-reset. get an error saying the device does not support resetting

here is a list of all the commands

mtp-albumart [args]


mtp-connect [args]

mtp-delfile [args]







mtp-getfile [args]

mtp-getplaylist [args]

mtp-hotplug [args]

mtp-newfolder [args]

mtp-newplaylist [args]


mtp-sendfile [args]

mtp-sendtr [args]

mtp-thumb [args]


mtp-trexist [args]
Old 12-09-2016, 08:37 AM   #4
LQ Guru
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Do you understand BASH variables, Loops, and how to write a BASH Script? It'd make that a lot easier if you're just doing batch jobs.

And for some reason I can't issue a mtp-reset. 
get an error saying the device does not support resetting
so what does that tell you?

Last edited by BW-userx; 12-09-2016 at 09:52 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
itry install package but it delete a lot of files khalil-person Linux - Security 2 03-03-2015 02:41 PM
[SOLVED] USB is not a MTP device the_bigbalu Linux - Desktop 1 05-28-2013 02:55 AM
On slack-current: /usr/bin/mtp-getfile -> /tmp/package-libmtp/usr/bin/mtp-connect ? LuckyCyborg Slackware 3 05-03-2010 01:13 PM
Automounting an mtp device amishtechie Linux - Hardware 0 04-09-2009 05:49 PM
BASH: finding if two files are on the same device JakeWharton Linux - General 5 06-28-2008 07:55 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:23 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration