mrjayviper
Posts: 6
Joined: Fri Sep 06, 2013 11:40 pm

where's the FTP client?

Fri Sep 06, 2013 11:52 pm

I have this setup
[code]
root@raspberrypi ~ # uname -a
Linux raspberrypi 3.6.11+ #371 PREEMPT Thu Feb 7 16:31:35 GMT 2013 armv6l GNU/Linux
[/code]

I looked for the shell-based FTP client (comes by default on other nix-based OSes I've tried) and I cannot find it. I've look at
[code]
/bin
/sbin
/usr/bin
/usr/sbin
[/code]

And I cannot find it.

I've also tried
[code]
root@raspberrypi ~ # whereis ftp
ftp:
[/code]

and still can't find it.

Can you please help? what shell-based FTP client can I use in the chance raspbian doesn't come with one. thanks

Joe Schmoe
Posts: 4277
Joined: Sun Jan 15, 2012 1:11 pm

Re: where's the FTP client?

Sat Sep 07, 2013 1:02 am

1) Standard forum answer: Don't use FTP. FTP (like telnet) is insecure (which means its always glancing over its shoulder, and just generally lacks confidence and self-esteem) and you shouldn't use it. If you do use it, you're a looser! Etc, etc. Use scp (or winscp if you are on Windows) instead.

2) Actually answering the question answer: Yes, "ftp" is not installed by default but can be easily and quickly installed via "apt-get install ftp" (or whatever the equivalent is in your OS - if you are not running Raspbian).
And some folks need to stop being fanboys and see the forest behind the trees.

