LBDonovan/image-builder

libasound2-dev has some unmet dependencies but it works

Opened this issue · 2 comments

libasound2-dev

I tried to install it

root@beaglebone:~/Bela# apt-get install libasound2-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libasound2-dev : Depends: libasound2 (= 1.1.3-5) but it is not going to be installed
 libc6-dev : Depends: linux-libc-dev (>= 4.9.2-2) but 1cross is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

Instead of doing apt --fix-broken install I did:

root@beaglebone:~/Bela# apt-get install linux-libc-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
  linux-libc-dev

which installed linux-libc-dev armhf 4.9.18-1
at which point I was able to install libasound2-dev

Yeah ok I was going to ask you about this. When I build the kernel with build_deb.sh from Robert Nelson's repo it creates 4 packages, linux-image, linux-firmware, linux-headers and linux-libc-dev. The first three install fine but the fourth gives a warning (something about overwriting a more recent version iirc).

My thinking was that the libc version should be the same as the kernel but maybe I should not install that package and stick with the more recent libc-dev package installed by apt-get?

I think it makes sense to keep the one you install from the kernel. How you do that without apt-get trying to overwrite it, is to be discovered