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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
08-03-2017, 05:44 AM
|
#1
|
LQ Newbie
Registered: Dec 2016
Posts: 15
Rep:
|
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.
|
|
|
08-03-2017, 05:52 AM
|
#2
|
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
|
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.
|
|
|
08-03-2017, 06:51 AM
|
#3
|
LQ Newbie
Registered: Dec 2016
Posts: 15
Original Poster
Rep:
|
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.
|
|
|
08-03-2017, 07:15 AM
|
#4
|
Senior Member
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7 / 8
Posts: 3,529
|
Try this:
Code:
find / -type f -name "*deluge*" 2>&1 | grep -v denied
|
|
2 members found this post helpful.
|
08-03-2017, 07:37 AM
|
#5
|
LQ Guru
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,598
|
It should be /usr/bin/deluge
The following will show for sure:
Which vesion of Ubuntu do you have?
|
|
1 members found this post helpful.
|
08-03-2017, 08:03 AM
|
#6
|
Member
Registered: Dec 2012
Location: Mauritius
Distribution: Slackware
Posts: 567
|
Quote:
Originally Posted by TenTenths
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
|
|
1 members found this post helpful.
|
08-03-2017, 08:09 AM
|
#7
|
LQ Newbie
Registered: Dec 2016
Posts: 15
Original Poster
Rep:
|
"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?
|
|
|
08-03-2017, 08:44 AM
|
#8
|
LQ Guru
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,598
|
Quote:
Originally Posted by Moeman
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.
|
08-03-2017, 09:11 AM
|
#9
|
LQ Newbie
Registered: Dec 2016
Posts: 15
Original Poster
Rep:
|
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
|
|
|
|
08-03-2017, 09:16 AM
|
#10
|
LQ Guru
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,598
|
Quote:
Originally Posted by Moeman
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.
|
08-03-2017, 09:27 AM
|
#11
|
LQ Newbie
Registered: Dec 2016
Posts: 15
Original Poster
Rep:
|
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.
|
|
|
08-03-2017, 09:39 AM
|
#12
|
LQ Guru
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,598
|
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.
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.
|
08-03-2017, 10:12 AM
|
#13
|
LQ Newbie
Registered: Dec 2016
Posts: 15
Original Poster
Rep:
|
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.
|
|
|
08-03-2017, 11:37 AM
|
#14
|
LQ Guru
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,598
|
Quote:
Originally Posted by Moeman
... 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.
|
08-03-2017, 12:05 PM
|
#15
|
LQ Newbie
Registered: Dec 2016
Posts: 15
Original Poster
Rep:
|
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?
|
|
|
All times are GMT -5. The time now is 08:25 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|