Void Linux package system problem

I tried to do my weekly Void system update ( it is rolling release) and for the first time in 5 years it had a problem

# xbps-install -Su
[*] Updating repository `https://repo-default.voidlinux.org/current/x86_64-repodata' ...
x86_64-repodata: 2023KB [avg rate: 532KB/s]
[*] Updating repository `https://repo-default.voidlinux.org/current/multilib/x86_64-repodata' ...
x86_64-repodata: 746KB [avg rate: 1081KB/s]
[*] Updating repository `https://repo-default.voidlinux.org/current/nonfree/x86_64-repodata' ...
CONFLICT: smem-1.5_3 with installed pkg cfitsio-4.6.2_1 (matched by cfitsio)
Transaction aborted due to conflicting packages.
# 

I am not sure how to interpret that CONFLICT message.

# xbps-query -Rs smem
[-] smem-1.5_3 Memory reporting tool
# xbps-query -Rs smem
[-] smem-1.5_3 Memory reporting tool
# xbps-query -Rs cfitsio
[*] cfitsio-4.6.2_1             Library for reading and writing data files in FITS data...
[-] cfitsio-devel-4.6.2_1       Library for reading and writing data files in FITS data...
[-] cfitsio-32bit-4.6.2_1       Library for reading and writing data files in FITS data...
[-] cfitsio-devel-32bit-4.6.2_1 Library for reading and writing data files in FITS data...
# 

smem is not installed, cfitsio is installed.
I think it must be trying to install smem, and it clashes with cfitsio?
My gut feeling is to remove cfitsio. I have no idea what that might break?

Looks like cfitsio uses smem-4.6.2_1 and the package system is trying to install smem-1.5_3.

# xbps-pkgdb -a
ERROR: smem: hash mismatch for /usr/bin/smem.
ERROR: smem: files check FAILED.

Does anyone have any clues or suggestions.?

2 Likes

I think I need to prevent a system update from installing smem

# xbps-pkgdb -m hold smem

# xbps-install -Su
[*] Updating repository `https://repo-default.voidlinux.org/current/x86_64-repodata' ...
x86_64-repodata: 2023KB [avg rate: 518KB/s]
[*] Updating repository `https://repo-default.voidlinux.org/current/multilib/x86_64-repodata' ...
x86_64-repodata: 746KB [avg rate: 1993KB/s]
[*] Updating repository `https://repo-default.voidlinux.org/current/nonfree/x86_64-repodata' ...

Name                      Action    Version           New version            Download size
ImageMagick               update    7.1.1.36_4        7.1.1.47_1             57KB 
MesaLib-devel             update    24.3.4_2          25.1.3_1               33KB 
SDL2                      update    2.32.6_1          2.32.8_1               751KB 
SDL2-devel                update    2.32.6_1          2.32.8_1               1266KB 
SuiteSparse               update    7.10.1_1          7.10.3_1               15MB 
at-spi2-atk               update    2.56.0_3          2.56.2_1               73KB 
at-spi2-atk-devel         update    2.56.0_3          2.56.2_1               1923B 
at-spi2-core              update    2.56.0_3          2.56.2_1               354KB 
at-spi2-core-devel        update    2.56.0_3          2.56.2_1               84KB 
atk                       update    2.56.0_3          2.56.2_1               71KB 
atk-devel                 update    2.56.0_3          2.56.2_1               109KB 
bc                        update    1.08.1_1          1.08.2_1               99KB 
blueman                   update    2.4.3_2           2.4.4_1                1198KB 
clang19-headers           update    19.1.4_4          19.1.4_6               1833KB 
cmake                     update    3.30.1_1          4.0.2_1                18MB 
curl                      update    8.14.0_1          8.14.1_1               251KB 
dnsmasq                   update    2.90_2            2.91_1                 289KB 
docker                    update    28.1.1_1          28.2.2_1               543B 
docker-cli                update    28.1.1_1          28.2.2_1               8519KB 
docker-compose            update    2.36.2_1          2.37.1_1               16MB 
dracut                    update    106_2             107_1                  218KB 
evince                    update    46.3.1_2          48.0_1                 2090KB 
file                      update    5.45_1            5.46_1                 20KB 
freetype                  update    2.13.2_1          2.13.3_1               383KB 
freetype-devel            update    2.13.2_1          2.13.3_1               576KB 
ghostscript               update    10.03.1_1         10.05.1_1              23MB 
gjs                       update    1.82.1_2          1.84.2_1               626KB 
gnome-boxes               update    47.0_1            48.0_1                 1023KB 
gnome-desktop             update    44.1_1            44.3_1                 642KB 
gsettings-desktop-schemas update    47.1_2            48.0_1                 844KB 
gst-libav                 update    1.24.11_1         1.26.2_1               111KB 
gst-plugins-bad1          update    1.24.11_2         1.26.2_1               4122KB 
gst-plugins-bad1-devel    update    1.24.11_2         1.26.2_1               363KB 
gst-plugins-base1         update    1.24.11_2         1.26.2_1               2471KB 
gst-plugins-base1-devel   update    1.24.11_2         1.26.2_1               540KB 
gst-plugins-good1         update    1.24.11_2         1.26.2_1               2595KB 
gst-plugins-ugly1         update    1.24.11_1         1.26.2_1               202KB 
gstreamer1                update    1.24.11_2         1.26.2_1               1567KB 
gstreamer1-devel          update    1.24.11_2         1.26.2_1               591KB 
gtk4                      update    4.18.4_2          4.18.5_1               7365KB 
gtk4-devel                update    4.18.4_2          4.18.5_1               4667KB 
gtk4-doc                  update    4.18.4_2          4.18.5_1               9229KB 
gtkmm4                    update    4.12.0_1          4.18.0_1               1168KB 
hyphen-en                 update    25.2.3.2_1        25.2.4.3_1             94KB 
jq                        update    1.7.1_1           1.8.0_1                215KB 
libclang-cpp19            update    19.1.4_4          19.1.4_6               16MB 
libclc19                  update    19.1.4_4          19.1.4_6               18MB 
libcurl                   update    8.14.0_1          8.14.1_1               409KB 
libcurl-devel             update    8.14.0_1          8.14.1_1               808KB 
libevince                 update    46.3.1_2          48.0_1                 274KB 
portaudio                 install   -                 190600.20161030_6      74KB 
libfluidsynth             update    2.3.5_1           2.4.6_1                248KB 
libgbm                    update    24.3.4_2          25.1.3_1               6740B 
libgbm-devel              update    24.3.4_2          25.1.3_1               5556B 
libgexiv2                 update    0.14.3_2          0.14.5_1               87KB 
libgs                     update    10.03.1_1         10.05.1_1              5084KB 
libijs                    update    10.03.1_1         10.05.1_1              9501B 
libjpeg-turbo             update    3.1.0_2           3.1.1_1                367KB 
libjpeg-turbo-devel       update    3.1.0_2           3.1.1_1                319KB 
libjpeg-turbo-tools       update    3.1.0_2           3.1.1_1                104KB 
libllvm19                 update    19.1.4_4          19.1.4_6               32MB 
liblz4                    update    1.9.4_1           1.10.0_1               73KB 
libmagic                  update    5.45_1            5.46_1                 444KB 
libmagick                 update    7.1.1.36_4        7.1.1.47_1             2759KB 
libmagick-devel           update    7.1.1.36_4        7.1.1.47_1             6210KB 
libraw                    update    0.21.3_1          0.21.4_1               402KB 
libsvt-av1                update    2.2.1_1           2.3.0_1                2240KB 
libtinysparql             update    3.9.1_2           3.9.2_1                336KB 
libupower-glib3           update    1.90.4_1          1.90.9_1               42KB 
libxatracker              update    24.3.4_2          25.1.3_1               2721KB 
libxkbcommon              update    1.9.2_1           1.10.0_1               163KB 
libxkbcommon-devel        update    1.9.2_1           1.10.0_1               68KB 
libxkbcommon-x11          update    1.9.2_1           1.10.0_1               13KB 
libxkbregistry            update    1.9.2_1           1.10.0_1               14KB 
linux-firmware-amd        update    20250311_1        20250509_2             18MB 
linux-firmware-broadcom   update    20250311_1        20250509_2             7259KB 
linux-firmware-intel      update    20250311_1        20250509_2             6589KB 
linux-firmware-network    update    20250311_1        20250509_2             297MB 
linux-firmware-nvidia     update    20250311_1        20250509_2             40MB 
linux6.12                 update    6.12.30_1         6.12.33_1              155MB 
linux6.6                  update    6.6.92_1          6.6.93_1               148MB 
mesa                      update    24.3.4_2          25.1.3_1               9492KB 
mesa-dri                  update    24.3.4_2          25.1.3_1               20KB 
mesa-libgallium           update    24.3.4_2          25.1.3_1               11MB 
mesa-opencl               update    24.3.4_2          25.1.3_1               29MB 
moby                      update    28.1.1_1          28.2.2_1               22MB 
nghttp3                   update    1.7.0_1           1.10.1_1               70KB 
nghttp3-devel             update    1.7.0_1           1.10.1_1               21KB 
noto-fonts-ttf            update    2025.05.01_1      2025.06.01_1           18MB 
noto-fonts-ttf-extra      update    2025.05.01_1      2025.06.01_1           96MB 
nss                       update    3.111_1           3.112_1                2674KB 
nushell                   update    0.103.0_1         0.104.1_1              9135KB 
opus                      update    1.4_1             1.5.2_1                4372KB 
opus-devel                update    1.4_1             1.5.2_1                4450KB 
perl-Authen-SASL          update    2.1700_1          2.1800_1               24KB 
perl-IO-Socket-SSL        update    2.089_1           2.090_1                165KB 
python3                   update    3.13.3_3          3.13.4_2               7348KB 
python3-setuptools        update    80.7.1_1          80.9.0_1               798KB 
removed-packages          update    0.1.20250519_1    0.1.20250612_1         8443B 
run-parts                 update    4.11.2_2          5.7_1                  11KB 
runit                     update    2.2.0_1           2.2.0_2                405KB 
scite                     update    5.5.6_1           5.5.7_1                2306KB 
sqlite                    update    3.45.3_2          3.49.2_1               1130KB 
sqlite-devel              update    3.45.3_2          3.49.2_1               934KB 
strace                    update    6.14_1            6.15_1                 574KB 
taglib                    update    2.0.2_2           2.1_1                  414KB 
tinysparql-devel          update    3.9.1_2           3.9.2_1                44KB 
upower                    update    1.90.4_1          1.90.9_1               111KB 
vte3                      update    0.80.1_2          0.80.2_1               389KB 
vte3-profile              update    0.80.1_2          0.80.2_1               5406B 
xdg-dbus-proxy            update    0.1.5_1           0.1.6_1                26KB 

