Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

qemu-system has unmet dependencies #18

Open
acerv opened this issue Nov 10, 2016 · 4 comments
Open

qemu-system has unmet dependencies #18

acerv opened this issue Nov 10, 2016 · 4 comments

Comments

@acerv
Copy link

acerv commented Nov 10, 2016

When trying to build the docker with command:
sudo docker build -t lavadev .

I have the following error:

The following packages have unmet dependencies:
qemu-system : Depends: qemu-system-sparc but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
The command '/bin/sh -c echo 'lava-server lava-server/instance-name string lava-docker-instance' | debconf-set-selections && echo 'locales locales/locales_to_be_generated multiselect C.UTF-8 UTF-8, en_US.UTF-8 UTF-8 ' | debconf-set-selections && echo 'locales locales/default_environment_locale select en_US.UTF-8' | debconf-set-selections && apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y android-tools-fastboot cu expect lava-coordinator lava-dev lava-dispatcher lava-tool linaro-image-tools locales openssh-server postgresql screen sudo vim && service postgresql start && DEBIAN_FRONTEND=noninteractive apt-get install -y -t jessie-backports lava qemu-system && a2dissite 000-default && a2ensite lava-server && /stop.sh && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 100

@fboudra
Copy link
Contributor

fboudra commented Nov 10, 2016

QEMU 2.7 has been backported to jessie-backports, and has a broken dependency. It needs a newer openbios-sparc package.

Until it's fixed in jessie-backports, you can replace qemu-system in Dockerfile:
qemu-system \
by
qemu-system-arm qemu-system-mips qemu-system-ppc qemu-system-x86 qemu-system-misc \

We filter out qemu-system-sparc from the list to install.

With more thoughts, we can probably get rid of qemu-system and only install the architecture that are really supported by LAVA like qemu-system-arm and qemu-system-x86.

@acerv
Copy link
Author

acerv commented Nov 10, 2016

The bugfix works, but now I have an another problem with python dependences:

dpkg-checkbuilddeps: Unmet build dependencies: python-sphinx (>= 1.4)

@fboudra
Copy link
Contributor

fboudra commented Nov 10, 2016

right. You need python-sphinx from jessie-backports too now.

--- a/Dockerfile
+++ b/Dockerfile
@@ -31,7 +31,9 @@ RUN echo 'lava-server   lava-server/instance-name string lava-docker-instance' |
  && service postgresql start \
  && DEBIAN_FRONTEND=noninteractive apt-get install -y -t jessie-backports \
  lava \
- qemu-system \
+ python-sphinx \
+ qemu-system-arm \
+ qemu-system-x86 \
  && a2dissite 000-default \
  && a2ensite lava-server \
  && /stop.sh \
@@ -39,7 +41,7 @@ RUN echo 'lava-server   lava-server/instance-name string lava-docker-instance' |

 ## This is an optional step to install the latest LAVA code
 # add some dependencies to support installing latest lava code
-RUN sudo apt-get update && apt-get install -y python-sphinx-bootstrap-theme node-uglify docbook-xsl xsltproc python-mock \
+RUN sudo apt-get update && apt-get install -y gunicorn python-sphinx-bootstrap-theme node-uglify docbook-xsl xsltproc python-mock \
  && rm -rf /var/lib/apt/lists/*

 ## This is an optional step to install the latest LAVA code

@fboudra
Copy link
Contributor

fboudra commented Nov 10, 2016

Pull request sent: #19

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants