LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 08-03-2017, 05:44 AM   #1
Moeman
LQ Newbie
 
Registered: Dec 2016
Posts: 15

Rep: Reputation: Disabled
I've just installed a program but my terminal says it's not installed.


I have installed Deluge, it's a bit torrent client, through the Ubuntu software centre, and the icon is pinned to my launch bar. I can start it by clicking on it, starts fine. I would like to know where it is installed, I can't seem to find a way to "open containing folder". Furthermore, when I open the terminal and type "deluge" to try execute the program the terminal says:

Quote:
The program 'deluge' is currently not installed. You can install it by typing: sudo apt install deluge
Now, I'm not sure if doing this means that I'll have two copies of the program installed or what. Help would be great.
 
Old 08-03-2017, 05:52 AM   #2
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 6,008

Rep: Reputation: 2841Reputation: 2841Reputation: 2841Reputation: 2841Reputation: 2841Reputation: 2841Reputation: 2841Reputation: 2841Reputation: 2841Reputation: 2841Reputation: 2841
You should have checked the deluge online documentation.
Have a look at http://dev.deluge-torrent.org/wiki/U...ervice/systemd
and see if that helps.
 
Old 08-03-2017, 06:51 AM   #3
Moeman
LQ Newbie
 
Registered: Dec 2016
Posts: 15

Original Poster
Rep: Reputation: Disabled
The terminal doesn't recognise deluge, deluged, or deluge-web, neither if I type "where deluge" et cetera. The terminal doesn't recognise it at all yet it's pinned to my launch bar and starts fine. It also comes up under applications when I search deluge, then I can click the button and start it. Strange.
 
Old 08-03-2017, 07:15 AM   #4
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7 / 8
Posts: 3,529

Rep: Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593
Try this:

Code:
find / -type f -name "*deluge*" 2>&1 | grep -v denied
 
2 members found this post helpful.
Old 08-03-2017, 07:37 AM   #5
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,598
Blog Entries: 4

Rep: Reputation: 3894Reputation: 3894Reputation: 3894Reputation: 3894Reputation: 3894Reputation: 3894Reputation: 3894Reputation: 3894Reputation: 3894Reputation: 3894Reputation: 3894
It should be /usr/bin/deluge
The following will show for sure:

Code:
which deluge
Which vesion of Ubuntu do you have?
 
1 members found this post helpful.
Old 08-03-2017, 08:03 AM   #6
aragorn2101
Member
 
Registered: Dec 2012
Location: Mauritius
Distribution: Slackware
Posts: 567

Rep: Reputation: 301Reputation: 301Reputation: 301Reputation: 301
Quote:
Originally Posted by TenTenths View Post
Try this:

Code:
find / -type f -name "*deluge*" 2>&1 | grep -v denied
And when you have finished running the above, please show us the output of
Code:
echo $PATH
 
1 members found this post helpful.
Old 08-03-2017, 08:09 AM   #7
Moeman
LQ Newbie
 
Registered: Dec 2016
Posts: 15

Original Poster
Rep: Reputation: Disabled
"which deluge" doesn't do anything, but what Ten Tenths posted does seem to show all files named deluge. It seems it's called "deluge-gtk. When I do "which deluge-gtk" it shows as being in "usr/bin/deluge-gtk". The funny thing is that when I go to the folder and see the properties of this file it says it's a Python script, and if I double click on it it opens the file in gedit and shows:
Quote:
#! /usr/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'deluge==1.3.12','gui_scripts','deluge-gtk'
__requires__ = 'deluge==1.3.12'
import sys
from pkg_resources import load_entry_point

if __name__ == '__main__':
sys.exit(
load_entry_point('deluge==1.3.12', 'gui_scripts', 'deluge-gtk')()
)
So this deluge-gtk isn't the executable?
 
Old 08-03-2017, 08:44 AM   #8
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,598
Blog Entries: 4

Rep: Reputation: 3894Reputation: 3894Reputation: 3894Reputation: 3894Reputation: 3894Reputation: 3894Reputation: 3894Reputation: 3894Reputation: 3894Reputation: 3894Reputation: 3894
Quote:
Originally Posted by Moeman View Post
So this deluge-gtk isn't the executable?
It is a wrapper apparently.

