[mythtv-users] Raspberry Pi Newbie Questions

Lawrence Rust lvr at softsystem.co.uk
Wed Dec 30 09:38:48 UTC 2015


On Wed, 2015-12-30 at 19:18 +1100, Kingsley Turner wrote:
> On 15/12/15 05:38, Jim C wrote:
> > Based on all the discussion regarding the Raspberry Pi as a MythTV
> > frontend I've decided to get one to try. Being totally new to the topic
> > I have some real beginner-level questions - even after visiting the RPi
> > page and the MythTV wiki.
> 
> This is where I'm at too.
> 
> So I've got my rPi, and the "jessie" image.
> 
> Lawrence, I'm trying to follow your instructions, and I'm up to the point of 
> running mythbuild.sh on my workstation to cross-compile the mythtv binaries 
> for rPi.  But something goes wrong ~
> 
> ~/Code/rpi
> [Snugglepot] ./mythbuild.sh -2 -Q 5.4.0
> 
> *********************************************************************
> Building MythTV branch 'fixes-0.27-rpi' (release) for RPI2
> *********************************************************************
> [... snippety-snip]
> *********************************************************************
> RASPBIAN_FLAVOUR=jessie
> *********************************************************************
> apt-get update...
> Hit http://archive.raspberrypi.org jessie InRelease
> Hit http://archive.raspberrypi.org jessie/main armhf Packages
> Hit http://mirrordirector.raspbian.org jessie InRelease
> Hit http://mirrordirector.raspbian.org jessie/main armhf Packages
> Hit http://mirrordirector.raspbian.org jessie/contrib armhf Packages
> Hit http://mirrordirector.raspbian.org jessie/non-free armhf Packages
> Hit http://mirrordirector.raspbian.org jessie/rpi armhf Packages
> W: Failed to fetch 
> http://mirrordirector.raspbian.org/raspbian/dists/jessie/InRelease Unable to 
> find expected entry 'main/binary-i386/Packages' in Release file (Wrong 
> sources.list entry or malformed file)

This indicates apt-get is looking for i386 (host) packages, which is
wrong.  Could it be a temporary problem while the repository is being
updated?  Have you tried again with the same result?

> W: Failed to fetch 
> http://archive.raspberrypi.org/debian/dists/jessie/InRelease  Unable to find 
> expected entry 'main/binary-i386/Packages' in Release file (Wrong 
> sources.list entry or malformed file)
> 
> E: Some index files failed to download. They have been ignored, or old ones 
> used instead.
> 
> 
> I am supposed to be running this on my workstation right?

Correct.  You should run mythbuild.sh on a Debian compliant host system
which provides apt-get.  The host should have the standard development
tools (apt-get install build-essential).

> It's not 100% clear to me if this script is to be run on the workstation or rPi.
> Since it says "cross-compile" I figured workstation.  But now this has 
> happened, I'm not so sure.

The mythbuild.sh script creates an apt.conf file that specifies the
armhf architecture.  Using that configuration, apt-get should fetch
packages only for armhf.  This looks like apt-get is misbehaving.  Could
you tell me the output from:

lsb_release -a; uname -i; apt-get --version

A shot in the dark, but if your host is a 64-bit you could try appending
this line to mythbuild/apt-rpi/downloader.conf.  You will find this file
in the directory that you ran mythbuild.sh from.

APT::Architectures "armhf";

-- Lawrence Rust



More information about the mythtv-users mailing list