Cannot login (login screen loop) after some packages are installed

  • Open
  • quality assurance status badge
Details
3 participants
  • David Lecompte
  • Nikos Parafestas
  • Ricardo Wurmus
Owner
unassigned
Submitted by
Nikos Parafestas
Severity
normal
N
N
Nikos Parafestas wrote on 15 Oct 2021 06:23
(address . bug-guix@gnu.org)
7f61d6c5801d2093369b23a7423539066aef9840.camel@posteo.net
I have succesfully installed guix in trisquel 9 (mate).

I have installed some packages and everything is working as expected.

$ guix package --list-installed
dino 0.2.1 out /gnu/store/nlprjzilka7i79fwwjbxxagwjzx5
6z4s-dino-0.2.1
fontconfig 2.13.1 out /gnu/store/k6zs6zabhfybh6aphc4988wc2fsy
k5hh-fontconfig-2.13.1
font-liberation 2.1.4 out /gnu/store/qw087yajzsq8mjvq3nkxr3grmp3k
zcja-font-liberation-2.1.4
font-dejavu 2.37 out /gnu/store/7y3lvk3xf4im8n44337mc6y0ccys
vfia-font-dejavu-2.37
glibc-locales 2.31 out /gnu/store/wnw0nwlyg92vv33f5f65jj1rd3p4
fi3c-glibc-locales-2.31

But when I install gnucash, or cawbird and reboot the system doesn't
autologin and stays at login screen. Inserting the password is just
getting me back to the login screen.

To log in back again I do guix package --roll-back and then reboot.

The only error I have after that is that my panel notification applet
crashes (reloading works fine).
R
R
Ricardo Wurmus wrote on 13 Feb 2022 09:38
(address . 51224@debbugs.gnu.org)(address . help-guix@gnu.org)
87ee47rw83.fsf@elephly.net
Hi Nikos,

my apologies for the long delay. You may have better luck on
help-guix@gnu.org; bug-guix@gnu.org is usually for bugs which can be
reproduced by others.

Toggle quote (3 lines)
> I have succesfully installed guix in trisquel 9 (mate).
>
> I have installed some packages and everything is working as expected.
[…]
Toggle quote (4 lines)
> But when I install gnucash, or cawbird and reboot the system doesn't
> autologin and stays at login screen. Inserting the password is just
> getting me back to the login screen.

I don’t know what the problem is, but I suspect that trisquel is unhappy
with environment variables that Guix has set. Guix defines variables
based on the contents of your profile at ~/.guix-profile/etc/profile.
In your shell initialization you probably load them; e.g. with this
snippet in ~/.bash_profile:

GUIX_PROFILE=$HOME/.guix-profile
source $GUIX_PROFILE/etc/profile

When you comment this Guix will not set any variables, so it has no way
of affecting your environment at all. Can you log in after removing
these lines? (You can evaluate these lines after logging in.)

If so, we should try to figure out which of these variables is
responsible. Could you please show the contents of that etc/profile
file? A common suspect is one of the XDG_* variables.

Hope that helps!

--
Ricardo
D
D
David Lecompte wrote on 13 Feb 2022 14:54
(address . help-guix@gnu.org)
f4886fa36a82214bd079669919609776fdfb6ae0.camel@metani.info
Le dimanche 13 février 2022 à 09:38 +0100, Ricardo Wurmus a écrit :
Toggle quote (33 lines)
> Hi Nikos,
>
> > I have succesfully installed guix in trisquel 9 (mate).
> >
> > I have installed some packages and everything is working as
> > expected.
> […]
> > But when I install gnucash, or cawbird and reboot the system
> > doesn't
> > autologin and stays at login screen. Inserting the password is just
> > getting me back to the login screen.
>
> I don’t know what the problem is, but I suspect that trisquel is
> unhappy
> with environment variables that Guix has set.  Guix defines variables
> based on the contents of your profile at ~/.guix-profile/etc/profile.
> In your shell initialization you probably load them; e.g. with this
> snippet in ~/.bash_profile:
>
>     GUIX_PROFILE=$HOME/.guix-profile
>     source $GUIX_PROFILE/etc/profile
>
> When you comment this Guix will not set any variables, so it has no
> way
> of affecting your environment at all.  Can you log in after removing
> these lines?  (You can evaluate these lines after logging in.)
>
> If so, we should try to figure out which of these variables is
> responsible.  Could you please show the contents of that etc/profile
> file?  A common suspect is one of the XDG_* variables.
>
> Hope that helps!
>
Try adding the following line to your ~/.profile
export
XDG_DATA_DIRS="/usr/local/share:/usr/share/${XDG_DATA_DIRS:+:}$XDG_DATA
_DIRS"
This solution, brought by Adfeno, worked for me. This is the only
problem I had with Guix on Trisquel so far.
David.
Attachment: signature.asc
?