What happens when you enter "deluge" into the terminal and press tab twice instead of return? That will let tab-completion help find the right name.

On 16.04 deluge can be found as I described above. For our curiosity can you say which version of Ubuntu you have?
 
1 members found this post helpful.
Old 08-03-2017, 09:11 AM   #9
Moeman
LQ Newbie
 
Registered: Dec 2016
Posts: 15

Original Poster
Rep: Reputation: Disabled
I'm on Ubuntu 16.04 LTS. When I type in "deluge" and press the tab key it autocompletes to "deluge-gtk". If I press tab again nothing happens. If I press tab a third time I get the following:

Quote:
moe@moe-All-Series:~$ deluge-gtk
Apps/ .local/
.bash_history .mozilla/
.bash_logout Music/
.bashrc .nv/
.cache/ .p2/
.codeblocks/ Pictures/
.compiz/ .pki/
.config/ .profile
.dbus/ Public/
Desktop/ snap/
.dmrc .sudo_as_admin_successful
Documents/ .swt/
Downloads/ Templates/
.eclipse/ Videos/
examples.desktop workspace/
.gconf/ .wxHexEditor
.gimp-2.8/ .Xauthority
.gksu.lock .xsession-errors
.gnupg/ .xsession-errors.old
.ICEauthority
Also my $PATH variables:

Quote:
moe@moe-All-Series:~$ echo $PATH
/home/moe/bin:/home/moe/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
 
Old 08-03-2017, 09:16 AM   #10
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,598
Blog Entries: 4

Rep: Reputation: 3894Reputation: 3894Reputation: 3894Reputation: 3894Reputation: 3894Reputation: 3894Reputation: 3894Reputation: 3894Reputation: 3894Reputation: 3894Reputation: 3894
Quote:
Originally Posted by Moeman View Post
I'm on Ubuntu 16.04 LTS. When I type in "deluge" and press the tab key it autocompletes to "deluge-gtk".
Ok. Then that would be the correct name and you can press return once it appears. It should also be in your path so if you type "which deluge-gtk" then it will show you where it is, but that requires knowing the exact name in advance.

Then if you want more information about which package it came from you can look at it with dpkg

Code:
dpkg -S /usr/bin/deluge-gtk
But since you installed it yourself from the Software Center, you already know that.
 
1 members found this post helpful.
Old 08-03-2017, 09:27 AM   #11
Moeman
LQ Newbie
 
Registered: Dec 2016
Posts: 15

Original Poster
Rep: Reputation: Disabled
This time I typed "sudo apt install deluged". Now I have "deluge-gtk" and "deluged" in the /usr/bin folder both are Python scripts. Installing "deluged" allowed me to "start" the Daemon and connect using the bit torrent client, whatever that means. However now I have "deluged" and "deluge-gtk" in my /usr/bin folder, both Python scripts, and I still don't know where the executable is. "whereis" tells me both of them are in /usr/bin, but as I said, they're both Python scripts.

moe@moe-All-Series:~$ whereis deluged
deluged: /usr/bin/deluged /usr/share/man/man1/deluged.1.gz
moe@moe-All-Series:~$ whereis deluge-gtk
deluge-gtk: /usr/bin/deluge-gtk /usr/share/man/man1/deluge-gtk.1.gz

The .gz files are said to be gzip archives.

Also, the dpkg and "which" commands return the same location:

moe@moe-All-Series:~$ which deluge-gtk
/usr/bin/deluge-gtk
moe@moe-All-Series:~$ which deluged
/usr/bin/deluged
moe@moe-All-Series:~$ dpkg -S /usr/bin/deluge-gtk
deluge-gtk: /usr/bin/deluge-gtk
moe@moe-All-Series:~$ dpkg -S /usr/bin/deluged
deluged: /usr/bin/deluged
moe@moe-All-Series:~$

Last edited by Moeman; 08-03-2017 at 09:31 AM.
 
Old 08-03-2017, 09:39 AM   #12
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,598
Blog Entries: 4

Rep: Reputation: 3894Reputation: 3894Reputation: 3894Reputation: 3894Reputation: 3894Reputation: 3894Reputation: 3894Reputation: 3894Reputation: 3894Reputation: 3894Reputation: 3894
If you look, "deluge", "deluged", and "deluge-gtk" are all different packages which provide different programs. So the python script is the executable.
"deluge-gtk", which you seem to have, is a torrent client written in python. You also have "deluged" installed. Look up the descriptions in the Software Center for the fine points on what those two packages provide.

As for the manaul pages, every program has a manual page (or at least ought to) and usually they are compressed with gzip and decompressed on-the-fly.

Code:
man deluge-gtk
If you look at the output from "dpkg -S" it has a name followed by a colon and then a file. The file is the one you looked for. The name on the left is the name of the package that you installed to get that file. So /usr/bin/deluge-gtk came from the package "deluge-gtk" You can get more information about that package via the Software Center or via apt-cache

Code:
apt-cache policy deluge-gtk
 
1 members found this post helpful.
Old 08-03-2017, 10:12 AM   #13
Moeman
LQ Newbie
 
Registered: Dec 2016
Posts: 15

Original Poster
Rep: Reputation: Disabled
So the Python script IS the executable? I see. Thanks. In any case things may be a bit messed up, as the screenshot shows, in my Software Centre it shows Deluge being installed twice, and the strange thing is if I find Deluge in the application search again instead of showing the "remove" button it shows the "install" button, as if it doesn't recognise it's already installed. (Sigh) Oh well, I thank you all for your help. I'm slowly getting there.
Attached Thumbnails
Click image for larger version

Name:	screenshot.jpg
Views:	5
Size:	177.1 KB
ID:	25641  
 
Old 08-03-2017, 11:37 AM   #14
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,598
Blog Entries: 4

Rep: Reputation: 3894Reputation: 3894Reputation: 3894Reputation: 3894Reputation: 3894Reputation: 3894Reputation: 3894Reputation: 3894Reputation: 3894Reputation: 3894Reputation: 3894
Quote:
Originally Posted by Moeman View Post
... in my Software Centre it shows Deluge being installed twice ...
Ouch. I guess it's time to re-format and re-install. Just kidding. It looks like the mistake is there with the description that the Software Center is giving you. It's their fault, not yours. Can you get a more detailed description from the Software Center for either listing? From what you describe, you have "deluge-gtk" and "deluged" installed but not "deluge". Sadly the Software Center seems to be using the same short description for both "deluge-gtk" and "deluged" and maybe also "deluge" even though they are different packages. If the detailed descriptions are different then you've found a bug and if you feel like walking it through the reporting process, it will improve Ubuntu to have it taken care of.
 
1 members found this post helpful.
Old 08-03-2017, 12:05 PM   #15
Moeman
LQ Newbie
 
Registered: Dec 2016
Posts: 15

Original Poster
Rep: Reputation: Disabled
They seem to be identical in every way. Oh well.

So I'm wondering what these buttons on my desktop do then (screenshot attached). We've established that the closest thing to an executable I'll find is just a Python script, so if these buttons are shortcuts(as Windows calls them), or links, what do they link to? If I try opening the Python script files, ie., deluged and deluge-gtk they open up in gedit, they don't execute. What is it these buttons are actually doing?
Attached Thumbnails
Click image for larger version

Name:	screenshot.jpg
Views:	9
Size:	94.0 KB
ID:	25643  
 
  


Reply


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
[SOLVED] Boot to Terminal with KDE 4.1 installed bruceam Linux - Newbie 5 06-03-2009 08:08 PM
MySQL in Terminal when Installed with Xampp SecretAgentX9 Linux - Server 1 11-14-2006 12:23 AM
Just installed LiveCD but terminal will not initialize xxbacchus Linux - Newbie 3 03-08-2006 04:58 PM
Make installed program default in terminal...?? mallesite Mandriva 3 12-09-2003 07:44 AM
how can I understand whether a program installed or not installed? emin Linux - Newbie 2 10-13-2002 12:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:25 AM.

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