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
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>
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