mrclksr / linux-browser-installer

Script to install Linux browsers under a Linux chroot on FreeBSD
165 stars 25 forks source link

Ubuntu 22.10 Support #27

Closed Sejoslaw closed 1 year ago

Sejoslaw commented 1 year ago

Hi,

I've tried to install Ubuntu's "kinetic" version (22.10 technically) and I'd receive an error as shown below:

image

image

Is it possible to force script to install newer Ubuntu version ?

mrclksr commented 1 year ago

Hi @Sejoslaw,

check the version of the ld library under /compat/ubuntu/lib/x86_64-linux-gnu/, and adjust the content of the ld_version variable in linux-browser-installer accordingly. Then remove the chroot and try again.

Sejoslaw commented 1 year ago

Thanks for your advice ^^

I've checked the versions and configured it accordingly (checked on Ubuntu 22.10 VM)

image

Added the repo

image

deb http://archive.ubuntu.com/ubuntu/ kinetic main restricted universe multiverse deb http://archive.ubuntu.com/ubuntu/ kinetic-updates main restricted universe multiverse deb http://security.ubuntu.com/ubuntu/ kinetic-security main restricted universe multiverse

Ran -> apt update && apt dist-upgrade (everything updated as it should)

And still got the same error as shown below (ld version was ran from inside on Ubuntu)

image

Sejoslaw commented 1 year ago

I will try with removing everything

Sejoslaw commented 1 year ago

No luck

image

mrclksr commented 1 year ago

Alright, found the problem. Change the fix_ld_path() function to:

fix_ld_path()
{
        cp ${chroot_path}/lib/x86_64-linux-gnu/ld-* \
                ${chroot_path}/lib64/ld-linux-x86-64.so.2
}

Then:

# ./linux-browser-installer chroot delete
# ./linux-browser-installer chroot create
Sejoslaw commented 1 year ago

Did as you say (replaced code). Everything "setup" properly meaning, chroot deletion worked, chroot creation worked, installing chrome worked but....

image

Sejoslaw commented 1 year ago

FYI Chroot login worked

image

mrclksr commented 1 year ago

Sorry, the above code didn't work as expected if the target is a symbolic link. Fixed that. The latest commit should do the job. I tested it with focal and kinetic.

Sejoslaw commented 1 year ago

Tested with combination like so:

chroot delete chroot create install chrome

And receive (menu-item is working as expected - thanks ^^) an error. The below screen shows what is happening when I try to upgrade Ubuntu itself. (This might be an issue with Ubuntu itself)

image

mrclksr commented 1 year ago

(This might be an issue with Ubuntu itself)

It seems to be the case.

Sejoslaw commented 1 year ago

Ok Thank you for help and updates ^^ Great job!

mrclksr commented 1 year ago

Thank you for opening the issue. It made the script better :)