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

[Bug]: package unar can't install and fix #8504

Closed
zixijian opened this issue Jan 9, 2022 · 8 comments · Fixed by #8506
Closed

[Bug]: package unar can't install and fix #8504

zixijian opened this issue Jan 9, 2022 · 8 comments · Fixed by #8506
Labels
bug report Something is not working properly.

Comments

@zixijian
Copy link

zixijian commented Jan 9, 2022

Problem description

When i install the new package unar,i got error:

[~]$ pkg install unar
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  gnustep-make libgnustep-base libicu libobjc2 libwavpack libxslt
The following NEW packages will be installed:
  gnustep-make libgnustep-base libicu libobjc2 libwavpack libxslt unar
0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
Need to get 13.1 MB of archives.
After this operation, 68.7 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 https://mirrors.tuna.tsinghua.edu.cn/termux/termux-packages-24 stable/main aarch64 libobjc2 aarch64 2.1 [77.5 kB]
Get:2 https://mirrors.tuna.tsinghua.edu.cn/termux/termux-packages-24 stable/main aarch64 gnustep-make aarch64 2.9.0 [163 kB]
Get:3 https://mirrors.tuna.tsinghua.edu.cn/termux/termux-packages-24 stable/main aarch64 libicu aarch64 70.1 [9272 kB]
Get:4 https://mirrors.tuna.tsinghua.edu.cn/termux/termux-packages-24 stable/main aarch64 libxslt aarch64 1.1.34-2 [301 kB]
Get:5 https://mirrors.tuna.tsinghua.edu.cn/termux/termux-packages-24 stable/main aarch64 libgnustep-base aarch64 1.28.0 [2067 kB]
Get:6 https://mirrors.tuna.tsinghua.edu.cn/termux/termux-packages-24 stable/main aarch64 libwavpack aarch64 5.4.0 [61.6 kB]
Get:7 https://mirrors.tuna.tsinghua.edu.cn/termux/termux-packages-24 stable/main aarch64 unar aarch64 1.10.7 [1144 kB]
Fetched 13.1 MB in 14s (931 kB/s)
Selecting previously unselected package libobjc2.
(Reading database ... 18598 files and directories currently installed.)
Preparing to unpack .../0-libobjc2_2.1_aarch64.deb ...
Unpacking libobjc2 (2.1) ...
dpkg: error processing archive /data/data/com.termux/files/usr/tmp/apt-dpkg-install-hQx0IA/0-libobjc2_2.1_aarch64.deb (--unpack):
 trying to overwrite '/data/data/com.termux/files/usr/include/Block.h', which is also in package libblocksruntime 1:5.5-1
Selecting previously unselected package gnustep-make.
Preparing to unpack .../1-gnustep-make_2.9.0_aarch64.deb ...
Unpacking gnustep-make (2.9.0) ...
Selecting previously unselected package libicu.
Preparing to unpack .../2-libicu_70.1_aarch64.deb ...
Unpacking libicu (70.1) ...
Selecting previously unselected package libxslt.
Preparing to unpack .../3-libxslt_1.1.34-2_aarch64.deb ...
Unpacking libxslt (1.1.34-2) ...
Selecting previously unselected package libgnustep-base.
Preparing to unpack .../4-libgnustep-base_1.28.0_aarch64.deb ...
Unpacking libgnustep-base (1.28.0) ...
Selecting previously unselected package libwavpack.
Preparing to unpack .../5-libwavpack_5.4.0_aarch64.deb ...
Unpacking libwavpack (5.4.0) ...
Selecting previously unselected package unar.
Preparing to unpack .../6-unar_1.10.7_aarch64.deb ...
Unpacking unar (1.10.7) ...
Errors were encountered while processing:
 /data/data/com.termux/files/usr/tmp/apt-dpkg-install-hQx0IA/0-libobjc2_2.1_aarch64.deb