Size to download:             1106MB
Size required on disk:        2899MB
Space available on disk:       268GB

Do you want to continue? [Y/n] 

Yes that works.
It is a big update., including linux6.12-6.12.33_1 and another older linux. Took about 3 minutes.
It does an update-grub automatically, and seems to end happily

....
xdg-dbus-proxy-0.1.6_1: configuring ...
xdg-dbus-proxy-0.1.6_1: updated successfully.

111 downloaded, 1 installed, 110 updated, 111 configured, 0 removed.
you have mail
# 

I seem to still have a screen. Now have to reboot and do update-grub in MX, then try Void again.

Void boot OK. I use Void to run virt-manager. So I thought I had better test a couple of VM’s… they worked.

So it is a mystery why some unknown package wants an old version of smem? It may be happy with the later version, or it may crash. I shall find out when something hangs.

There is still a problem

# xbps-pkgdb -a
ERROR: smem: hash mismatch for /usr/bin/smem.
ERROR: smem: files check FAILED.
# 

Maybe that binary file is corrupted?

2 Likes

Hi Neville, :waving_hand:

I did a research on your problem. It´s of some interest to me as well, as I was (or am) considering installing Void Linux as a VM.

My investigation led me to the conclusion that the issue might be a packaging conflict or dependency error in the Void Linux repositories,
possibly caused by a file integrity problem with smem.

Putting smem on hold seems to have worked as a temporary workaround, but:

a more permanent solution involves investigating dependencies, fixing the hash mismatch, and possibly reporting the bug to the Void Linux maintainers

You might also:

  • Use xbps-query -Rx cfitsio to see what dependencies cfitsio has and if it requires smem or conflicts with it.

  • Use xbps-query -Rx smem to check what might be pulling in smem.

  • Run xbps-query -m to list manually installed packages and check for orphans.

  • Consider running xbps-remove -Oo to clean up orphaned packages.

  • Try reinstalling smem (if it is installed) with xbps-install -f smem to restore the correct file and hash.

  • If smem is not needed and is not installed, ensure that /usr/bin/smem does not exist or is not left over from a previous install

You certainly know those xbps commands better than I do, Neville.
So please check them again to see if they make sense.

Many greetings from Rosika :slightly_smiling_face:

2 Likes

Hi Rosika,
I only know the ones I use.
You have dug up some new ones ( new for me) … I need to try what you suggest

It is strange… xbps -Rs smem says smem is not installed… but it is there in /usr/bin/smem

Because putting a hold on smem allowed the update to proceed, it means something is trying to install smem… and it clashes with the one already there because it is attempting to install an older version than the one that is there…that does not make sense… it is, as you say … a package system error

I am very impressed… you seem to understand xbps
I think your xbps-query -m to check for orphans might solve it

You are right, I cant leave it on hold forever.
Thank you
Regards
Neville

3 Likes

Hi Neville, :waving_hand:

Oh, please, don´t be impressed.
As I said:

and came up with a compilation some findings. Actually I don´t have any experience with Void or any of the xbps commands. :blush: .

Did you try out:

Many greetings from Rosika :slightly_smiling_face:

2 Likes

You mean run it? Yes.
There is even a man page. But it is not installed ???

I think the problem is that cfitsio has a subcommand called smem . It is getting that confused with the smem package.

3 Likes

Hi Neville, :waving_hand:

No, I didn´t mean that.

If my research results are correct then this would apply:

If xbps-query -Rs smem reports that smem is not installed, but /usr/bin/smem still exists, it means the file is present on your system without being tracked by the package manager.
(This can happen if a package was removed but its files were left behind, or if the file was placed there manually or by another process.)

It seems to be safe to manually delete /usr/bin/smem if you are sure you do not need it and no package is managing it.

If you want to do this:
sudo rm /usr/bin/smem
would be the right command.

This should remove the orphaned file and resolve the hash mismatch error reported by xbps-pkgdb -a.

But you should be sure that no scripts or workflows depend on this file. :thinking:
I.e. make sure that it is truly orphaned.

BTW:

Have you installed xtools on Void?
If yes, then xlocate smem would help to see which package should provide /usr/bin/smem and confirm that it is not currently installed.
That is for thoroughness only and may be skipped.

Actually, I´m not sure how I would proceed myself in this situation.
I might take a timeshift snapshot first and then proceed with deleting /usr/bin/smem.
If it turns out to be O.K., then all is well. Otherwise I´d be able to set back the system to a previously well working state.

Many greetings from Rosika :slightly_smiling_face:

2 Likes

xbps-query -o does not report smem as orphaned ?

2 Likes

Hi Neville, :waving_hand:

If xbps-query -o (which lists orphaned packages) does not report smem as orphaned, but /usr/bin/smem exists and :
smem is not installed according to xbps-query -Rs smem,
this means /usr/bin/smem is not currently tracked by any package manager entry.
It is s a leftover or was placed there manually… That´s the theory behind it.

If no package owns /usr/bin/smem and smem is not installed, it should be safe to delete the file.
There really should be no risk to package management by deleting this file, since no package claims ownership of it.

Cheers from Rosika :slightly_smiling_face:

3 Likes

Hi Rosika

Yes I need a backup… clonezilla
or
the safe thing to do is to hide rather than delete
mv /usr/bin/smem /usr/bin/smem.hide

I can safely try that

I did not place it there
I suspect it may be part of cfitsio because cfitsio has a subcommand called smem, because…

That is the original message while attempting an update…cfitsio is involved somehow.
The only package that requires cfitsio is gimp… if I delete cfitsio gimp will stop working.
Therefore I have to try hiding smem.

Thanks
Neville

2 Likes

Maybe just uninstall and reinstall GIMP? I haven’t used Void for a long time now so can’t help with the issue otherwise. I have Void on my PC still so if this didn’t help I can install GIMP to it later and check if I get same errors.

2 Likes

@Rosika ,
OK lets hide smem

# xbps-pkgdb -m unhold smem
# ls -l /usr/bin/sm*

-rwxr-xr-x 1 root root   14464 Mar 30 20:04 /usr/bin/smem

