On 02/03/2023 16:16, Marco d'Itri wrote:
On Mar 02, Jean-Marc LACROIX <jeanmarc.lacr...@free.fr> wrote:
I am trying to install (via debootstrap) one rootfs in one secured LXC
container. My current problem is due to the package usrmerge which is not
instalable.
Is the usr-is-merged package installed?
Is /lib a symlink?
/usr is a standalone filesystem, this requires using an initramfs.
This failure mode is correct, even if not much helpful for a container,
but usrmerge should not have been installed in the first place.
Hi Marco,
No, the package usr-is-merged is not installed, because ....
ansible@vn-bookworm-arm64-130:~$ dpkg -l |grep merge
ii libregexp-assemble-perl 0.38-2
all Perl module to merge several regular expressions
ansible@vn-bookworm-arm64-130:~$ apt-cache search usr-is-merged
usr-is-merged - Transitional package to assert a merged-/usr system
usrmerge - convertir le système dans un schéma de répertoires fusionnés
dans /usr
ansible@vn-bookworm-arm64-130:~$ sudo apt install usr-is-merged
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances... Fait
Lecture des informations d'état... Fait
Les NOUVEAUX paquets suivants seront installés :
usr-is-merged
0 mis à jour, 1 nouvellement installés, 0 à enlever et 8 non mis à jour.
Il est nécessaire de prendre 4 832 o dans les archives.
Après cette opération, 11,3 ko d'espace disque supplémentaires seront
utilisés.
Réception de :1 http://ftp.de.debian.org/debian bookworm/main arm64
usr-is-merged all 35 [4 832 B]
4 832 o réceptionnés en 0s (19,4 ko/s)
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog
based frontend cannot be used. at
/usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 78, <> line 1.)
debconf: falling back to frontend: Readline
Sélection du paquet usr-is-merged précédemment désélectionné.
(Lecture de la base de données... 59832 fichiers et répertoires déjà
installés.)
Préparation du dépaquetage de .../usr-is-merged_35_all.deb ...
Dépaquetage de usr-is-merged (35) ...
Paramétrage de usr-is-merged (35) ...
ansible@vn-bookworm-arm64-130:~$
Now, it is installed ....
ansible@vn-bookworm-arm64-130:~$ dpkg -l |grep merge
ii libregexp-assemble-perl 0.38-2
all Perl module to merge several regular expressions
ii usr-is-merged 35
all Transitional package to assert a merged-/usr system
ansible@vn-bookworm-arm64-130:~$
Then i try to install usrmerge now, but without sucess....
ansible@vn-bookworm-arm64-130:~$ LC_ALL=C sudo apt install usrmerge
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
usrmerge
0 upgraded, 1 newly installed, 0 to remove and 8 not upgraded.
Need to get 0 B/12.5 kB of archives.
After this operation, 38.9 kB of additional disk space will be used.
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog
based frontend cannot be used. at
/usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 78, <> line 1.)
debconf: falling back to frontend: Readline
(Reading database ... 59835 files and directories currently installed.)
Preparing to unpack .../archives/usrmerge_35_all.deb ...
/usr is a standalone filesystem, this requires using an initramfs.
dpkg: error processing archive
/var/cache/apt/archives/usrmerge_35_all.deb (--unpack):
new usrmerge package pre-installation script subprocess returned error
exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/usrmerge_35_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
ansible@vn-bookworm-arm64-130:~$
ansible@vn-bookworm-arm64-130:~$ ls -altr /
total 38
drwxr-xr-x 2 root root 1024 3 sept. 14:10 boot
drwx------ 2 root root 12288 24 nov. 11:04 lost+found
lrwxrwxrwx 1 root root 8 24 nov. 11:31 sbin -> usr/sbin
lrwxrwxrwx 1 root root 7 24 nov. 11:31 lib -> usr/lib
drwxr-xr-x 2 root root 1024 24 nov. 11:31 debootstrap
lrwxrwxrwx 1 root root 7 24 nov. 11:31 bin -> usr/bin
drwxr-xr-x 12 root root 1024 24 nov. 11:31 var
drwxr-xr-x 2 root root 1024 24 nov. 11:31 srv
drwxr-xr-x 2 root root 1024 24 nov. 11:31 opt
drwxr-xr-x 2 root root 1024 24 nov. 11:31 mnt
drwxr-xr-x 2 root root 1024 24 nov. 11:31 media
drwxr-xr-x 12 root root 4096 24 nov. 11:31 usr
drwxr-xr-x 6 root root 1024 24 nov. 18:33 home
drwxr-xr-x 20 root root 1024 24 nov. 19:48 ..
drwxr-xr-x 20 root root 1024 24 nov. 19:48 .
drwx------ 4 root root 1024 11 déc. 23:41 root
dr-xr-xr-x 385 root root 0 2 mars 13:29 proc
dr-xr-xr-x 13 root root 0 2 mars 13:29 sys
drwxr-xr-x 13 root root 680 2 mars 13:29 dev
drwxr-xr-x 77 root root 7168 2 mars 13:42 etc
drwxr-xr-x 2 root root 0 2 mars 13:42 nfs-home
drwxrwxrwt 5 root root 3072 2 mars 17:09 tmp
drwxr-xr-x 15 root root 680 2 mars 18:20 run
Cordialement
--
-- Jean-Marc LACROIX (06 82 29 98 66) --
-- mailto : jeanmarc.lacr...@free.fr --