MergerFS + MC in bullseye: duplicate file system entries listing Topic is solved

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
fernandog
Posts: 6
Joined: Tue Mar 16, 2021 1:26 pm

MergerFS + MC in bullseye: duplicate file system entries listing

Post by fernandog »

Hello!

I've been having this problem since upgrading to Bullseye. Researching shows that this is a know problem with the current bullseye mergerfs version 2.31 and mc version 4.8.26.
The suggested fix is to update mergerfs to ver. 2.32 (present in Debian testing). The thing is that I'm not able to do it, because an apt-secure, signature error.

Code: Select all

W: GPG error: http://raspbian.raspberrypi.org/raspbian bookworm InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 9165938D90FDDD2E
E: The repository 'http://raspbian.raspberrypi.org/raspbian bookworm InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
I'm using Raspberry Pi 4, 8 GB, Dietpi 64bit version. A friend using Dietpi in a PC (AMD64 version) has done it without problem, following this
https://serverfault.com/questions/22414 ... om-testing
I've also tried this https://www.raspberrypi.org/forums/view ... p?t=291928, changing testing to bookworm, but the apt-secure problem apears.

Could you please help me to progress mergerfs to 2.32?
Attachments
mc-capture.jpg
User avatar
Joulinar
Posts: 5998
Joined: Sat Nov 16, 2019 12:49 am

Re: MergerFS + MC in bullseye: duplicate file system entries listing

Post by Joulinar »

did you added http://raspbian.raspberrypi.org/raspbian bookworm manually to your configuration files? Because 64bit image (armv8) is using Debian repository and not the Raspbian one. Looks like Raspbian did not support Bookworm yet.

http://archive.raspberrypi.org/debian/dists/

Anyway if you like to switch to Bookworm fully, you could do following

Code: Select all

sed -i 's/bullseye/bookworm/g' /etc/apt/sources.list{,.d/*.list}
sed -i 's/bookworm/bullseye/g' /etc/apt/sources.list.d/raspi.list
apt update
apt upgrade
apt full-upgrade
/boot/dietpi/func/dietpi-obtain_hw_model
. /boot/dietpi/func/dietpi-globals
Now, mergerfs 2.32.6-1 would be available

Code: Select all

root@DietPi4:~# apt show mergerfs 
Package: mergerfs
Version: 2.32.6-1
Priority: optional
Section: utils
Maintainer: Ritesh Raj Sarraf <rrs@debian.org>
Installed-Size: 566 kB
Depends: libc6 (>= 2.28), libgcc-s1 (>= 3.0), libstdc++6 (>= 5.2), libfuse2, fuse
Homepage: https://github.com/trapexit/mergerfs
Download-Size: 229 kB
APT-Sources: https://deb.debian.org/debian bookworm/main arm64 Packages
Description: another FUSE union filesystem
root@DietPi4:~#
Keep in mind you are moving to a Debian testing version and thinks might not work as expected.

As an alternative you add APT-Sources: https://deb.debian.org/debian bookworm and set preferences to avoid upgrading entire system
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
fernandog
Posts: 6
Joined: Tue Mar 16, 2021 1:26 pm

Re: MergerFS + MC in bullseye: duplicate file system entries listing

Post by fernandog »

Thank you very much. I've taken the not-so-dangerous path.

First I've check mergerfs dependencies for bullseye and bookworm, and are exactly the same, so I don't need to update any library. Then I did:

Code: Select all

cd /etc/apt
mv sources.list.d sources.list.d.sos
cd /etc/apt/preferendes.d
mv raspi.pref raspi.pref.sos
cd /etc/apt
nano sources.list
then added deb https://deb.debian.org/debian bookworm main contrib non-free

Code: Select all

apt update
apt install mergerfs
And then set all back. Removed bookwork sources.list line and

Code: Select all

cd /etc/apt/preferendes.d
mv raspi.pref.sos raspi.pref
cd /etc/apt
mv sources.list.d.sos sources.list.d
apt update
reboot
And now it is working ok!
Attachments
mc-capture-ok.png
mc-capture-ok.png (14.41 KiB) Viewed 42 times
User avatar
Joulinar
Posts: 5998
Joined: Sat Nov 16, 2019 12:49 am

Re: MergerFS + MC in bullseye: duplicate file system entries listing

Post by Joulinar »

Hopefully apt will not try this downgrade packages sooner or later.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
MichaIng
Site Admin
Posts: 3357
Joined: Sat Nov 18, 2017 6:21 pm

Re: MergerFS + MC in bullseye: duplicate file system entries listing

Post by MichaIng »

You could also keep the Bookworm list entry in addition to Bullseye and place a preferences file to allow only the mergerfs package to be installed from the Bookworm suite but nothing else.
Post Reply