Received: from mail-ej1-f43.google.com (mail-ej1-f43.google.com [209.85.218.43]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 28FEC78015A for <~alpine/users@lists.alpinelinux.org>; Thu, 18 Aug 2022 08:33:53 +0000 (UTC) Received: by mail-ej1-f43.google.com with SMTP id tl27so1965405ejc.1 for <~alpine/users@lists.alpinelinux.org>; Thu, 18 Aug 2022 01:33:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=h6g-de.20210112.gappssmtp.com; s=20210112; h=in-reply-to:from:references:to:content-language:subject:user-agent :mime-version:date:message-id:from:to:cc; bh=hSItZtO/8GChHe2ehb+WkyjJjddP3BWO8juJfuJG1b8=; b=daecLM7lVrdUT3n1zF1nGmp6ro0bgjX1Rh4if/NcPf5XVItbLRXEKekGIVmLg2XRci 4YMYtBjN+U4zRxFmHfgu4EnVagxOdk3BtZaqzi/f5YZV100EZgMxeSd+VHB3sgG+L8Bq btr6hliOHqwD4M+l1gx2hXLPOdcC4qp3JrZcrfmnx9OcFiETguKP9rulekrkvdzMrEia owNNVCOJJkdJCbCMiodY+oi5nmd5tAwhQd177gORXTTt1xmmJ1psGGXWkKHi4qTzHGeV /GCsGlfRS0aqgyvMpmO4kX1gt3YmR69IU8eu8uZ37ZiIkZEUo/yAecLb120YEODmk4Y1 Dv/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:from:references:to:content-language:subject:user-agent :mime-version:date:message-id:x-gm-message-state:from:to:cc; bh=hSItZtO/8GChHe2ehb+WkyjJjddP3BWO8juJfuJG1b8=; b=jHsGosUCUJHcoKlMYUhLZeV6qoWYK6Af/p2KdcAYdEdLBCLQhmkRfzqZ2Bpz/siJpX V311p3vtcSys7T2UMHfwrcLfdGpn2McEMMQHm3+jyOJAcwV9TD1upZSuwCUCrLbk1wDc YjeCdMW/ONRUF/hxL0nyeTrz61KWlOk0QlNX34RF14WPcLcX3G/hfURf09Dsg2FjjUoc +7uY2RbebXBn2mhGrn1uSLpRjwcqnyytGtPM1QoKxyCURO8d3TXfeB0b+Q7ysUGoL4/l 42b2vV7OJVBsKl7Ofz1rd5+28kUdu9PpulBM3PVXLxxNPy86GINHNY1SEgt7qBboc6Jv Q4Uw== X-Gm-Message-State: ACgBeo0v8CRrC6Abfv1DOEuzukjFJLmOdtXfIR7hgsTDiLWMhYMkGzNe yaXiXlGMy3Lv/7NZiAPE7iYekkC6+p4kuwbK X-Google-Smtp-Source: AA6agR5g6Od79V7vVmV9XFb9/H8oU2/GL2SX/n0m/TkYcfxrRi0gEB5/9p5TnLoLVZC2y0IHYYMWmg== X-Received: by 2002:a17:906:cc0d:b0:730:d6f3:277a with SMTP id ml13-20020a170906cc0d00b00730d6f3277amr1191111ejb.579.1660811632473; Thu, 18 Aug 2022 01:33:52 -0700 (PDT) Received: from ?IPV6:2a02:8106:26:b100:2dbd:e0ae:12c7:c4c5? ([2a02:8106:26:b100:2dbd:e0ae:12c7:c4c5]) by smtp.gmail.com with ESMTPSA id k11-20020a17090666cb00b0072b32de7794sm501692ejp.70.2022.08.18.01.33.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 18 Aug 2022 01:33:49 -0700 (PDT) Content-Type: multipart/alternative; boundary="------------c2UnCfMYMp0EbzP539l2nXtH" Message-ID: <6c93fcb9-eb2b-07c7-6708-8fd63adcb953@h6g.de> Date: Thu, 18 Aug 2022 10:33:46 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: About running Debian packages in Alpine Linux Content-Language: en-US To: =?UTF-8?B?UmHDumwgUm9kcsOtZ3VleiBNYWPDrWFz?= , "~alpine/users@lists.alpinelinux.org" <~alpine/users@lists.alpinelinux.org> References: From: Paul Zillmann In-Reply-To: This is a multi-part message in MIME format. --------------c2UnCfMYMp0EbzP539l2nXtH Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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 > --------------c2UnCfMYMp0EbzP539l2nXtH Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit 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

 

 

 



  


--------------c2UnCfMYMp0EbzP539l2nXtH--