#apt/nala not working well
43 messages ยท Page 1 of 1 (latest)
Hey guys,
I recently switched to VanillaOS Orchid. This is the first time for me using Linux as my personal OS.
As a Full Stack Dev, Im familiar with Debian as a Server OS.
Of cause I install most of my software via the Software Store. But some Software requires to get installed using the Package Manager of choice.
For me thats apt/nala.
In this example, Im trying to install jdk.
When installing, apt throws a dependency error
You might want to run 'apt --fix-broken install' to correct these.
Unsatisfied dependencies:
default-jdk : Depends: default-jre (= 2:1.21-76) but it is not going to be installed
Depends: default-jdk-headless (= 2:1.21-76) but it is not going to be installed
Depends: openjdk-21-jdk but it is not going to be installed
libcamel-1.2-64t64 : Depends: libicu76 (>= 76.1-1~) but it is not going to be installed
libedataserver-1.2-27t64 : Depends: libicu76 (>= 76.1-1~) but it is not going to be installed
libical3t64 : Depends: libicu76 (>= 76.1-1~) but it is not going to be installed
libphonenumber8 : Depends: libicu76 (>= 76.1-1~) but it is not going to be installed
libwinpr3-3 : Depends: libicu76 (>= 76.1-1~) but it is not going to be installed
samba-libs : Depends: libicu76 (>= 76.1-1~) but it is not going to be installed
Error: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
When I execute sudo apt --fix-broken install as recomended, i get this:
Correcting dependencies... Done
Installing dependencies:
libicu76
Summary:
Upgrading: 0, Installing: 1, Removing: 0, Not Upgrading: 13
430 not fully installed or removed.
Download size: 9,722 kB
Space needed: 38.3 MB / 939 GB available
Continue? [Y/n] y
Get:1 http://deb.debian.org/debian sid/main amd64 libicu76 amd64 76.1-4 [9,722 kB]
Fetched 9,722 kB in 1s (9,326 kB/s)
(Reading database ... 70010 files and directories currently installed.)
Preparing to unpack .../libicu76_76.1-4_amd64.deb ...
Unpacking libicu76:amd64 (76.1-4) ...
dpkg: error processing archive /var/cache/apt/archives/libicu76_76.1-4_amd64.deb (--unpack):
unable to make backup link of './usr/lib/x86_64-linux-gnu/libicudata.so.76.1' before installing new version: Invalid cross-device link
Errors were encountered while processing:
/var/cache/apt/archives/libicu76_76.1-4_amd64.deb
Error: Sub-process /usr/bin/dpkg returned an error code (1)
I tryed everything, from other Package Managers to apx or abroot pkg add/apply....
Im out of Ideas and if my apt wont work, I dont know what to do, but leaving Vanilla (I really dont want that!)
Id be thankful for every Idea or recommendation.
Also, according to abroot, libicu76 is installed and the newest version
are you installing apt in the container or trying to install it on the host? or have you tried installing apt via abroot?
you can not use apt on the host system. only in the apx-pico container or other containers you create
I am opening the CMD via my apps. How do i check that? echo $SHELL is printing /bin/sh
it says carloskopra@apx-vso-pico
ok then you already have apt, you are inside the default container
it doesn't work to install nala ?
Thats the thing! Some Packages have no issues at all!
I installed a few packages without any issues
but for a few packages, this happens โฌ๏ธ
have you tried creating your own container?
since I down know how, Id say no xD
How do i do that?
the easiest is to open the apx app
okok, so I created a ubuntu container
create a new subsystem with your preferred stack, there should be a Debian you can choose
ok then inside the terminal, you can: apx containername enter
then you have your own little container. if you need to install gui apps or bin that you need to use in other apps you probably need to export them to the host system
okay, so if im getting this right, i can install everything in this container, but cannot use it outside.
If I want to use that outside, i have to export them?
yes
how? xd
check the apx command, i dont remember exactly, im not at a computer now
just type apx and enter
apx export -app appnme or apx export -bin binname
something like that
but not all types work to export
I see
if it runs on config files that you can export
idk if java does that xd
the host system is immutable so thats why you cant install on the host. if you have a advanced case of things you need on the host system you might need to create a custom image
mhm.. so i cant use apt normally...?
anyways, tsym for your Input! Ive learned something :D
Maybe there is a soloution for this invalid cross-device link problem, so ill leave this threat open and go to sleap... enough Linux headache for today xD
sleep* lol
๐
Sadly, this is a known issue with the nvidia integration in distrobox, which is used here since everything is installed in a container by default.
You have to unmount every file that it complains about before you can continue.
sudo umount /usr/lib/x86_64-linux-gnu/libicudata.so.76
sudo umount /usr/lib/x86_64-linux-gnu/libnvcuvid.so
that indeed fixed the issue! TYSM!
Do i need to remount them after the apt command? Id say yes but who am i xd
You can either reboot or do this:
Alt+F2
type
podman stop apx-vso-pico
enter
open a terminal. It will show a few status lines and then be a regular cli again.
okay so i need to do this every time i wanna use an apt install? ๐
no, it's "just" when there's an upgrade to the nvidia driver libraries.
still annoying, I know