LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 08-10-2008, 07:53 AM   #1
scorpion77
Member
 
Registered: Sep 2003
Distribution: Slackware64 14.2
Posts: 76

Rep: Reputation: 15
pkgtool: problems with view and remove


Hi to all,
I have just solved a problem with the displaying of files and directories with ntfs-3g (http://www.linuxquestions.org/questi...tfs-3g-661133/), but now a more serious problem is introduced. Pkgtool doesn't work as expected, the option View and Remove no longer work. If I decide to use View from KDE Konsole, it remains a black screen and does nothing. If I run it before starting the X server, remains the blinking cursor and does nothing. If you use Remove it displays immediately the following message:
Code:
------PACKAGE REMOVAL COMPLETE-------
| The packages have been removed. A |
| complete log of the files that    |
| were removed has been created in  |
| /var/log/setup/tmp:               |
| PKGTOOL.REMOVED.                  |
|-----------------------------------|
|             <  OK  >              |
-------------------------------------
This is the content of the file /var/log/setup/tmp/PKGTOOL.REMOVED:

No such package: Error:. Can't remove.
No such package: Expected. Can't remove.
No such package: 4. Can't remove.
No such package: arguments,. Can't remove.
No such package: found. Can't remove.
No such package: only. Can't remove.
No such package: 2.. Can't remove.
No such package: Use. Can't remove.
No such package: --help. Can't remove.
No such package: to. Can't remove.
No such package: list. Can't remove.
No such package: options.. Can't remove.

The strange fact is that if I change the language settings in files /etc/profile.d/lang.csh and /etc/profile.d/lang.sh setting setenv LANG it_IT instead of setenv LANG it_IT.utf8, pkgtool works perfectly.

So, I have two options:

1) I choose to see properly file names and directories, but pkgtool doesn't work as expected

2) pkgtool works perfectly, but I can't see properly file names and directories

Which option would you choose?

Obviously I choose the first option, but the doubt comes me that can be a bug of pkgtool, similar to this bug: http://www.linuxquestions.org/questi...hlight=pkgtool. In fact it seems absurd that you have to use a localization as simple as it_IT (which doesn't write all the characters), instead of using it_IT.utf8 as it happens in the others distros.
According to you is it the case to report it to Patrick?

Thanks for the help,

Scorpion77
 
Old 08-10-2008, 12:13 PM   #2
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,366

Rep: Reputation: 835Reputation: 835Reputation: 835Reputation: 835Reputation: 835Reputation: 835Reputation: 835
Does removepkg work as expected?
 
Old 08-10-2008, 12:21 PM   #3
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,163

Rep: Reputation: 699Reputation: 699Reputation: 699Reputation: 699Reputation: 699Reputation: 699
Scorpion77, so you use the C shell instead of Bash ?
I think it is a Locale issue indeed, from your report
dunno what is it, maybe a basic syntax error on shell init files ?

Could you post /etc/profile.d/lang.csh & /etc/profile.d/lang.sh ?
 
Old 08-10-2008, 04:21 PM   #4
scorpion77
Member
 
Registered: Sep 2003
Distribution: Slackware64 14.2
Posts: 76

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by keefaz View Post
Could you post /etc/profile.d/lang.csh & /etc/profile.d/lang.sh ?
Here it is lang.csh:
Code:
#!/bin/csh
# Set the system locale.  (no, we don't have a menu for this ;-)
# For a list of locales which are supported by this machine, type:
#   locale -a

# en_US is the Slackware default locale:
setenv LANG it_IT.utf8

# 'C' is the old Slackware (and UNIX) default, which is 127-bit
# ASCII with a charmap setting of ANSI_X3.4-1968.  These days,
# it's better to use en_US or another modern $LANG setting to
# support extended character sets.
#setenv LANG C

# There is also support for UTF-8 locales, but be aware that
# some programs are not yet able to handle UTF-8 and will fail to
# run properly.  In those cases, you can set LANG=C before
# starting them.  Still, I'd avoid UTF unless you actually need it.
#setenv LANG en_US.UTF-8

# Another option for en_US:
#setenv LANG en_US.ISO8859-1

# One side effect of the newer locales is that the sort order
# is no longer according to ASCII values, so the sort order will
# change in many places.  Since this isn't usually expected and
# can break scripts, we'll stick with traditional ASCII sorting.
# If you'd prefer the sort algorithm that goes with your $LANG
# setting, comment this out.
setenv LC_COLLATE C

# End of /etc/profile.d/lang.csh
Here it is lang.sh:
Code:
#!/bin/sh
# Set the system locale.  (no, we don't have a menu for this ;-)
# For a list of locales which are supported by this machine, type:
#   locale -a

# en_US is the Slackware default locale:
export LANG=it_IT.utf8

# 'C' is the old Slackware (and UNIX) default, which is 127-bit
# ASCII with a charmap setting of ANSI_X3.4-1968.  These days,
# it's better to use en_US or another modern $LANG setting to
# support extended character sets.
#export LANG=C

# There is also support for UTF-8 locales, but be aware that
# some programs are not yet able to handle UTF-8 and will fail to
# run properly.  In those cases, you can set LANG=C before
# starting them.  Still, I'd avoid UTF unless you actually need it.
#export LANG=en_US.UTF-8

# Another option for en_US:
#export LANG=en_US.ISO8859-1

# One side effect of the newer locales is that the sort order
# is no longer according to ASCII values, so the sort order will
# change in many places.  Since this isn't usually expected and
# can break scripts, we'll stick with traditional ASCII sorting.
# If you'd prefer the sort algorithm that goes with your $LANG
# setting, comment this out.
export LC_COLLATE=C

# End of /etc/profile.d/lang.sh
Thanks to all, but I already solved. I need to run pkgtool in this way: LANG=it_IT@euro pkgtool.
I already created an alias in .bashrc for convenience.
 
Old 08-11-2008, 08:27 AM   #5
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,163

Rep: Reputation: 699Reputation: 699Reputation: 699Reputation: 699Reputation: 699Reputation: 699
Quote:
Originally Posted by scorpion77 View Post
[/code]Thanks to all, but I already solved. I need to run pkgtool in this way: LANG=it_IT@euro pkgtool.
I already created an alias in .bashrc for convenience.
Nice to hear your solved your problem yourself!
But out of curiousity, if you use csh shell, why do you edit your .bashrc file or if you use bash shell, why do you edit /etc/profile.d/lang.csh ?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
pkgtool: remove won't work onelastwish Slackware 5 12-23-2007 04:21 AM
pkgtool 10.1 view option broken? cccc828 Slackware 27 01-27-2005 03:30 PM
can't remove packages with pkgtool PunkPT Slackware 8 08-06-2004 11:38 AM
removing xawtv pkgtool doesn´t see it, how else can I remove it? jimdaworm Slackware 4 09-29-2003 02:10 PM
Where is the file:lists all installed pkg's-like 'pkgtool-view'? BearClaw Slackware 2 07-19-2003 10:06 AM

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

All times are GMT -5. The time now is 02:55 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration