Error: Short Read on Raspberry Pi Torrent Box

General support for problems installing or using Deluge
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Error: Short Read on Raspberry Pi Torrent Box

Post by Cas »

Not surprising since you did not install latest libtorrent... (0.16 or 1.0)
DanielDC88
Member
Member
Posts: 25
Joined: Fri Jul 24, 2015 9:56 pm

Re: Error: Short Read on Raspberry Pi Torrent Box

Post by DanielDC88 »

Cas wrote:Not surprising since you did not install latest libtorrent... (0.16 or 1.0)
Okay, I will give it another go. Sorry for not seeing this message and not realising this mistake. I can't see how I can change what version of Libtorrent is downloaded form that guide, however. I downloaded the latest version of Deluge so I figured it would have the latest version of Libtorrent with it. Some assistance would be very helpful.

You messages come across as a little unfriendly though. I appreciate I may be somewhat ignorant, but I am a little out of my depth here!
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Error: Short Read on Raspberry Pi Torrent Box

Post by Cas »

Maybe because you have not followed the advise given. E.g. you have already been provided with the exact information to build libtorrent: http://dev.deluge-torrent.org/wiki/Buil ... untuDebian

However a quick google search actually shows there are some prebuilt deb packages for raspbian: http://ftp.acc.umu.se/mirror/raspbian/r ... rasterbar/

libtorrent-rasterbar7_0.16.18-1_armhf.deb
python-libtorrent_0.16.18-1_armhf.deb

Download those and install using `dpkg -i ...`
DanielDC88
Member
Member
Posts: 25
Joined: Fri Jul 24, 2015 9:56 pm

Re: Error: Short Read on Raspberry Pi Torrent Box

Post by DanielDC88 »

Google searches don't work when one doesn't know what to search for. I've tried to follow advice but I am very new to Linux and all this command line stuff. What may be enough to get by for you may not be for me since I am way out of my depth. I am sorry if this annoys or frustrates you, but I am trying my best with what little time I have to do this.

Having said that, I have attempted to follow the instructions from here: http://dev.deluge-torrent.org/wiki/Buil ... untuDebian It hangs when I run 'make' (compiling, right?) on a line that says 'CXX web_connection_base.lo' I appreciate the pi isn't very fast but I did give up after about four hours of waiting. The information on the link on that link to Libtorrent's instructions to this did not make sense to me.

What are the files on that Google search of yours? could they bypass this stage of the process? How would I use them?

Thanks.
DanielDC88
Member
Member
Posts: 25
Joined: Fri Jul 24, 2015 9:56 pm

Re: Error: Short Read on Raspberry Pi Torrent Box

Post by DanielDC88 »

Worked out what those deb things do, but wasn't quite sure what you meant. Found out how to download them, which was the issue I was having.
Then when I did the dpkg -i thing:

Code: Select all

pi@Pi-Test ~ $ sudo dpkg -i python-libtorrent_0.16.18-1_armhf.deb ; sudo dpkg -i                                                                                                                                                              libtorrent-rasterbar7_0.16.18-1_armhf.deb                                                                                                                                                                                                   Selecting previously unselected package python-libtorrent.
(Reading database ... 78616 files and directories currently installed.)
Unpacking python-libtorrent (from python-libtorrent_0.16.18-1_armhf.deb) ...
dpkg: dependency problems prevent configuration of python-libtorrent:
 python-libtorrent depends on libboost-python1.55.0; however:
  Package libboost-python1.55.0 is not installed.
 python-libtorrent depends on libboost-system1.55.0; however:
  Package libboost-system1.55.0 is not installed.
 python-libtorrent depends on libtorrent-rasterbar7 (= 0.16.18-1); however:
  Package libtorrent-rasterbar7 is not installed.

