Skip to content
This repository has been archived by the owner on Apr 19, 2022. It is now read-only.

[Bug]: Failed to install both qemu-system-x86_64 and qemu-utils at the same time. #429

Closed
Yonle opened this issue Sep 2, 2021 · 4 comments
Labels
bug report Something is not working properly.

Comments

@Yonle
Copy link
Contributor

Yonle commented Sep 2, 2021

Problem description

When i'm trying to install both qemu-system-x86_64 and qemu-utils at the same time with apt, Dpkg conflicts occurs

What steps will reproduce the bug?

Do apt install qemu-system-x86-64 qemu-utils

What is the expected behavior?

dpkg: error processing archive /data/data/com.termux/cache/apt/archives/qemu-utils_1%3a6.1.0-1_aarch64.deb (--unpack):
 trying to overwrite '/data/data/com.termux/files/usr/include/qemu-plugin.h', which is also in package qemu-system-x86-64 1:6.1.0

System information

termux-info:

Application version:
0.117
Packages CPU architecture:
aarch64
Subscribed repositories:
# sources.list
deb https://packages.termux.org/apt/termux-main stable main
# game-repo (sources.list.d/game.list)
deb https://deb.kcubeterm.me/termux-games games stable
# science-repo (sources.list.d/science.list)
deb https://deb.kcubeterm.me/termux-science science stable
# x11-repo (sources.list.d/x11.list)
deb https://deb.kcubeterm.me/termux-x11 x11 main
# root-repo (sources.list.d/root.list)
deb https://deb.kcubeterm.me/termux-root root stable
Updatable packages:
All packages up to date
Android version:
8.1.0
Kernel build information:
Linux localhost 4.9.77+ #1 SMP PREEMPT Fri May 28 23:13:48 CST 2021 aarch64 Android
Device manufacturer:
vivo
Device model:
vivo 1820

@Yonle Yonle added the bug report Something is not working properly. label Sep 2, 2021
@ghost
Copy link

ghost commented Sep 2, 2021

You can specify -o Dpkg::Options::="--force-overwrite" as a workaround

@suhan-paradkar
Copy link
Contributor

Looks like package conflict.. need to add to TERMUX_PKG_RM_AFTER_INSTALL

@LMEToken
Copy link

LMEToken commented Oct 6, 2021

You can try:
apt-get -o Dpkg::Options::="--force-overwrite" install qemu-utils

@Yonle
Copy link
Contributor Author

Yonle commented Nov 1, 2021

Well. The solution is adding -o Dpkg::Options::="--force-overwrite" options. However, this issue will remains open.

I also see some of package has some of dependencies issue that i can't explain one by one, such as xwayland and Xvfb, and etc.

@ghost ghost closed this as completed in 80750f2 Nov 13, 2021
thunder-coding pushed a commit to termux/termux-packages that referenced this issue Apr 19, 2022
Resolve file conflict with other qemu packages.

Closes termux/x11-packages#429
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug report Something is not working properly.
Projects
None yet
Development

No branches or pull requests

3 participants