I just installed UM 20.04.6 (well it was a 20.04.5 iso on the usb stick but after updates it became .6) on my freshly upgraded with nvme ssd's and regular ssd's (only kept one very solid and made to last WD Red 2TB HDD in there, upgraded memory to maximum capacity, I'll have that one desktop running for a lonnnng time, I already had a graphics adapter way beyond what I needed).
Then I encountered this error when trying to do shares, I installed samba, I install caja-shares or such (I'm not on that desktop right now, but I think that's the packages's name). And I got that error, well both errors, was really dumbfounded as to why it was adding a dash "-" in front of the folders I wanted to share, of course none like that were named as such, I don't see why it would think so.
A few days ago I went ahead with your apparently working fix for that ridiculous bug (thank you very much) but when I wanted to do the first part in terminal
sudo apt install autoconf-archive autopoint autopoint clang clang clang-tools gcc git libcaja-extension-dev libdbus-1-dev libdbus-glib-1-dev libdconf-dev libgtk-3-dev libgupnp-1.2-dev libgupnp-1.2-dev libmate-desktop-dev libstartup-notification0-dev libxml2-utils make mate-common pkg-config libgstreamer-plugins-base1.0-dev
I saw that it wanted to bring in way more packages than indicated here, including the i386 database....I really, really don't want to install doubles of every packages in their 32 bit version I have installed (I could argue that it is an almost virgin install so far, only install chromium through snap and vlc so far, so it might not be too bad), I thought I was free forever from those packages now that WINE 7 and over doesn't need 32 bit packages to function, I unfortunately need it for a few applications and a few games that I wonderfully manage to emulate without an itch on older installs on the much less performant, at least outside cpu and video, instance of that desktop in the past.
Why does it want to bring in the package that install all those i386 architecture copy of the packages I already have in. That's one hell of a bug if it needs all of this (when I wanted to install your reasonable install line, as I said, it brought with it a lot, A LOT more dependencies and I want to know if I can skip any of them or are they all needed, because if I can skip the i386 architecture deb, I'll install Synaptic and install from there and uncheck it from the list when I check all those packages you say to install.
That said, I'm glad I found solutions somewhere, I thought it was restricted to UM users, but even regular plain Ubuntu users encounter this infamous "net usershare" has returned error 255 after some digging, it looks like it can affect anything based on Debian, at least from version 20.x.x and on
Hope you'll see this, I really hated having to install i386 mirror packages for WINE, which I unfortunately need, that or CrossOver, but my copy is now rather old (17). I was especially mad last time when I installed WINE 6.x and all those 32 bit packages before when a week later WINE 7 was released! (WINE 7 getting rid of that prerequisite).
Anyways, I've been yammering long enough, hope you can reassure me, it's my main hurdle right now, there's a win10 pro desktop in the house and it needs to have access to some files through LAN which will definitely be on my main desktop which has UM 20.04.6.