libasound2-dev won't install

Forum about Parallella boot process, linux kernel, distros, SD-cards, etc.

libasound2-dev won't install

Postby rec » Sat Mar 12, 2016 6:24 pm

I started porting an existing project to the parallella, and my attempt failed almost immediately.

Code: Select all
rec@parallella:~$ sudo apt-get install libasound2-dev
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:
 libasound2-dev : Depends: libasound2 (=
E: Unable to correct problems, you have held broken packages.

The problem here is that the dev package for the ALSA sound library is specified to require the binary package for the same library, but that package has been replaced by a linaro specific package:

Code: Select all
rec@parallella:~$ dpkg-query -p libasound2
Package: libasound2
Priority: optional
Section: libs
Installed-Size: 772
Maintainer: Ubuntu Developers <>
Architecture: armhf
Multi-Arch: same
Source: alsa-lib
Depends: libc6 (>= 2.16), libasound2-data (>=
Pre-Depends: multiarch-support
Suggests: libasound2-plugins (>= 1.0.24)
Breaks: bluez-alsa (<= 4.94-2), libasound2-plugin-equal (<= 0.6-1), libasound2-plugins (<< 1.0.24)
Size: 326532
Description: shared library for ALSA applications
 This package contains the ALSA library and its standard plugins, as well
 as the required configuration files.
 ALSA is the Advanced Linux Sound Architecture.
Original-Maintainer: Debian ALSA Maintainers <>

I tried forcing the installation of the libasound2-dev package, ignoring the dependencies, but there are other packages blocked by the +linaro package and apt-get continues to complain about the unmet dependency every time it runs. apt-get -f install offers to "fix" things by uninstalling libasound2-dev.

At this point I'm stumped. I suppose that the linaro specific libasound2 should have been specified as Provides or Replaces the original ubuntu package, but trying to puzzle out the proper relationships in the .deb manual is only giving me a headache.

As I understand it, this essentially blocks all audio development on the parallella since the libasound2 package is the one that every other higher level audio layer requires, and you can't even write a raw interface without libasound2-dev installed

Who built these packages and who is responsible for maintaining them?

-- rec --
Posts: 13
Joined: Mon Dec 17, 2012 3:29 am

Re: libasound2-dev won't install

Postby peteasa » Sun Mar 13, 2016 9:29 pm

Interesting problem.. not sure how to fix your particular case, but I have a working distribution with libasound2 so it will work in the end! You may not want to follow my yocto route, but at least it can give you hope that you can solve the issue. Things to take note of:
1/ fpga needs to be correct to get sound working with hdmi cable - my yocto environment uses the latest oh fpga code and a "special" epiphany driver.. the official one is in progress.
2/ my yocto environment builds the whole distribution so you should expect to leave the computer building stuff for a few hours depending on the speed of your machine.
3/ I am using ADI kernel 3.19 patched with epiphany driver, the next official parallella one that supports oh fpga is likely to be 4.? so I am soon going to update the kernel and at the same time likely pick up the official parallella kernel / epiphany driver, so the yocto environment will be changing soon!

If you want to have a go the getting started guide linked from viewtopic.php?f=49&t=3180&start=10#p15756 will give you an idea about what you need to do. The environment is at but you will find has lots of submodules to fetch. The linux distribution is build from within the parallella/parallella-yoctobuild folder so that is the minimum you absolutely must fetch.
User avatar
Posts: 117
Joined: Fri Nov 21, 2014 7:04 pm

Re: libasound2-dev won't install

Postby olajep » Tue Dec 13, 2016 3:08 pm

Does work with Parabuntu 2016.11

Code: Select all
$ sudo apt-get install libasound2-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Suggested packages:
The following NEW packages will be installed:
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 55.7 kB of archives.
After this operation, 445 kB of additional disk space will be used.
Get:1 vivid/main libasound2-dev armhf 1.0.28-1 [55.7 kB]
Fetched 55.7 kB in 0s (339 kB/s)
Selecting previously unselected package libasound2-dev:armhf.
(Reading database ... 41745 files and directories currently installed.)
Preparing to unpack .../libasound2-dev_1.0.28-1_armhf.deb ...
Unpacking libasound2-dev:armhf (1.0.28-1) ...
Setting up libasound2-dev:armhf (1.0.28-1) ...
_start = 266470723;
Posts: 140
Joined: Mon Dec 17, 2012 3:24 am
Location: Sweden

Return to Linux/U-Boot

Who is online

Users browsing this forum: No registered users and 1 guest