E: Sub-process /data/data/com.termux/files/usr/bin/dpkg returned an error code (1)
[~]$ pkg install unar
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
unar is already the newest version (1.10.7).
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 gnustep-make : Depends: libobjc2 but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
[~]$ apt --fix-broken install
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  libobjc2
The following NEW packages will be installed:
  libobjc2
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
6 not fully installed or removed.
Need to get 0 B/77.5 kB of archives.
After this operation, 414 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 21309 files and directories currently installed.)
Preparing to unpack .../libobjc2_2.1_aarch64.deb ...
Unpacking libobjc2 (2.1) ...
dpkg: error processing archive /data/data/com.termux/cache/apt/archives/libobjc2_2.1_aarch64.deb (--unpack):
 trying to overwrite '/data/data/com.termux/files/usr/include/Block.h', which is also in package libblocksruntime 1:5.5-1
Errors were encountered while processing:
 /data/data/com.termux/cache/apt/archives/libobjc2_2.1_aarch64.deb
E: Sub-process /data/data/com.termux/files/usr/bin/dpkg returned an error code (1)

To solve this problem, I have to rm -rf $PREFIX,And reinstalled the all packages and set up

What steps will reproduce the bug?

pkg install unar

What is the expected behavior?

pkg always prompt"apt --fix-broken install",But it didn' t work.

System information

termux-info:

[~]$ termux-info
Application version:
0.117
Packages CPU architecture:
aarch64
Subscribed repositories:
# sources.list
deb https://mirrors.tuna.tsinghua.edu.cn/termux/termux-packages-24 stable main
# game-repo (sources.list.d/game.list)
deb https://mirrors.tuna.tsinghua.edu.cn/termux/game-packages-24 games stable
# science-repo (sources.list.d/science.list)
deb https://mirrors.tuna.tsinghua.edu.cn/termux/science-packages-24 science stable
Updatable packages:
apt/stable 2.3.13-4 aarch64 [upgradable from: 2.3.13-3]
Android version:
11
Kernel build information:
Linux 9pro 4.19.113-perf-g6bd56efa50c5 #1 SMP PREEMPT Mon Oct 25 22:16:18 CST 2021 aarch64 Android
Device manufacturer:
Xiaomi
Device model:
M2007J17C
@zixijian zixijian added the bug report Something is not working properly. label Jan 9, 2022
@buribu
Copy link

buribu commented Jan 9, 2022

in armv7l is installable but... result in
unar --help
CANNOT LINK EXECUTABLE "unar": cannot locate symbol "_Z9cxx_throwv" referenced by "/data/data/com.termux/files/usr/lib/libobjc.so"...
Aborted

@xtkoba
Copy link
Contributor

xtkoba commented Jan 9, 2022

File name conflict with libblocksruntime. How can we solve it?

@xtkoba
Copy link
Contributor

xtkoba commented Jan 9, 2022

The dynamic linker error is another issue.

@xtkoba
Copy link
Contributor

xtkoba commented Jan 9, 2022

Upstream issue: gnustep/libobjc2#199

@xtkoba
Copy link
Contributor

xtkoba commented Jan 9, 2022

A workaround is to uninstall libblocksruntime. I have not come up with a better solution.

@zixijian
Copy link
Author

zixijian commented Jan 9, 2022

A workaround is to uninstall libblocksruntime. I have not come up with a better solution.

Can't uninstall when you have failed to install. you can only delete the entire $PREFIX,Fortunately, this configuration is relatively simple.

@ghost
Copy link

ghost commented Jan 9, 2022

Can't uninstall when you have failed to install. you can only delete the entire $PREFIX

Yes, you can. But if you uninstall failed dependencies, then no need to remove entire system.

apt remove gnustep-make libgnustep-base unar libblocksruntime
apt install unar

(you may need to add other packages that block reinstallation)

Failed dependency installation is quite common thing not only on Termux. If apt package manager will be so stupid so fixing dependency issue would require system re-installation, Debian and Ubuntu would be the worst Linux-based operating systems.

@zixijian
Copy link
Author

Yes, you can. But if you uninstall failed dependencies, then no need to remove entire system.

I got it,thanks.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report Something is not working properly.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants