#apt/nala not working well

43 messages ยท Page 1 of 1 (latest)

serene horizon
#

My Initial Message would be to long, so Ill post it in 2 Messages here

#

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

magic minnow
#

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

serene horizon
#

I am opening the CMD via my apps. How do i check that? echo $SHELL is printing /bin/sh

magic minnow
#

if it t says. name@apx-pico something it is in the container

#

otherwise host

serene horizon
#

it says carloskopra@apx-vso-pico

magic minnow
#

ok then you already have apt, you are inside the default container

#

it doesn't work to install nala ?

serene horizon
#

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 โฌ†๏ธ

magic minnow
#

have you tried creating your own container?

serene horizon
#

since I down know how, Id say no xD
How do i do that?

magic minnow
#

the easiest is to open the apx app

serene horizon
#

okok, so I created a ubuntu container

magic minnow
#

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

serene horizon
#

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?

magic minnow
#

yes

serene horizon
#

how? xd

magic minnow
#

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

serene horizon
#

I see

magic minnow
#

if it runs on config files that you can export

serene horizon
#

idk if java does that xd

magic minnow
#

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

serene horizon
#

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

magic minnow
#

๐Ÿ™‚

sharp elbow
magic minnow
#
sudo umount /usr/lib/x86_64-linux-gnu/libicudata.so.76
sudo umount /usr/lib/x86_64-linux-gnu/libnvcuvid.so
serene horizon
#

that indeed fixed the issue! TYSM!
Do i need to remount them after the apt command? Id say yes but who am i xd

sharp elbow
serene horizon
#

okay so i need to do this every time i wanna use an apt install? ๐Ÿ˜…

sharp elbow
#

still annoying, I know