LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   slpkg problems out of the blue (https://www.linuxquestions.org/questions/slackware-14/slpkg-problems-out-of-the-blue-4175735100/)

bgslacks 03-20-2024 05:14 AM

slpkg problems out of the blue
 
Hello humans.

I've recently ran into problems while trying to use slpkg. It has worked for me previously which I think is weird, I've never had this problem before. I've tried reinstalling multiple python3 dependencies but nothing seem to work.

These are the errors I get:

root@slackware:/etc/slpkg# slpkg
Traceback (most recent call last):
File "/usr/sbin/slpkg", line 5, in <module>
from slpkg.main import main
File "/usr/lib64/python3.9/site-packages/slpkg/main.py", line 15, in <module>
from slpkg.cleanings import Cleanings
File "/usr/lib64/python3.9/site-packages/slpkg/cleanings.py", line 9, in <module>
from slpkg.views.views import View
File "/usr/lib64/python3.9/site-packages/slpkg/views/views.py", line 10, in <module>
from slpkg.dialog_box import DialogBox
File "/usr/lib64/python3.9/site-packages/slpkg/dialog_box.py", line 12, in <module>
locale.setlocale(locale.LC_ALL, '')
File "/usr/lib64/python3.9/locale.py", line 610, in setlocale
return _setlocale(category, locale)
locale.Error: unsupported locale setting


Has anyone experienced this before?

Petri Kaukasoina 03-20-2024 05:25 AM

Is it -current or 15.0?

What does command 'locale' tell you?

bgslacks 03-20-2024 05:49 AM

Quote:

Originally Posted by Petri Kaukasoina (Post 6490762)
Is it -current or 15.0?

What does command 'locale' tell you?

I'm on current

locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME=en_SE.UTF-8
LC_COLLATE=C
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT=sv_SE.UTF-8
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

Petri Kaukasoina 03-20-2024 06:44 AM

Maybe you once installed v4l-utils-1.26.0-x86_64-1 which overwrote /usr/lib64/gconv/gconv-modules from glibc. The latest v4l-utils is ok, but to fix the glibc gconv-modules, reinstall glibc.

bgslacks 03-20-2024 08:29 AM

Quote:

Originally Posted by Petri Kaukasoina (Post 6490784)
Maybe you once installed v4l-utils-1.26.0-x86_64-1 which overwrote /usr/lib64/gconv/gconv-modules from glibc. The latest v4l-utils is ok, but to fix the glibc gconv-modules, reinstall glibc.

Idk about the glibc issues, I updated my slackware yesterday and it didn't work before that either.

Petri Kaukasoina 03-20-2024 08:54 AM

Quote:

Originally Posted by bgslacks (Post 6490811)
Idk about the glibc issues, I updated my slackware yesterday and it didn't work before that either.

OK, it's probably a different problem then.

Just to make sure, 'ls -l /usr/lib64/gconv/gconv-modules' should tell the size of 3916 bytes. The broken file was 290 bytes.

Quote:

Originally Posted by bgslacks (Post 6490769)
LC_TIME=en_SE.UTF-8

There is no locale "en_SE.UTF-8". Try en_US.UTF-8 or sv_SE.UTF-8.

bgslacks 03-20-2024 08:58 AM

Quote:

Originally Posted by Petri Kaukasoina (Post 6490814)
OK, it's probably a different problem then.

Just to make sure, 'ls -l /usr/lib64/gconv/gconv-modules' should tell the size of 3916 bytes. The broken file was 290 bytes.



There is no locale "en_SE.UTF-8". Try en_US.UTF-8 or sv_SE.UTF-8.

-rw-r--r-- 1 root root 3916 Feb 2 22:20 /usr/lib64/gconv/gconv-modules

bgslacks 03-20-2024 09:16 AM

Quote:

Originally Posted by Petri Kaukasoina (Post 6490814)
OK, it's probably a different problem then.

Just to make sure, 'ls -l /usr/lib64/gconv/gconv-modules' should tell the size of 3916 bytes. The broken file was 290 bytes.



There is no locale "en_SE.UTF-8". Try en_US.UTF-8 or sv_SE.UTF-8.

Just want to start of by thanking you for your help.
I change my locale by editing /etc/profile.d/lang.sh.
Looks like slpkg is working now, BUT I can no longer boot into kde 😂
Assuming it has something to do with my system language changing to Swedish?


All times are GMT -5. The time now is 07:42 AM.