Error during install package


Again me :slight_smile:

I try to install nextcloud client and I have this return :slight_smile:
apt install nextcloud-desktop
Lecture des listes de paquets… Fait
Construction de l’arbre des dépendances… Fait
Lecture des informations d’état… Fait
Les paquets suivants ont été installés automatiquement et ne sont plus nécessaires :
dfu-util docker firmware-qcom-media firmware-tomu golang-1.18-go golang-1.18-src libabsl20210324 libfmt8 libilmbase25 libopenexr25 libpoppler118 libpython3.9 libpython3.9-minimal libpython3.9-stdlib ntpsec-ntpdate ntpsec-ntpdig nvidia-tesla-470-alternative python3-ntp wmdocker
Veuillez utiliser « sudo apt autoremove » pour les supprimer.
Les paquets supplémentaires suivants seront installés :
libnextcloudsync0 nextcloud-desktop-common nextcloud-desktop-doc nextcloud-desktop-l10n
Les NOUVEAUX paquets suivants seront installés :
libnextcloudsync0 nextcloud-desktop nextcloud-desktop-common nextcloud-desktop-doc nextcloud-desktop-l10n
0 mis à jour, 5 nouvellement installés, 0 à enlever et 0 non mis à jour.
3 partiellement installés ou enlevés.
Il est nécessaire de prendre 0 o/6 052 ko dans les archives.
Après cette opération, 19,2 Mo d’espace disque supplémentaires seront utilisés.
Souhaitez-vous continuer ? [O/n]
montage : (astuce) votre fstab a été modifié mais systemd utilise encore
l’ancienne version ; utilisez « systemctl daemon-reload » pour recharger.
Create a snapshot of ‘/tmp/apt-btrfs-snapshot-mp-9wfdfx51/@’ in ‘/tmp/apt-btrfs-snapshot-mp-9wfdfx51/@apt-snapshot-2022-09-13_21:26:58’
Generating grub configuration file …
Found background image: grub-16x9.png
Found linux image: /boot/vmlinuz-5.19.0-kaisen1-amd64
Found initrd image: /boot/initrd.img-5.19.0-kaisen1-amd64
Found linux image: /boot/vmlinuz-5.17.0-kaisen1-amd64
Found initrd image: /boot/initrd.img-5.17.0-kaisen1-amd64
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Found Windows Boot Manager on /dev/nvme1n1p1@/efi/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for UEFI Firmware Settings …
Detecting snapshots …
Found snapshot: 2022-09-13 21:26:58 | @apt-snapshot-2022-09-13_21:26:58 | N/A | N/A |
Found snapshot: 2022-09-13 21:26:11 | @apt-snapshot-2022-09-13_21:26:11 | N/A | N/A |
Found snapshot: 2022-09-13 20:43:24 | @apt-snapshot-2022-09-13_20:43:24 | N/A | N/A |
Found snapshot: 2022-09-13 20:31:39 | @apt-snapshot-2022-09-13_20:31:39 | N/A | N/A |
Found 4 snapshot(s)
Unmount /tmp/grub-btrfs.LAVvMlQkeO … Success
erreur : out of memory.
erreur : syntax error.
erreur : Incorrect command.
erreur : syntax error.
Erreur de syntaxe à la ligne 221
Syntax errors are detected in generated GRUB config file.
Ensure that there are no errors in /etc/default/grub
and /etc/grub.d/* files or please file a bug report with
/boot/grub/ file attached.
E: Problem executing scripts DPkg::Pre-Invoke 'if [ -x /usr/bin/apt-btrfs-snapshot ] && apt-btrfs-snapshot supported; then apt-btrfs-snapshot snapshot && systemctl daemon-reload && update-grub; fi ’
E: Sub-process returned an error code

Finally my package was not installed


Yes, I know this bug. I fix this bug with a new version of apt-btrfs-snapshot package downloadable by APT.
I found a temporary fix. Can you run this command: sudo dpkg-reconfigure locales to select en_US.UTF-8?
After that, reboot your computer and running again your command. The problem will be fixed and you can reuse the french instead of the english langage.

Thanks for this answer, that’s work


The grub-btrfs source code contains a lot of bugs… I currently working to fix bugs already reported.

Hello @Iwios,

Can you send me the output of 41_snapshots-btrfs in the /boot/grub/ please?

Output of /etc/grub.d/41_snapshots-btrfs :

This is what you want ?

Thank you!

I sorry, but I was asking the content of the /boot/grub/ :slight_smile:

Sorry, this is what you want?

END /etc/grub.d/41_custom

BEGIN /etc/grub.d/41_snapshots-btrfs

submenu ‘BTRFS snapshots’ {
configfile “${prefix}/grub-btrfs.cfg”

END /etc/grub.d/41_snapshots-btrfs

Id don’t have a only grug.cfg

Okay, the problem with the DPkg::Pre-Invoke was fixed.


I wanted to see if the error you had was the same as mine.
I fixed the problem with DPkg::Pre-Invoke post installation since 2.2RC1, with the french language, and it’s okay.

Hello @Iwios,

Can I close this ticket?

Hello, yes