amyren
Posts: 91
Joined: Tue Jun 12, 2012 10:49 am

Synaptic problem (and solution)

Sat Sep 21, 2013 10:22 am

I just had a go with the latest (10.09.2013) raspian and did a fresh install.
Installed Synaptic, but ran across an error message when launching it. "pango-warning"....

So I did some googling and found that this was experienced on other linux platforms as well, among non-english users.
It seems that synaptic have a problem with some of the norwegian localization, and also some other languages.

The workaround is to launch synaptic with the following command:
sudo LANG=en_GB.UTF8 synaptic

I did make a small script with that command and placed it on my desktop for easy access.

User avatar
AndrewS
Posts: 3625
Joined: Sun Apr 22, 2012 4:50 pm
Location: Cambridge, UK
Contact: Website

Re: Synaptic problem (and solution)

Sun Sep 22, 2013 3:35 pm

The way that amyren has done it, only synaptic will see that LANG has been set to en_GB.UTF8

Try reading up on environment variables and the 'export' command ;)

amyren
Posts: 91
Joined: Tue Jun 12, 2012 10:49 am

Re: Synaptic problem (and solution)

Mon Sep 23, 2013 5:31 pm

Thanks for the replies.
Yes, it seemes that the language is only set to GB for that program only.

And I dont use linux daily, so I'm no expert and just stumbled upon the solution (google).
But I did a small change instead of having that script file without an icon on my desktop, I did enter the startmenu and right-clicked on the Synaptic icon and copied it to the desktop.
Then I got a nice synaptic icon there. Then right-clicked the icon and opened it in an editor (leafpad), then at the bottom of the text file I found the exec line and replaced it with this:
Exec=sudo LANG=en_GB.UTF8 synaptic
Then saved it and now I have a shortcut that launches synaptic directly and without prompting for password

Return to “Raspberry Pi OS”