~alpine/users

2 2

About running Debian packages in Alpine Linux

Raúl Rodríguez Macías <raul.1952@outlook.com>
Details
Message ID
<BYAPR05MB63739EF5F6F02A0456456EF9F76A9@BYAPR05MB6373.namprd05.prod.outlook.com>
DKIM signature
missing
Download raw message
Hi team:

I need to install a Debian package in Alpine Linux, and I follow the instructions in your wiki (https://wiki.alpinelinux.org/wiki/Running_glibc_programs), but something I-m doing is probably wrong.

When I follow the instructions:

mkdir -p /lib64
ln -s /var/chroots/debian/lib/x86_64-linux-gnu/ld-2.33.so /lib64
printf '/var/chroots/debian/lib/x86_64-linux/gnu\n/var/chroots/debian/usr/lib/x86_64-linux-gnu\n' > /etc/ld.so.conf
/var/chroots/debian/sbin/ldconfig
The directory /var/chroots/debian/sbin didn't appear, so I can't run ldconfig.

And for the final part:

Debian
Use the provided debootstrap package to create the Debian chroot. --arch is optional, depending of your needs.

On the linux-grsec kernel, you will need to relax chroot limitations:

sudo apk add debootstrap
for i in /proc/sys/kernel/grsecurity/chroot_*; do echo 0 | sudo tee $i; done
mkdir ~/chroot
sudo debootstrap --arch=i386 wheezy ~/chroot http://http.debian.net/debian/
for i in /proc/sys/kernel/grsecurity/chroot_*; do echo 1 | sudo tee $i; done
sudo chroot ~/chroot /bin/bash

I can't add the debootstrap, and the directory /proc/sys/kernel/grsecurity/ was not created.

Any help will be appreciated

Raúl
Paul Zillmann <p.zillmann@h6g.de>
Details
Message ID
<6c93fcb9-eb2b-07c7-6708-8fd63adcb953@h6g.de>
In-Reply-To
<BYAPR05MB63739EF5F6F02A0456456EF9F76A9@BYAPR05MB6373.namprd05.prod.outlook.com> (view parent)
DKIM signature
missing
Download raw message
Hello Raúl,

Am 17.08.22 um 22:59 schrieb Raúl Rodríguez Macías:
>
> Hi team:
>
> I need to install a Debian package in Alpine Linux, and I follow the 
> instructions in your wiki 
> (https://wiki.alpinelinux.org/wiki/Running_glibc_programs), but 
> something I-m doing is probably wrong.
>
> When I follow the instructions:
>
> mkdir -p /lib64
>
> ln -s /var/chroots/debian/lib/x86_64-linux-gnu/ld-2.33.so /lib64
>
> printf 
> '/var/chroots/debian/lib/x86_64-linux/gnu\n/var/chroots/debian/usr/lib/x86_64-linux-gnu\n' 
> > /etc/ld.so.conf
>
> /var/chroots/debian/sbin/ldconfig
>
> The directory /var/chroots/debian/sbin didn't appear, so I can't run 
> ldconfig.
>

This is because you need to set up a chroot in the directory 
/var/chroots/debian first - then you will be able to use /sbin.

Out of curiosity, what Debian package do you want to install on Alpine?
I'm sure there is a better way to do this.

- Paul

> And for the final part:
>
> Debian
>
> Use the provided debootstrap package to create the Debian chroot. 
> --arch is optional, depending of your needs.
>
> On the linux-grsec kernel, you will need to relax chroot limitations:
>
> sudo apk add debootstrap
>
> for i in /proc/sys/kernel/grsecurity/chroot_*; do echo 0 | sudo tee 
> $i; done
>
> mkdir ~/chroot
>
> sudo debootstrap --arch=i386 wheezy ~/chroot 
> http://http.debian.net/debian/
>
> for i in /proc/sys/kernel/grsecurity/chroot_*; do echo 1 | sudo tee 
> $i; done
>
> sudo chroot ~/chroot /bin/bash
>
> I can't add the debootstrap, and the directory 
> /proc/sys/kernel/grsecurity/ was not created.
>
> Any help will be appreciated
>
> Raúl
>
Raúl Rodríguez Macías <raul.1952@outlook.com>
Details
Message ID
<BYAPR05MB63734911F47CA72694EEE9F6F76D9@BYAPR05MB6373.namprd05.prod.outlook.com>
In-Reply-To
<6c93fcb9-eb2b-07c7-6708-8fd63adcb953@h6g.de> (view parent)
DKIM signature
missing
Download raw message
Hi

Obtener Outlook para Android<https://aka.ms/AAb9ysg>
________________________________
From: Paul Zillmann <p.zillmann@h6g.de>
Sent: Thursday, August 18, 2022 3:33:46 AM
To: Raúl Rodríguez Macías <raul.1952@outlook.com>; ~alpine/users@lists.alpinelinux.org <~alpine/users@lists.alpinelinux.org>
Subject: Re: About running Debian packages in Alpine Linux

Hello Raúl,

Am 17.08.22 um 22:59 schrieb Raúl Rodríguez Macías:

Hi team:



I need to install a Debian package in Alpine Linux, and I follow the instructions in your wiki (https://wiki.alpinelinux.org/wiki/Running_glibc_programs), but something I-m doing is probably wrong.



When I follow the instructions:



mkdir -p /lib64

ln -s /var/chroots/debian/lib/x86_64-linux-gnu/ld-2.33.so /lib64

printf '/var/chroots/debian/lib/x86_64-linux/gnu\n/var/chroots/debian/usr/lib/x86_64-linux-gnu\n' > /etc/ld.so.conf

/var/chroots/debian/sbin/ldconfig

The directory /var/chroots/debian/sbin didn't appear, so I can't run ldconfig.

This is because you need to set up a chroot in the directory /var/chroots/debian first - then you will be able to use /sbin.

Out of curiosity, what Debian package do you want to install on Alpine?
I'm sure there is a better way to do this.

- Paul




And for the final part:



Debian

Use the provided debootstrap package to create the Debian chroot. --arch is optional, depending of your needs.



On the linux-grsec kernel, you will need to relax chroot limitations:



sudo apk add debootstrap

for i in /proc/sys/kernel/grsecurity/chroot_*; do echo 0 | sudo tee $i; done

mkdir ~/chroot

sudo debootstrap --arch=i386 wheezy ~/chroot http://http.debian.net/debian/

for i in /proc/sys/kernel/grsecurity/chroot_*; do echo 1 | sudo tee $i; done

sudo chroot ~/chroot /bin/bash



I can't add the debootstrap, and the directory /proc/sys/kernel/grsecurity/ was not created.



Any help will be appreciated



Raúl
Reply to thread Export thread (mbox)