paru icon indicating copy to clipboard operation
paru copied to clipboard

Panic when listing AUR packages in AUR repository

Open justbispo opened this issue 1 month ago • 14 comments

Affected Version

paru -V paru v2.1.0 - libalpm v15.0.0

Description

Have you checked previous issues? Yes

Today I've started to get an error on paru -Sl aur.

It happens on both the latest release and -git version.

I wonder if there's a package with a weird name in the AUR. I've tried to check the last modified packages but, at first glance, didn't see any package with weird characters.

Output

thread 'main' panicked at /home/bispo/.local/share/cargo/registry/src/index.crates.io-1949cf8c6b5b557f/alpm-4.0.3/src/db.rs:144:39:
called `Result::unwrap()` on an `Err` value: NulError(0, [0, 14, 185, 20, 190, 28, 253, 203, 149, 49, 6, 199, 174, 122, 104, 43, 232, 83, 165, 169, 102, 122, 167, 45, 5, 124, 57, 227, 152, 6, 31, 172, 77, 225, 246, 229, 6])
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
aur ���˕1Ǯzh+�S��fz�-|9��M��� unknown-version

Edit: Less than an hour after, the error is still the same but the undecipherable name is different:

thread 'main' panicked at /home/bispo/.local/share/cargo/registry/src/index.crates.io-1949cf8c6b5b557f/alpm-4.0.3/src/db.rs:144:39:
called `Result::unwrap()` on an `Err` value: NulError(0, [0, 40, 24, 134, 156, 164, 242, 84, 139, 132, 44, 189, 132, 185, 217, 46, 40, 223, 8, 152, 73, 247, 161, 67, 194, 77, 202, 137, 159, 172, 207, 200, 145, 127, 26, 193, 46, 159, 131, 94, 173, 255, 245, 54, 21, 86, 162, 251, 12, 154, 238, 157, 155, 174, 221, 246, 242, 230, 253, 22, 109, 160, 115, 179, 1, 237, 56, 208, 6, 45, 97, 95, 226, 39, 177, 134, 108, 8, 226, 222, 150, 99, 220, 110, 204, 74, 97, 112, 161, 212, 229, 147, 13, 43, 211, 219, 144, 171, 202, 54, 38, 169, 206, 6, 85, 232, 45, 189, 132, 123, 17, 145, 174, 175, 130, 127, 94, 221, 41, 28, 237, 210, 198, 120, 216, 66, 192, 218, 52, 91, 42, 98, 155, 186, 78, 93, 39, 137, 90, 183, 194, 221, 137, 30, 98, 73, 13, 183, 177, 113, 141, 197, 77, 49, 6, 226, 142, 73, 102, 98, 55, 8, 26, 110, 88, 213, 232, 224, 179, 201, 143, 133, 134, 115, 56, 216, 150, 14, 119, 215, 152, 61, 98, 102, 243, 240, 117, 127, 224, 79, 181, 44, 218, 122, 142, 236, 156, 199, 66, 179, 21, 120, 207, 74, 62, 67, 26, 21, 146, 219, 146, 188, 179, 115, 44, 176, 134, 236, 235, 146, 163, 13, 115, 133, 184, 227, 20, 161, 80, 129, 33, 101, 232, 19, 131, 178, 170, 242, 190, 213, 171, 83, 26, 135, 124, 219, 210, 206, 24, 179, 244, 178, 243, 222, 75, 233, 128, 198, 98, 183, 135, 36, 214, 8, 71, 184, 157, 5, 173, 155, 42, 250, 36, 147, 150, 17, 129, 41, 57, 172, 143, 231, 168, 252, 227, 121, 14, 22, 20, 189, 20, 38, 199, 178, 106, 126, 122, 234, 181, 108, 44, 219, 85, 105, 54, 141, 26, 75, 223, 162, 104, 64, 18, 196, 120, 220, 76, 58, 186, 19, 105, 172, 20, 156, 31, 140, 73, 71, 234, 188, 245, 170, 105, 49, 21, 212, 0, 51, 194, 193, 15, 211, 233, 167, 78, 91, 105, 39, 162, 174, 235, 64, 121, 231, 96, 28, 196, 254, 114, 228, 74, 24, 66, 191, 234, 202, 37, 74, 75, 47, 94, 126, 94, 150, 31, 177, 105, 106, 189, 196, 68, 25, 228, 210, 77, 14, 213, 165, 18, 64, 184, 100, 143, 139, 152, 26, 52, 43, 3, 160, 245, 181, 176, 47, 22, 199, 166, 204, 161, 216, 9, 245, 4, 93, 202, 254, 224, 156, 95, 253, 216, 49, 222, 148, 52, 112, 7, 134, 223, 224, 231, 228, 55, 180, 149, 42, 21, 159, 49, 222, 212, 29, 90, 61, 160, 182, 207, 235, 17, 35, 172, 192, 35, 172, 233, 136, 224, 88, 73, 214, 225, 163, 245, 36, 42, 149, 96, 40, 57, 37, 27, 109, 112, 221, 220, 202, 126, 236, 235, 247, 68, 183, 249, 99, 239, 17, 75, 70, 142, 71, 99, 207, 40, 40, 227, 192, 42, 201, 33, 127, 204, 91, 41, 13, 241, 228, 88, 139, 25, 71, 25, 221, 143, 99, 118, 226, 57, 78, 110, 83, 2, 240, 16, 103, 116, 111, 146, 34, 176, 53, 148, 151, 152, 150, 239, 154, 236, 142, 190, 27, 44, 74, 181, 196, 51, 40, 54, 164, 187, 38, 16, 13, 203, 144, 42, 114, 187, 53, 231, 232, 226, 228, 56, 197, 42, 204, 56, 125, 126, 154, 64, 189, 192, 247, 24, 229, 208, 209, 237, 182, 198, 217, 251, 239, 49, 181, 133, 90, 187, 245, 251, 62, 194, 140, 170, 239, 155, 245, 106, 46, 115, 17, 47, 2, 51, 229, 151, 113, 243, 192, 46, 207, 68, 84, 209, 28, 251, 215, 80, 248, 236, 28, 55, 109, 195, 29, 63, 172, 19, 111, 92, 206, 19, 17, 167, 61, 202, 134, 226, 96, 250, 142, 202, 50, 21, 28, 109, 167, 243, 27, 220, 43, 30, 67, 7, 139, 181, 71, 154, 157, 202, 114, 243, 78, 109])
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
aur (����T��,����.(�I�C�Mʉ���ȑ�.��^���6V��
s����P�!e�����իS�|�������K��b��$G����*�$���)9�����y�&Dzj~z�l,�Ui6�Kߢh@�x�L:�i���IG��i1�3����N[i'���@y�`��r�JB���%JK/^~^��ij��D��Mե@�d���4+��/Ǧ̡�     �]���_��1ޔ4p�����7��*�1��Z=����#��#���XI�ː*r�5����8�*�8}~�@�����������1��Z���>Œ���j.s/3�q��.�DT���P��7m�?�o\��=ʆ�`���2m����G���r�Nm unknown-version

justbispo avatar Nov 24 '25 16:11 justbispo

Was coming to open a similar issue. With paru -Slq, which I use regularly, it seems like it's listing official packages fine and as soon as it gets to AUR it spits a bunch of gibberish. With the -q flag it just spits around ~6000 lines of gibberish instead of crashing like OP's example.

This is what my output looks like at the point where it stops listing official packages and goes off the rail with AUR packages:

lib32-zstd
multilib-devel
steam
umu-launcher
wine-mono
wine-nine
zsnes 
�?�@G��lNi�U���+>��!u�X�1���I5�$:e���dQs��{ �x4�k����3��?�ˤ�^��0�?��Z
                                                                     ծ |�9��4;�$�/���GbY�n�¤��>.��
                                                                                                  ����ѲH�C3���^~�tq�ʝ�P`=<RE�h��0Z�ϛ2䄢��r��C��x��u����<)l��'N$z��M��=�)֘\}(=
[5f�cӳAIv����ǟO"7�3�ߡqf�Iy���N���y�A�-��G�]n�;h

(... etc, another ~6000 lines of this)

zkwinkle avatar Nov 24 '25 18:11 zkwinkle

Same problem here when using paruz and paru -Sl aur

plum avatar Nov 24 '25 20:11 plum

Following @zkwinkle comment, I've just tried with paru -Slq aur and got the same gibberish output. I've saved the output to this file:

output.txt

Also, can confirm it's not only a paru issue, since yay also shows the same gibberish. But pikaur does run the command correctly.

Edit: and also, I've checked the packages.gz file used by both made available by Arch and looks fine.

justbispo avatar Nov 24 '25 20:11 justbispo

Haven't looked at the paru code, but suspect the same root cause as in: https://github.com/Jguer/yay/issues/2709

espeer avatar Nov 25 '25 02:11 espeer

For further rationale on the v2 approach, refer to: https://github.com/Jguer/yay/pull/2710#discussion_r2558733076 (similar issue).

espeer avatar Nov 25 '25 16:11 espeer

Hi this is an unfortunate consequence of a fix to: https://gitlab.archlinux.org/archlinux/aurweb/-/issues/545 that I reported.

I open a new bug report to notify AUR about broken clients: https://gitlab.archlinux.org/archlinux/aurweb/-/issues/546

cuihaoleo avatar Nov 25 '25 16:11 cuihaoleo

Here just to say that i have the same issue

Zilibobka-S avatar Dec 04 '25 16:12 Zilibobka-S

Here just to say that i have the same issue

Shallow-Seek avatar Dec 06 '25 19:12 Shallow-Seek

You're not alone.

kbuckleys avatar Dec 09 '25 07:12 kbuckleys

Same problem here

arne-vl avatar Dec 10 '25 14:12 arne-vl

I'm also seeing this

McPhale avatar Dec 10 '25 17:12 McPhale

Stop sending useless 'mee tooo' pings.

gestate-8 avatar Dec 11 '25 09:12 gestate-8

same issue, but do not encounter this with yay -Sl aur The output with yay is:

aur zzz unknown-version
aur zzz-mod-manager-git unknown-version
aur zzzfm-bin unknown-version
aur zzzfm-common-bin unknown-version
aur zzzfm-dpup unknown-version
aur zzzfm-git unknown-version

paru on other hand, still panicks. Same issue when pressing Tab in fish shell upon typing paru -S <PACKAGE_NAME>

debuxxed avatar Dec 12 '25 11:12 debuxxed

archlinuxcn/paru works fine

Xerxes-2 avatar Dec 13 '25 12:12 Xerxes-2