I am trying to setup an multi arch environment to cross compile armhf board. The steps I followed is quite simple.
- Install ubuntu-18.04.1-desktop-amd64 on VirtualBox.
sudo dpkg --add-architecture armhf
vim /etc/apt/sources.list
and add followings.
deb [arch=armhf] http://ports.ubuntu.com/ trusty main universe
deb-src [arch=armhf] http://ports.ubuntu.com/ trusty main universe
[And put [arch=i386,amd64] for the other lines.]
sudo apt update
sudo apt install libgstreamer1.0-dev:armhf
And the installation was unsuccessful with following error.
sudo apt install libgstreamer1.0-dev:armhf
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:
libgstreamer1.0-dev:armhf : Depends: libgstreamer1.0-0:armhf (= 1.14.0-1) but it is not going to be installed
Depends: libc6-dev:armhf but it is not going to be installed or
libc-dev:armhf
Depends: libglib2.0-dev:armhf but it is not going to be installed
Depends: libc6:armhf (>= 2.4) but it is not going to be installed
Depends: libglib2.0-0:armhf (>= 2.40) but it is not going to be installed
Depends: gir1.2-gstreamer-1.0:armhf (= 1.14.0-1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
I've some searching and tried following things and didn't help.
sudo apt -f install
- Tried install missing dependant package manually but it's recursive. I mean, if I do
sudo apt install gir1.2-gstreamer-1.0:armhf
, it fails with unmet dependency oflibgstreamer1.0-0:armhf
Any advice will be appreciated! Thanks.