Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upDebian 8 Terminal no longer starts up #1195
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Sep 19, 2015
Member
Try starting xterm and check locale output - you'll probably receive
some error - please tell what exactly message is.
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
|
Try starting Best Regards, |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
bnvk
Sep 19, 2015
@marmarek I added XTerm to the TemplateVM launcher and ran it. Then I typed locale into that terminal. Here is the printout
user@debian-8:~$ local
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_CTYPE="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MOENTARY="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="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
user@devian-8~$
bnvk
commented
Sep 19, 2015
|
@marmarek I added XTerm to the TemplateVM launcher and ran it. Then I typed
|
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Sep 19, 2015
Member
Ok, so you don't have en_US.UTF-8 locale generated - run sudo dpkg-reconfigure locales and make sure the entry en_US.UTF-8 is
selected.
I'll add some script to somehow automate this task...
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
|
Ok, so you don't have Best Regards, |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Sep 19, 2015
Member
@adrelanos what is the best way to fix this problem? Changing
/etc/locale.gen in qubes-agent-linux.postinst doesn't look like the
cleanest solution... The problem is that users already have system
installed and if selected locale isn't generated, some applications
(notably gnome-terminal) doesn't work at all. So we need some solution
for already installed systems, not only for fresh template installs.
Maybe pulling locales-all package is the way to go?
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
|
@adrelanos what is the best way to fix this problem? Changing Best Regards, |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
adrelanos
Sep 20, 2015
Member
Not sure. This is essentially what @grml -debootstrap does during build.
[ -n "$DEFAULT_LANGUAGE" ] || DEFAULT_LANGUAGE='en_US:en'
[ -n "$DEFAULT_LOCALES" ] || DEFAULT_LOCALES='en_US.UTF-8'
/usr/sbin/update-locale LANGUAGE="$DEFAULT_LANGUAGE" LANG="$DEFAULT_LOCALES"
Does that help, fix it? Do you have instructions on how to force/reproduce this issue? Then I might be able to research how to fix this.
I also think inventing code to write to /etc/locale.gen is too hacky/unstable. If still needed, we could try reusing code from /var/lib/dpkg/info/locales.postinst.
If still it would fix this reliably, I guess installing the locales-all package by making it a dependency would also be an acceptable solution. Not great. (Not most minimal image.) But nevermind.
Edit:
- grml-debootstrap also copies
locale.gento/etc/locale.gen - (The content of
/etc/locale.genisen_US.UTF-8 UTF-8.)
|
Not sure. This is essentially what @grml -debootstrap does during build.
Does that help, fix it? Do you have instructions on how to force/reproduce this issue? Then I might be able to research how to fix this. I also think inventing code to write to If still it would fix this reliably, I guess installing the Edit:
|
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
bnvk
Sep 20, 2015
@marmarek thanks much. Setting the locale solved the issue and I can now run Terminal again.
Regarding @adrelanos question, I'm not sure what caused the issue exactly, but I just opened #1196 as I've been having weird issues updating my debian-8 TemplaceVM for the last week or two and the Terminal / locale issue might be correlated!
bnvk
commented
Sep 20, 2015
|
@marmarek thanks much. Setting the locale solved the issue and I can now run Terminal again. Regarding @adrelanos question, I'm not sure what caused the issue exactly, but I just opened #1196 as I've been having weird issues updating my debian-8 TemplaceVM for the last week or two and the Terminal / locale issue might be correlated! |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Sep 20, 2015
Member
On Sat, Sep 19, 2015 at 09:17:15PM -0700, Patrick Schleizer wrote:
Does that help, fix it?
No, the problem is when the locale is set to value not present in
/etc/locale.gen, it will not be regenerated. And even worse - when
generated manually, it will be removed on next locale-gen run (for
example locales package upgrade.
By default /etc/locale.gen contains only comments.
Do you have instructions on how to force/reproduce this issue? Then I might be able to research how to fix this.
Ensure you have unmodified /etc/locale.gen, then call locale-gen (as
it would be called on locales package upgrade). You'll see that
locale command returns errors now and gnome-terminal isn't working.
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
|
On Sat, Sep 19, 2015 at 09:17:15PM -0700, Patrick Schleizer wrote:
No, the problem is when the locale is set to value not present in
Ensure you have unmodified Best Regards, |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Oct 5, 2015
Member
@adrelanos how should we proceed here? Install locales-all or some better idea?
Does apt-get install the Recommends: packages on dist-upgrade? If not, how this should be done (to not force locales-all in minimal template at the same time)?
|
@adrelanos how should we proceed here? Install |
marmarek
added
bug
C: templates
P: major
C: Debian
labels
Oct 5, 2015
marmarek
added this to the Release 3.1 milestone
Oct 5, 2015
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
adrelanos
Oct 5, 2015
Member
I don't know yet.
Marek Marczykowski-Górecki:
Does apt-get install the
Recommends:packages on dist-upgrade?
Definitively not.
If not, how this should be done (to not force
locales-allin minimal template at the same time)?
There is no great solution to this. As a technical limitation of apt (and others), there is no such thing as a "weak dependency". What you could do is inventing a qubes-recommended-packages meta package, that depends on locales-all. Not great. I would suggest to not care about minimal templates. If it helps, just install locales-all. It's not that big.
|
I don't know yet. Marek Marczykowski-Górecki:
Definitively not.
There is no great solution to this. As a technical limitation of apt (and others), there is no such thing as a "weak dependency". What you could do is inventing a qubes-recommended-packages meta package, that depends on locales-all. Not great. I would suggest to not care about minimal templates. If it helps, just install locales-all. It's not that big. |
desci
referenced this issue
Oct 9, 2015
Closed
debian 8 troubles after 'apt-get upgrade' (R3 rc1) #1033
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
desci
Oct 9, 2015
sudo dpkg-reconfigure locales on the debian-8 template haven't helped, when trying to launch terminal from menu in an AppVM with debian-8 template, it still doesn't show up. Also, once it crashed the Qubes VM Manager.
I'm still right-clicking on the AppVM and running x-terminal-emulator.
PS: I used "pt_BR.UTF-8" as locale.
PS²: I have Qubes 3.0 rc3.
desci
commented
Oct 9, 2015
|
I'm still right-clicking on the AppVM and running PS: I used "pt_BR.UTF-8" as locale. PS²: I have Qubes 3.0 rc3. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
desci
Oct 9, 2015
The fix provided in #1182 (using en_US.UTF-8) seemed to have no effect whatsoever.
Also, adding Xterm and UXterm shortcuts on the menu also won't work.
"Run command in VM" from right-clicking in the AppVM on Qubes VM Manager is the only thing that works, giving the user these options:
x-terminal-emulator
gnome-terminal
xterm
uxterm
debian-7 TemplateVM doesn't seem to be affected, nor its AppVMs.
desci
commented
Oct 9, 2015
|
The fix provided in #1182 (using en_US.UTF-8) seemed to have no effect whatsoever. Also, adding Xterm and UXterm shortcuts on the menu also won't work. "Run command in VM" from right-clicking in the AppVM on Qubes VM Manager is the only thing that works, giving the user these options:
|
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Oct 9, 2015
Member
Try installing updates, similar problem (about missing python-dbus
package) was recently fixed. The locale problem affected only
gnome-terminal, not xterm.
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
|
Try installing updates, similar problem (about missing Best Regards, |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
desci
Oct 12, 2015
The locale problem affected only gnome-terminal, not xterm.
As I stated, my AppVMs relying on debian-8 TemplateVM won't start anything from the KDE menu.
Also, I can no longer use commands like "attach/detach audio/bloc device" from within the Qubes VM Manager on those AppVMs.
They're only usable when I "run command in VM" and x-terminal-emulator.
I am forced to use debian-7 for all my non Fedora work (Mumble, for instance).
desci
commented
Oct 12, 2015
As I stated, my AppVMs relying on Also, I can no longer use commands like "attach/detach audio/bloc device" from within the Qubes VM Manager on those AppVMs. They're only usable when I "run command in VM" and I am forced to use |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
desci
Oct 13, 2015
Just backed up everything, installed R3 and restored backup.
AppVM previously relying on debian-7 TemplateVM was assigned to debian-8 TemplateVM and seems to be working.
Not sure how people who had installed R3 rc3 will deal with this, though.
desci
commented
Oct 13, 2015
|
Just backed up everything, installed R3 and restored backup. AppVM previously relying on Not sure how people who had installed R3 rc3 will deal with this, though. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
adrelanos
Oct 21, 2015
Member
It seems "just install locales-all" is the "easy, magic fix" here, no? I think that is much better than troubling more with config file edit by scripts and manual locale generation.
My suggestion is:
- remove all the custom code
- install
locales-all - minimal templates complaints (I doubt that) -> patches welcome
One day, for multiple languages support, we'd need this anyhow, no?
|
It seems "just install My suggestion is:
One day, for multiple languages support, we'd need this anyhow, no? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Oct 21, 2015
Member
On Wed, Oct 21, 2015 at 09:18:07AM -0700, Patrick Schleizer wrote:
- install
locales-all
Ok, so it should go to Depends:, right?
One day, for multiple languages support, we'd need this anyhow, no?
Yes, probably.
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
|
On Wed, Oct 21, 2015 at 09:18:07AM -0700, Patrick Schleizer wrote:
Ok, so it should go to
Yes, probably. Best Regards, |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
adrelanos
Oct 21, 2015
Member
Marek Marczykowski-Górecki:
On Wed, Oct 21, 2015 at 09:18:07AM -0700, Patrick Schleizer wrote:
- install
locales-allOk, so it should go to
Depends:, right?
Yes.
(I see no other way to install it / fix it on existing systems.)
|
Marek Marczykowski-Górecki:
Yes. (I see no other way to install it / fix it on existing systems.) |
marmarek
closed this
in
QubesOS/qubes-core-agent-linux@9d52b7d
Oct 30, 2015
added a commit
to QubesOS/qubes-core-agent-linux
that referenced
this issue
Oct 30, 2015
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Oct 30, 2015
Member
Automated announcement from builder-github
The package qubes-core-vm-3.0.19-1.fc20 has been pushed to the r3.0 testing repository for the Fedora fc20 template.
To test this update, please install it with the following command:
sudo yum update --enablerepo=qubes-vm-r3.0-current-testing
|
Automated announcement from builder-github The package
|
marmarek
added
the
r3.0-fc20-testing
label
Oct 30, 2015
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Oct 30, 2015
Member
Automated announcement from builder-github
The package qubes-core-vm-3.0.19-1.fc21 has been pushed to the r3.0 testing repository for the Fedora fc21 template.
To test this update, please install it with the following command:
sudo yum update --enablerepo=qubes-vm-r3.0-current-testing
|
Automated announcement from builder-github The package
|
marmarek
added
the
r3.0-fc21-testing
label
Oct 30, 2015
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Nov 1, 2015
Member
Automated announcement from builder-github
The package qubes-core-agent_3.0.19-1+deb8u1 has been pushed to the r3.0 testing repository for the Debian jessie template.
To test this update, first enable the testing repository in /etc/apt/sources.list.d/qubes-*.list by uncommenting the line containing jessie-testing, then use the standard update command:
sudo apt-get update && sudo apt-get dist-upgrade
|
Automated announcement from builder-github The package
|
marmarek
added
the
r3.0-jessie-testing
label
Nov 1, 2015
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Nov 1, 2015
Member
Automated announcement from builder-github
The package qubes-core-agent_3.0.19-1+deb7u1 has been pushed to the r3.0 testing repository for the Debian wheezy template.
To test this update, first enable the testing repository in /etc/apt/sources.list.d/qubes-*.list by uncommenting the line containing wheezy-testing, then use the standard update command:
sudo apt-get update && sudo apt-get dist-upgrade
|
Automated announcement from builder-github The package
|
marmarek
added
the
r3.0-wheezy-testing
label
Nov 1, 2015
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
adrelanos
Nov 2, 2015
Member
The sudo apt-get install locales-all approach has worked for another existing user. (https://www.whonix.org/forum/index.php/topic,1855.0.html) I think the above commit is a good solution.
|
The |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Nov 12, 2015
Member
Automated announcement from builder-github
The package qubes-core-vm-3.0.19-1.fc20 has been pushed to the r3.0 stable repository for the Fedora fc20 template.
To install this update, please use the standard update command:
sudo yum update
|
Automated announcement from builder-github The package
|
marmarek
added
r3.0-fc20-stable
and removed
r3.0-fc20-testing
labels
Nov 12, 2015
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Nov 12, 2015
Member
Automated announcement from builder-github
The package qubes-core-vm-3.0.19-1.fc21 has been pushed to the r3.0 stable repository for the Fedora fc21 template.
To install this update, please use the standard update command:
sudo yum update
|
Automated announcement from builder-github The package
|
marmarek
added
r3.0-fc21-stable
and removed
r3.0-fc21-testing
labels
Nov 12, 2015
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Nov 12, 2015
Member
Automated announcement from builder-github
The package qubes-core-agent_3.0.19-1+deb8u1 has been pushed to the r3.0 stable repository for the Debian jessie template.
To install this update, please use the standard update command:
sudo apt-get update && sudo apt-get dist-upgrade
|
Automated announcement from builder-github The package
|
marmarek
added
r3.0-jessie-stable
and removed
r3.0-jessie-testing
labels
Nov 12, 2015
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Nov 12, 2015
Member
Automated announcement from builder-github
The package qubes-core-agent_3.0.19-1+deb7u1 has been pushed to the r3.0 stable repository for the Debian wheezy template.
To install this update, please use the standard update command:
sudo apt-get update && sudo apt-get dist-upgrade
|
Automated announcement from builder-github The package
|
marmarek
added
r3.0-wheezy-stable
and removed
r3.0-wheezy-testing
labels
Nov 12, 2015
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
v6ak
Nov 13, 2015
Because I have a VM with 1GiB root filesystem, adding locales-all was a space issue for me. So I have created following exclusion file:
https://gist.github.com/v6ak/b3cfbb9de5101d5393fd
Reinstall of some packages is needed after adding the file to /etc/dpkg/dpkg.cfg.d/ .
v6ak
commented
Nov 13, 2015
|
Because I have a VM with 1GiB root filesystem, adding locales-all was a space issue for me. So I have created following exclusion file: Reinstall of some packages is needed after adding the file to /etc/dpkg/dpkg.cfg.d/ . |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
I didn't know about the |
bnvk commentedSep 19, 2015
I'm not really sure what happened, but as of early this week, after running normal Debian package update, the terminal app will no longer launch in either the
debian-8TemplateVM or any of my AppVMs based on this template. Launching terminal looks like it is going to start up, but after the icon bounces up and down for a few moments it then disappears and never launches.However, running Chromium from my AppVMs based on my debian-8 template still seems to run.