Unmet dependencies and broken packages

Hello, I’m trying to install Mopidy on my Raspberry Pi B+. I added the mopidy source like the guide told me to do and when I try to run

sudo apt install mopidy

I get the following output

pi@raspberrypi:/etc/apt $ sudo apt install mopidy
Reading package lists… Done
Building dependency tree
Reading state information… Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
mopidy : Depends: gir1.2-gst-plugins-base-1.0 but it is not installable
Depends: gir1.2-gstreamer-1.0 but it is not installable
Depends: gstreamer1.0-plugins-good but it is not installable
Depends: gstreamer1.0-plugins-ugly but it is not installable
Depends: python-gst-1.0 but it is not installable
Depends: python-tornado (>= 2.3) but it is not going to be installed
Depends: python-pkg-resources but it is not installable
Depends: python-pykka but it is not going to be installed
Depends: python-requests but it is not installable
Recommends: gstreamer1.0-alsa but it is not installable
Recommends: gstreamer1.0-pulseaudio but it is not installable
Recommends: gstreamer1.0-tools but it is not installable
E: Unable to correct problems, you have held broken packages.

I tried googling around but I can’t find much, I also did a search on here and didn’t find anything either.

Thanks for any help.

EDIT: Here’s my sources,

pi@raspberrypi:/etc/apt $ cat sources.list

#Mopidy APT archive
#Built on Debian 8 (jessie), compatible with Ubuntu 14.04 LTS and 15.04
deb http://apt.mopidy.com/ jessie main contrib non-free
deb-src http://apt.mopidy.com/ jessie main contrib non-free

As far as I know, this should be right.

Did you follow instructions

sudo apt-get update
sudo apt-get install mopidy

or do

I did update it, and apt-get and apt do the same thing.

OK, can’t be much more help then I’m afraid, I didn’t realise they did the same so have always used apt-get and it’s installed fine on numerous cards - good luck.

I appreciate you trying to help me :slight_smile:

Hopefully someone will be able to help.

@Steve_Lambert https://www.maketecheasier.com/apt-vs-apt-get-ubuntu/

Thanks for the link - I’ve just done a fresh install on jessie lite using just apt and it installed fine - even a nice progress bar :slight_smile: Hope you get some help with yours.

Are you running a recent version of raspbian or a really old version based on wheezy?

I were running the latest version of Raspbian Jessie Light, but I gave up on the project shortly after.

I regularly install Mopidy on Raspbian exactly using the steps in our docs without issue.

Google shows https://github.com/mopidy/mopidy/issues/1489 which sounds a lot like your problem. For anyone else that lands here, check your APT sources:

  • cat /etc/apt/sources.list
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
  • cat /etc/apt/sources.list.d/raspi.list
deb http://archive.raspberrypi.org/debian/ jessie main ui
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://archive.raspberrypi.org/debian/ jessie main ui
  • cat /etc/apt/sources.list.d/mopidy.list
# Mopidy APT archive
# Built on Debian 8 (jessie), compatible with Ubuntu 14.04 LTS and 15.04
deb http://apt.mopidy.com/ jessie main contrib non-free
deb-src http://apt.mopidy.com/ jessie main contrib non-free
  • apt-cache showpkg gir1.2-gst-plugins-base-1.0
Package: gir1.2-gst-plugins-base-1.0
Versions: 
1.4.4-2 (/var/lib/apt/lists/mirrordirector.raspbian.org_raspbian_dists_jessie_main_binary-armhf_Packages) (/var/lib/dpkg/status)
 Description Language: 
                 File: /var/lib/apt/lists/mirrordirector.raspbian.org_raspbian_dists_jessie_main_binary-armhf_Packages
                  MD5: 1c3b9ff935990198956b8c00dd1b7da8