dpkg: error processing python-libtorrent (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 python-libtorrent
Selecting previously unselected package libtorrent-rasterbar7.
(Reading database ... 78622 files and directories currently installed.)
Unpacking libtorrent-rasterbar7 (from libtorrent-rasterbar7_0.16.18-1_armhf.deb)                                                                                                                                                              ...
dpkg: dependency problems prevent configuration of libtorrent-rasterbar7:
 libtorrent-rasterbar7 depends on libboost-system1.55.0; however:
  Package libboost-system1.55.0 is not installed.
 libtorrent-rasterbar7 depends on libc6 (>= 2.17); however:
  Version of libc6:armhf on system is 2.13-38+rpi2+deb7u8.
 libtorrent-rasterbar7 depends on libstdc++6 (>= 4.9); however:
  Version of libstdc++6:armhf on system is 4.8.2-21~rpi3rpi1.

dpkg: error processing libtorrent-rasterbar7 (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 libtorrent-rasterbar7
It seems that there is a bunch of stuff this depends on which is not on Raspian Wheezy. I'll update this as I try new things until somone can put me out of my ignorant misery.

I tried doing it the other way again but there is a dependency on something called boost when doing the ./configure command.

Code: Select all

Checking for boost libraries:
checking for boostlib >= 1.36... configure: We could not detect the boost libraries (version 1.36 or higher). If you have a staged boost library (still not installed) please specify $BOOST_ROOT in your environment and do not give a PATH to --with-boost option.  If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation.
checking whether the Boost::System library is available... no
configure: error: Boost.System library not found. Try using --with-boost-system=lib
I Have followed the instructions on the deluge guide, but still boost seems to not be working. The stuff about it on Libtorrent's site confuses me. Surely there's a simpler way than all this?

Is this even possible? I've spent hours on this and I've got nowhere.
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Error: Short Read on Raspberry Pi Torrent Box

Post by Cas »

This is the occasional peril of running debian, it is very conservative and there are times when it is hard to install the latest version of libraries.

Can you run the following:

Code: Select all

apt-cache policy libtorrent-rasterbar*
You should have been able to install 0.16.18 if you have that repo added to your sources-list: https://www.raspbian.org/RaspbianRepository
DanielDC88
Member
Member
Posts: 25
Joined: Fri Jul 24, 2015 9:56 pm

Re: Error: Short Read on Raspberry Pi Torrent Box

Post by DanielDC88 »

Hmm yes, from what I hear any type of Linux often inspires suicidal thoughts. Perhaps it's not for everyone, but it's likely the cheapest and most efficient way to get what I want. Energy efficient, that is. Not time. Definitely not.

/etc/apt/sources.list reads like so:

Code: Select all

deb http://mirrordirector.raspbian.org/raspbian/ wheezy main contrib non-free rpi
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
deb-src http://archive.raspbian.org/raspbian/ wheezy main contrib non-free rpi
I executed the command and got the following back:

Code: Select all

pi@Pi-Test ~ $ apt-cache policy libtorrent-rasterbar*
N: Unable to locate package libtorrent-rasterbar-1.0.6
N: Couldn't find any package by regex 'libtorrent-rasterbar-1.0.6'
N: Unable to locate package libtorrent-rasterbar-1.0.6.tar.gz
N: Couldn't find any package by regex 'libtorrent-rasterbar-1.0.6.tar.gz'
N: Unable to locate package libtorrent-rasterbar7_0.16.18-1_armhf.deb
N: Couldn't find any package by regex 'libtorrent-rasterbar7_0.16.18-1_armhf.deb                '
I'm a little confused by this output as 'dir' gives the following:

Code: Select all

pi@Pi-Test ~ $ dir
boost_1_36_0
boost_1_36_0.tar.gz
boost_1_36_0.tar.gz?r=http:%2F%2Fsourceforge.net%2Fprojects%2Fboost%2Ffiles%2Fbo                ost%2F1.36.0%2F
download
libtorrent-1_0_6
libtorrent-rasterbar-1.0.6
libtorrent-rasterbar-1.0.6.tar.gz
libtorrent-rasterbar7_0.16.18-1_armhf.deb
python_games
python-libtorrent_0.16.18-1_armhf.deb
It looks like the files are there, so this means they're not installed, right?

I then added the line "deb-src http://archive.raspbian.org/" to /etc/apt/sources.list and rebooted. Looks similar to the one on line 3 but I thought I'd add it anyway.
I executed the command you gave me again and got the following:

Code: Select all

pi@Pi-Test ~ $ apt-cache policy libtorrent-rasterbar*
E: Malformed line 4 in source list /etc/apt/sources.list (dist)
E: The list of sources could not be read.
E: The package lists or status file could not be parsed or opened.
It appears that it didn't like the new line I added, so I have removed it again.

When you say install 0.16.18: which way of getting it are you referring to (from the .deb or compiling from the .tar.gz); and is that version equivalent to the one located at the link found in the instructions, or the ones in the .deb files you specified in a previous post?

Also, would it be a good idea to maybe look at the tutorial I tried that got me to the latest version of Deluge, but an old version of Libtorrent? You might be able to spot which part of the code is responsible for providing the old Libtorrent version and adapt it to give the latest? After all I managed to install it using that guide very quickly.

Thanks,

Daniel
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Error: Short Read on Raspberry Pi Torrent Box

Post by Cas »

Linux on the whole is better than any other OS but it's just the fact Debian lags behind other popular distros like Ubuntu or Arch.

You have obviously made a mistake adding those lines to /etc/apt/sources.list, please try again. Use the rasbian repo is the best way to install libtorrent for you just now.

For reference if the apt-cache policy fails to find anything installed you can check what is available using apt-cache search:

Code: Select all

apt-cache search libtorrent-rasterbar
dir just list files in that directory, so no they are not installed.
DanielDC88
Member
Member
Posts: 25
Joined: Fri Jul 24, 2015 9:56 pm

Re: Error: Short Read on Raspberry Pi Torrent Box

Post by DanielDC88 »

Well I added that repo to the machine. Can I get a pre-compiled version of libtorrent from it then? What command should I use? I'm really confused as to what aspect adding this will solve.
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Error: Short Read on Raspberry Pi Torrent Box

Post by Cas »

Looking into this further the only way to get latest libtorrent on wheezy is to build from source. You will have to be patient as it could take hours on a RPi.

Oh it might build faster if you use all four cpu cores with the make command :

Code: Select all

make -j 4
Locked