[UBUNTU 20.04] apt build-dep qemu can't resolve dependencies
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu on IBM z Systems |
Invalid
|
High
|
Canonical Foundations Team | ||
gcc-defaults-ports (Ubuntu) |
Invalid
|
Wishlist
|
Unassigned | ||
qemu (Ubuntu) |
Invalid
|
Undecided
|
Skipper Bug Screeners |
Bug Description
I was trying to re-build the QEMU package from source, but the build dependencies can't be resolved.
Steps to reproduce:
1. Install Ubuntu 20.04 System on an LPAR|z/VM guest|KVM guest from ports.ubuntu.com
2. Uncomment all #deb-src lines in /etc/apt/
3. Run the following commands:
$ sudo apt update
$ sudo apt install build-essential
$ apt source qemu
$ sudo apt build-dep qemu
4. The last command produces the following error output
---
$ sudo apt build-dep qemu
Reading package lists... Done
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:
builddeps:qemu : Depends: libncursesw5-dev
E: Unable to correct problems, you have held broken packages.
tags: | added: architecture-s39064 bugnameltc-184185 severity-high targetmilestone-inin2004 |
Changed in ubuntu: | |
assignee: | nobody → Skipper Bug Screeners (skipper-screen-team) |
affects: | ubuntu → qemu (Ubuntu) |
Changed in ubuntu-z-systems: | |
status: | New → Triaged |
importance: | Undecided → High |
assignee: | nobody → Canonical Foundations Team (canonical-foundations) |
tags: |
added: severity-critical removed: severity-high |
tags: |
added: severity-medium removed: severity-critical |
These packages are only Build-Depends- Indep, meaning they are only needed when you are building the arch: all packages from the qemu source package.
The following command succeeds on s390x with an up-to-date focal system:
# apt build-dep --arch-only qemu
If you need to rebuild qemu-system-data, the only arch: all binary package from the qemu source, you will want to do that rebuild on an x86 system. Official arch: all builds for the Ubuntu archive are always done on amd64, so Build-Depends-Indep are not guaranteed to be satisfiable on other architectures.