# xbps-install -Su
[*] Updating repository `https://repo-default.voidlinux.org/current/x86_64-repodata' ...
x86_64-repodata: 2026KB [avg rate: 381KB/s]
[*] Updating repository `https://repo-default.voidlinux.org/current/multilib/x86_64-repodata' ...
x86_64-repodata: 746KB [avg rate: 695KB/s]
[*] Updating repository `https://repo-default.voidlinux.org/current/nonfree/x86_64-repodata' ...
x86_64-repodata: 15KB [avg rate: 375MB/s]
CONFLICT: smem-1.5_3 with installed pkg cfitsio-4.6.2_1 (matched by cfitsio)
ERROR: Transaction aborted due to conflicting packages.
# mv /usr/bin/smem /usr/bin/smem.hide
# xbps-install -Su
[*] Updating repository `https://repo-default.voidlinux.org/current/x86_64-repodata' ...
[*] Updating repository `https://repo-default.voidlinux.org/current/multilib/x86_64-repodata' ...
[*] Updating repository `https://repo-default.voidlinux.org/current/nonfree/x86_64-repodata' ...
CONFLICT: smem-1.5_3 with installed pkg cfitsio-4.6.2_1 (matched by cfitsio)
ERROR: Transaction aborted due to conflicting packages.
# ls -l /usr/bin/sm*
-rwxr-xr-x 1 root root   14464 Mar 30 20:04 /usr/bin/smem.hide

So removing smem did not fix the issue

1 Like

OK will try

# mv /usr/bin/smem.hide /usr/bin/smem
# 
# xbps-remove gimp
# xbps-install -Su
[*] Updating repository `https://repo-default.voidlinux.org/current/x86_64-repodata' ...
[*] Updating repository `https://repo-default.voidlinux.org/current/multilib/x86_64-repodata' ...
[*] Updating repository `https://repo-default.voidlinux.org/current/nonfree/x86_64-repodata' ...
CONFLICT: smem-1.5_3 with installed pkg cfitsio-4.6.2_1 (matched by cfitsio)
ERROR: Transaction aborted due to conflicting packages.

so the CONFLICT is still there
I need to also remove cfitsio

# xbps-remove cfitsio
# xbps-install -Su
[*] Updating repository `https://repo-default.voidlinux.org/current/x86_64-repodata' ...
[*] Updating repository `https://repo-default.voidlinux.org/current/multilib/x86_64-repodata' ...
[*] Updating repository `https://repo-default.voidlinux.org/current/nonfree/x86_64-repodata' ...

Name              Action    Version           New version            Download size
file              update    5.46_1            5.46_2                 20KB 
libdav1d          update    1.3.0_1           1.5.1_1                679KB 
libmagic          update    5.46_1            5.46_2                 444KB 
perl              update    5.40.2_1          5.40.2_2               15MB 
smem              update    1.5_2             1.5_3                  12KB 
spice             update    0.15.2_1          0.16.0_1               401KB 
spice-protocol    update    0.14.4_1          0.14.5_1               21KB 
wayland-protocols update    1.44_2            1.45_1                 139KB 
xfsprogs          update    6.5.0_1           6.14.0_1               1344KB 
xinit             update    1.4.2_1           1.4.4_1                16KB 

It now updates without the CONFLICT
Notice that one of the packages updates is smem

# xbps-query -Rs smem
[*] smem-1.5_3 Memory reporting tool
# 

It now reports smem as installed.
So that is fine without gimp and cfitsio

Now what happens if I attempt to reinstall gimp

# xbps-install gimp
CONFLICT: smem-1.5_3 with cfitsio-4.6.2_1 in transaction (matched by cfitsio)
ERROR: Transaction aborted due to conflicting packages.
# 

The packages cfitsio-4.6.2_1 and smem-1.5_3 clash, by installing smem-1.5_3 I have made it impossible to install gimp

It is a package system bug. I shall report it.
Meanwhile, I can do without gimp, so I leave it like it is and Void will be able to update.

The bug has been reported to Void

4 Likes

Ok, so there’s a bug report already, great. I assume it’s quickly corrected. If you don’t need gimp just wait for the fix.

4 Likes

@nevj :

Hi Neville, :waving_hand:

I looked carefully at your posts and your diagnosis.
As far as my limited understanding goes I also think this is a genuine package conflict in the Void Linux repository, perhaps a packaging bug.

There seems to be no user-side workaround available and no simple workaround (neither hiding nor deleting /usr/bin/smem) will help. :worried:

So it really seems that it is for the Void Linux maintainers to fix the packaging so the conflict is resolved.

I admire your analytical assessment of the situation :+1: .

Many greetings from Rosika :slightly_smiling_face:

3 Likes

Agree… cfitsio is not compatable with smem 1.5_3, but it works with smem 1.5_2

2 Likes