(One of the best lines I've seen on this board lately)

mrjayviper
Posts: 6
Joined: Fri Sep 06, 2013 11:40 pm

Re: where's the FTP client?

Sun Sep 15, 2013 9:34 am

thanks for the tip. I know that telnet and ftp are insecure (been using nix since 1999). just that I want to upload my settings to my ISP's FTP server and the only way to access it is via FTP.

User avatar
joan
Posts: 15846
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: where's the FTP client?

Sun Sep 15, 2013 9:52 am

sudo apt-get install ftp

sprinkmeier
Posts: 410
Joined: Mon Feb 04, 2013 10:48 am
Contact: Website

Re: where's the FTP client?

Sun Sep 15, 2013 10:40 am

Next time you're looking for a command:
http://www.raspberrypi.org/phpBB3/viewt ... 27&t=43420

the ncftp package includes ncftput and ncftpget. If you're going to use FTP, use it in style (i.e. scripted, not interactive)

User avatar
rpdom
Posts: 19520
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: where's the FTP client?

Sun Sep 15, 2013 10:56 am

You can also use wget (already installed) to get files via ftp as well as http, and wput (not installed by default) to send files.

slycooper724
Posts: 6
Joined: Mon Jun 06, 2016 8:30 pm

Re: where's the FTP client?

Sun Jun 12, 2016 10:22 pm

I just tried to install ftp and this is what I got

Code: Select all

sly@raspberrypi:~ $ sudo apt-get install ftp
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package ftp
I just want to get two programs off of my pi and on to my computer.
Any possible solutions or advice on how to fix my problem (NOT about how not to be a loser, which is how it's really spelled, using ftp and not about how to use ftp in style) would be appreciated.
Thanks!
- Sly

User avatar
topguy
Posts: 7255
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: where's the FTP client?

Sun Jun 12, 2016 10:31 pm

If you learn to search for packages it will save you a lot of time in the future.

Code: Select all

apt-cache search ftp

User avatar
scruss
Posts: 4580
Joined: Sat Jun 09, 2012 12:25 pm
Location: Toronto, ON
Contact: Website

Re: where's the FTP client?

Mon Jun 13, 2016 12:29 am

Code: Select all

sudo apt install lftp
lftp is a really good client. Supports lots of different protocols and options. Scriptable, too.
‘Remember the Golden Rule of Selling: “Do not resort to violence.”’ — McGlashan.
Pronouns: he/him

stderr
Posts: 2178
Joined: Sat Dec 01, 2012 11:29 pm

Re: where's the FTP client?

Mon Jun 13, 2016 1:50 am

topguy wrote:If you learn to search for packages it will save you a lot of time in the future.

Code: Select all

apt-cache search ftp
Did you run that before posting it? Even with the following filter, I end up with more than a full screen, so I added less:

apt-cache search ftp | grep ftp | less

In looking at that, I find:

ftp - classical file transfer client

So it appears that the ftp install really *is*

apt-get install ftp

So the reason that the install didn't work for the poster is not because it isn't the correct name of the package.

slycooper724
Posts: 6
Joined: Mon Jun 06, 2016 8:30 pm

Re: where's the FTP client?

Mon Jun 13, 2016 9:20 pm

Thanks topguy, but I agree with stderr you should run things before you post them (that comment was only for the event that you didn't run the command "apt-cache search ftp" so if you did run it, just ignore that comment then), but to stderr I didn't get what you got when I ran the command "apt-cache search ftp"
This is what I got.

Code: Select all

sly@raspberrypi:~ $ apt-cache search ftp
libfm4 - file management support (core library)
python-minecraftpi - Python API for Minecraft Pi
python3-minecraftpi - Python 3 API for Minecraft Pi
gvfs-backends - userspace virtual filesystem - backends
curl - command line tool for transferring data with URL syntax
libcurl3 - easy-to-use client-side URL transfer library (OpenSSL flavour)
apt-utils - package management related utility programs
libcurl3-gnutls - easy-to-use client-side URL transfer library (GnuTLS flavour)
gdebi-core - simple tool to install deb files
tcpd - Wietse Venema's TCP wrapper utilities
libssh2-1 - SSH2 client-side library
openssh-sftp-server - secure shell (SSH) sftp server module, for SFTP access from remote machines
libssh-4 - tiny C SSH library (OpenSSL flavor)
wget - retrieves files from the web
openssh-client - secure shell (SSH) client, for secure access to remote machines
libapt-pkg4.12 - package management runtime library
libwrap0 - Wietse Venema's TCP wrappers library
Nowhere in the list of packets I got was there "ftp - classical file transfer client".
Any help please?
Thanks!
- Sly

stderr
Posts: 2178
Joined: Sat Dec 01, 2012 11:29 pm

Re: where's the FTP client?

Mon Jun 13, 2016 9:44 pm

slycooper724 wrote: I didn't get what you got when I ran the command "apt-cache search ftp"
Have you run?:

sudo apt-get update

Because the list I get is probably a hundred lines of programs long, which is why I put a filter in with grep on literally having ftp in the displayed line itself. (I think the search is including an extended description that we aren't seeing and that's why so many hits are occurring with this search)

User avatar
topguy
Posts: 7255
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: where's the FTP client?

Mon Jun 13, 2016 10:03 pm

It doesnt look like you are running an updated version of Raspbian Jessie. So then it gets a little troublesome for us to help. ( just the kernel version doesnt really tell me much )

What is the contents of "/etc/apt/sources.list" ?
Do you get any errors when running "sudo apt-get update" ?

slycooper724
Posts: 6
Joined: Mon Jun 06, 2016 8:30 pm

Re: where's the FTP client?

Fri Jun 17, 2016 8:31 pm

My verson of Raspbian Jessie is 4.1.13+ based off of the command I used below

Code: Select all

sly@raspberrypi:~ $ uname -r
4.1.13+
The contents of "/etc/apt/sources.list" I have below.

Code: Select all

deb http://mirrordirector.raspbian.org/raspbian jessie main contrib non-free rpi
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://archive.raspbian.org/raspbian/ jessie main contrib non-free rpi
I understand you wanting to see my apt-get sources file, I had a problem recently and had to edit it to fix the problem, but it wasn't the source list that was the problem, it was my ip (I had to set up a static ip to fix the problem) so I set the sources list back to default and never had a problem since.

I got no errors running "sudo apt-get update" based off my results after running it (below).

Code: Select all

sly@raspberrypi:~ $ sudo apt-get update
Get:1 http://mirrordirector.raspbian.org jessie InRelease [14.9 kB]
Hit http://archive.raspberrypi.org jessie InRelease
Get:2 http://mirrordirector.raspbian.org jessie/main armhf Packages [8,980 kB]
Hit http://archive.raspberrypi.org jessie/main armhf Packages
Hit http://archive.raspberrypi.org jessie/ui armhf Packages
Ign http://archive.raspberrypi.org jessie/main Translation-en_GB
Ign http://archive.raspberrypi.org jessie/main Translation-en
Ign http://archive.raspberrypi.org jessie/ui Translation-en_GB
Ign http://archive.raspberrypi.org jessie/ui Translation-en
Get:3 http://mirrordirector.raspbian.org jessie/contrib armhf Packages [37.5 kB]
Get:4 http://mirrordirector.raspbian.org jessie/non-free armhf Packages [70.3 kB]
Get:5 http://mirrordirector.raspbian.org jessie/rpi armhf Packages [1,356 B]
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en
Ign http://mirrordirector.raspbian.org jessie/main Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/main Translation-en
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en
Err http://mirrordirector.raspbian.org jessie/main armhf Packages

Fetched 9,105 kB in 1min 8s (133 kB/s)
Reading package lists... Done
Thanks, but I still need help!?
- Sly

User avatar
topguy
Posts: 7255
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: where's the FTP client?

Sat Jun 18, 2016 5:02 pm

I mixed your information with the person who started this thread. ( which is why you should avoid resurrecting old threads in the first place )

Maybe some of your indexes are broken because of your earlier problems.
I just tested this on my own Pi to force reloading all indexes.

Code: Select all

sudo apt-get clean
sudo rm /var/lib/apt/lists/*
sudo rm /var/lib/apt/lists/partial/
sudo apt-get update
apt-cache search ftp | grep ftp | grep client
The last command produces this output.

Code: Select all

pi@raspberrypi:~/dev $ apt-cache search ftp | grep ftp | grep client
atftp - advanced TFTP client
bareftp - FTP client for GNOME
ftp - classical file transfer client
ftp-ssl - The FTP client with SSL or TLS encryption support
ftpcopy - FTP clients collection
gftp - X/GTK+ and console FTP client (metapackage)
gftp-gtk - X/GTK+ FTP client
gftp-text - colored FTP client using GLib
git-ftp - Git powered FTP client written as shell script
inetutils-ftp - File Transfer Protocol client
jftp - Java GUI client for FTP, SMB, SFTP and NFS
kftpgrabber - ftp client for KDE
krb5-clients - Secure replacements for ftp, telnet and rsh using MIT Kerberos
lftp - Sophisticated command-line FTP/HTTP/BitTorrent client programs
libglobus-ftp-client-dbg - Globus Toolkit - GridFTP Client Library Debug Symbols
libglobus-ftp-client-dev - Globus Toolkit - GridFTP Client Library Development Files
libglobus-ftp-client-doc - Globus Toolkit - GridFTP Client Library Documentation Files
libglobus-ftp-client2 - Globus Toolkit - GridFTP Client Library
libnet-sftp-foreign-perl - client for the Secure File Transfer Protocol
linphone - SIP softphone - graphical client
linphone-nogtk - SIP softphone - console-only client
ncftp - User-friendly and well-featured FTP client
python-ftputil - High-level FTP client library (virtual filesystem and more)
socks4-clients - Socks4 enabled clients as rtelnet and rftp
tftp - Trivial file transfer protocol client
tftp-hpa - HPA's tftp client
tnftp - enhanced ftp client
wput - tiny wget-like ftp-client for uploading files

slycooper724
Posts: 6
Joined: Mon Jun 06, 2016 8:30 pm

Re: where's the FTP client?

Mon Jun 20, 2016 4:09 pm

Thanks topguy, after running all the commands you listed and then finally running "apt-cache search ftp | grep ftp | grep client" (I never knew my keyboard had the " | " symbol before now) I got the same list of packages as you did.
Just to give you more insight, here's what I saw.

Code: Select all

sly@raspberrypi:/ $ sudo apt-get clean
sly@raspberrypi:/ $ sudo rm /var/lib/apt/lists/*
rm: cannot remove ‘/var/lib/apt/lists/partial’: Is a directory
sly@raspberrypi:/ $ sudo rm /var/lib/apt/lists/partial/
rm: cannot remove ‘/var/lib/apt/lists/partial/’: Is a directory
sly@raspberrypi:/ $ sudo apt-get update
Get:1 http://archive.raspberrypi.org jessie InRelease [13.2 kB]
Get:2 http://mirrordirector.raspbian.org jessie InRelease [14.9 kB]
Get:3 http://archive.raspberrypi.org jessie/main armhf Packages [144 kB]
Get:4 http://mirrordirector.raspbian.org jessie/main armhf Packages [8,980 kB]
Get:5 http://archive.raspberrypi.org jessie/ui armhf Packages [8,966 B]
Ign http://archive.raspberrypi.org jessie/main Translation-en_GB
Ign http://archive.raspberrypi.org jessie/main Translation-en
Ign http://archive.raspberrypi.org jessie/ui Translation-en_GB
Ign http://archive.raspberrypi.org jessie/ui Translation-en
Get:6 http://mirrordirector.raspbian.org jessie/contrib armhf Packages [37.5 kB]
Get:7 http://mirrordirector.raspbian.org jessie/non-free armhf Packages [70.3 kB]
Get:8 http://mirrordirector.raspbian.org jessie/rpi armhf Packages [1,356 B]
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en
Ign http://mirrordirector.raspbian.org jessie/main Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/main Translation-en
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en
Fetched 9,271 kB in 35s (259 kB/s)
Reading package lists... Done
sly@raspberrypi:/ $ apt-cache search ftp | grep ftp | grep client
atftp - advanced TFTP client
bareftp - FTP client for GNOME
ftp - classical file transfer client
ftp-ssl - The FTP client with SSL or TLS encryption support
ftpcopy - FTP clients collection
gftp - X/GTK+ and console FTP client (metapackage)
gftp-gtk - X/GTK+ FTP client
gftp-text - colored FTP client using GLib
git-ftp - Git powered FTP client written as shell script
inetutils-ftp - File Transfer Protocol client
jftp - Java GUI client for FTP, SMB, SFTP and NFS
kftpgrabber - ftp client for KDE
krb5-clients - Secure replacements for ftp, telnet and rsh using MIT Kerberos
lftp - Sophisticated command-line FTP/HTTP/BitTorrent client programs
libglobus-ftp-client-dbg - Globus Toolkit - GridFTP Client Library Debug Symbols
libglobus-ftp-client-dev - Globus Toolkit - GridFTP Client Library Development Files
libglobus-ftp-client-doc - Globus Toolkit - GridFTP Client Library Documentation Files
libglobus-ftp-client2 - Globus Toolkit - GridFTP Client Library
libnet-sftp-foreign-perl - client for the Secure File Transfer Protocol
linphone - SIP softphone - graphical client
linphone-nogtk - SIP softphone - console-only client
ncftp - User-friendly and well-featured FTP client
python-ftputil - High-level FTP client library (virtual filesystem and more)
socks4-clients - Socks4 enabled clients as rtelnet and rftp
tftp - Trivial file transfer protocol client
tftp-hpa - HPA's tftp client
tnftp - enhanced ftp client
wput - tiny wget-like ftp-client for uploading files
sly@raspberrypi:/ $
I installed ftp and it worked without saying it was able to find the package!!!
Thanks!
- Sly

Return to “Raspberry Pi OS”