Jb2cool
Posts: 27
Joined: Fri Dec 28, 2012 10:56 am
Location: Berkshire, UK

Unable to install newer version of curl/libcurl3

Thu Jan 02, 2014 9:23 am

I have a user that's using curl (curlftpfs) to locally mount a USB hard drive that's being served by his Netgear WNDR4000 router. When attempting to connect the FTP path he gets this error;
"Error connecting to ftp: Got a 230 ftp-server response when a 220 was expected".

Now when he tries this with FileZilla on his PC he does indeed get a 230 response but FileZilla is happy with this code and continues.

Looking at a ftp code page online http://en.wikipedia.org/wiki/List_of_FT ... turn_codes
230 User logged in, proceed. Logged out if appropriate.
220 Service ready for new user.
Seems like both should do fine. But it will not accept 230 only 220.

He's done some digging and found that this is infact a bug in the curl libary. The owner of curl "Haxx" have informed him that the bug was corrected in 7.31.0 version of curl. The version available in the Raspbian repository is 7.26.0 but there are also .deb files for a newer version 7.34.0. I tried downloading these for him but they seem to have a dependency mismatch with libc6 where 2.13-38+rpi2 is installed and the new versions of curl/libcurl3 want >=2.17.

Any tips on where to go from here?

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

Re: Unable to install newer version of curl/libcurl3

Thu Jan 02, 2014 10:40 am

The later .deb file in the Raspbian repository is for Rasbian Jessie - the release that will eventually replace Raspbian Wheezy.

You could take a (small) chance and start using Jessie now. Initially you will have a huge number of software upgrades, but you will get the later libcurl3 as well.

skribtsov
Posts: 14
Joined: Mon Jul 08, 2013 7:57 am

Re: Unable to install newer version of curl/libcurl3

Tue Jan 07, 2014 12:12 pm

Got a similar problem with libc6 (> 2.17) while trying to install ssmtp

Can you provide step-by-step instructions please, how I would get this library from Jessie release (If I got you right). Thanks!

plugwash
Forum Moderator
Forum Moderator
Posts: 3648
Joined: Wed Dec 28, 2011 11:45 pm

Re: Unable to install newer version of curl/libcurl3

Tue Jan 07, 2014 2:05 pm

Jb2cool wrote: Any tips on where to go from here?
Something along the lines of

apt-get install build-essential devscripts
apt-get build-dep curl
dget http://ftp.de.debian.org/debian/pool/ma ... 34.0-1.dsc
cd curl-7.34.0
dpkg-buildpackage -b

seanhq
Posts: 2
Joined: Fri Apr 18, 2014 6:58 am

Re: Unable to install newer version of curl/libcurl3

Fri Apr 18, 2014 4:56 pm

make sure you purge all you curlftpfs stuff
apt-get purge curl libcurl3 curlftpfs

I needed to apt-get install automake

Also the versions are different now so go to
http://ftp.de.debian.org/debian/pool/main/c/curl/
and find the newest one

to add sources you need to nano /etc/apt/sources.list and add the same line as above with deb-src instead of deb
EDIT: the line to add is "deb-src http://mirrordirector.raspbian.org/raspbian/ wheezy main contrib non-free rpi"

then "dpkg -i FILENAME" the files that are inside the directory after "dpkg-buildpackage -b", some failed for me but I the ones that worked were enough

then "apt-get intsall curlftpfs"

this worked for me!
Last edited by seanhq on Fri Apr 18, 2014 8:55 pm, edited 1 time in total.

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

Re: Unable to install newer version of curl/libcurl3

Fri Apr 18, 2014 5:58 pm

seanhq wrote:to add sources you need to nano /etc/fstab and add the same line as above with deb-src instead of deb
I think you mean /etc/apt/sources.list (or create a new file in /etc/apt/sources.list.d/) not /etc/fstab!

seanhq
Posts: 2
Joined: Fri Apr 18, 2014 6:58 am

Re: Unable to install newer version of curl/libcurl3

Fri Apr 18, 2014 8:52 pm

I think you mean /etc/apt/sources.list (or create a new file in /etc/apt/sources.list.d/) not /etc/fstab!
thanks!

btw great mounting instructions for curlftpfs here

http://www.ubuntugeek.com/how-to-mount- ... buntu.html

that will tell you about your fstab

blobby55
Posts: 5
Joined: Sat Sep 05, 2015 8:13 am

Re: Unable to install newer version of curl/libcurl3

Mon Sep 14, 2015 3:20 pm

I tried this method for installing curl 7.38 but it depends on a newer librtmp0. Since I cannot go back and compile every dependency, I was wondering if anyone has a better idea for updating this package. Should I just wait for Raspbian jessie?

Return to “Raspberry Pi OS”