NavigationUser loginWho's onlineThere are currently 0 users and 14 guests online.
Highest Users
Linux NewsClick the above for your daily dose of Linux news. Food for ThoughtWe have come to be one of the worst ruled, one of the most completely controlled and dominated Governments in the world -- no longer a Government of free opinion, no longer a Government by conviction and vote of the majority, but a Government by the opinion and duress of small groups of dominant men. Spam?See spam posts on this site? If so, please don't reply to the spam! Instead, just report the URL to the webmaster. |
aptitude update fails - localization problem with sources.list?Dear all,
The strange signs in I currently disabled all other entries in the sources.list than Any idea? Thanks in advance, |
Re: aptitude update fails - localization problem with sources.li
The sources.list file should be a plain ASCII text file only. Perhaps your editor saved changes in UTF-8 or some such and you have non-ASCII characters? This is the only thing I can think of that would cause one set of new entries to fail. See if the 'locale' of 'vi' can be set to 'C'.
Re: aptitude update fails - localization problem with sources.li
hi pinniped,
thanx for giving the hint. How would I set the locale of vi can be set to 'C'. I guess that has got nothing to do with the system-wide locales?
*** edit ***
:~# locale
LANG=en_GB.UTF-8
LC_CTYPE="en_GB.UTF-8"
LC_NUMERIC="en_GB.UTF-8"
LC_TIME="en_GB.UTF-8"
LC_COLLATE="en_GB.UTF-8"
LC_MONETARY="en_GB.UTF-8"
LC_MESSAGES="en_GB.UTF-8"
LC_PAPER="en_GB.UTF-8"
LC_NAME="en_GB.UTF-8"
LC_ADDRESS="en_GB.UTF-8"
LC_TELEPHONE="en_GB.UTF-8"
LC_MEASUREMENT="en_GB.UTF-8"
LC_IDENTIFICATION="en_GB.UTF-8"
LC_ALL=
when
set LC_ALL="C"the value will still be empty. Is there another way how I could set LC_ALL?thanx, nilson
Re: aptitude update fails - localization problem with sources.li
OK:
export lang=latin1
vim
This will only work if vim edits a file with 'latin1' encoding, so you can't edit your already-utf-8 file; vim will not convert it. However, you may be able to copy a working file and edit that.
I guess an alternative would be to see if the apt tools are language dependent and can be set to use 'utf-8' (in which case it SHOULD work with the usual ASCII as well as genuine UTF-8 for English characters).
To make the setting somewhat permanent, you can put :set encoding=latin1 into the .vimrc file (you may need to create that file).