LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-20-2024, 05:14 AM   #1
bgslacks
LQ Newbie
 
Registered: Feb 2024
Posts: 12

Rep: Reputation: 0
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?
 
Old 03-20-2024, 05:25 AM   #2
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,790

Rep: Reputation: 1469Reputation: 1469Reputation: 1469Reputation: 1469Reputation: 1469Reputation: 1469Reputation: 1469Reputation: 1469Reputation: 1469Reputation: 1469
Is it -current or 15.0?

What does command 'locale' tell you?
 
1 members found this post helpful.
Old 03-20-2024, 05:49 AM   #3
bgslacks
LQ Newbie
 
Registered: Feb 2024
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Petri Kaukasoina View Post
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=
 
Old 03-20-2024, 06:44 AM   #4
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,790

Rep: Reputation: 1469Reputation: 1469Reputation: 1469Reputation: 1469Reputation: 1469Reputation: 1469Reputation: 1469Reputation: 1469Reputation: 1469Reputation: 1469
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.
 
Old 03-20-2024, 08:29 AM   #5
bgslacks
LQ Newbie
 
Registered: Feb 2024
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Petri Kaukasoina View Post
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.
 
Old 03-20-2024, 08:54 AM   #6
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,790

Rep: Reputation: 1469Reputation: 1469Reputation: 1469Reputation: 1469Reputation: 1469Reputation: 1469Reputation: 1469Reputation: 1469Reputation: 1469Reputation: 1469
Quote:
Originally Posted by bgslacks View Post
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 View Post
LC_TIME=en_SE.UTF-8
There is no locale "en_SE.UTF-8". Try en_US.UTF-8 or sv_SE.UTF-8.
 
Old 03-20-2024, 08:58 AM   #7
bgslacks
LQ Newbie
 
Registered: Feb 2024
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Petri Kaukasoina View Post
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
 
Old 03-20-2024, 09:16 AM   #8
bgslacks
LQ Newbie
 
Registered: Feb 2024
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Petri Kaukasoina View Post
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?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
sbopkg_gui for current and g-slpkg a gui for slpkg rizitis Slackware 5 08-26-2023 04:38 PM
Slpkg New Slackware packaging tool dslackw Slackware 228 11-23-2022 02:04 AM
LXer: Red Hat's new CEO on surviving inside Blue Blue: 'We don't participate in IBM's culture. It's that simple' LXer Syndicated Linux News 0 05-02-2020 02:41 PM
confused about iojs installation using slpkg Sefid par Slackware 4 08-31-2015 07:13 PM
Unable to boot Fedora 10 live cd past blue/light blue/white loading bar. Gfx issue? si1433 Linux - Newbie 1 11-28-2008 06:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration