apt-get upgrade breaks Sugar on Toast

Project:Trisquel Edu
Version:2.1-i386
Component:Sugar
Category:bug report
Priority:normal
Assigned:Unassigned
Status:wrong
Description

Hi. I was running Sugar / Toast (I THINK it's 2.1-i386) and tried to add Measure Activity. No luck. So I tried apt-get upgrade and now I get Your session only lasted 10 seconds... and it brings me to a login screen.

I browsed through /var/log/syslog think I tracked the problem to:

Error attempting to open [/home/trisquel/.ecryptfs/wrapped-passphrase] for reading
Error attempting to unwrap passphrase from file [/home/trisquel/.ecryptfs/wrapped-passphrase]; rc = [-5]
Error adding passphrase key token to user session keyring; rc = [-5]

This may tell you what version I was running:

Linux version 2.6.28-15-generic (name at domain) (gcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu4) ) #49trisquel1 SMP Wed Sep 9 18:33:06 UTC 2009 (Trisquel 2.6.28-15.49trisquel1-generic)

Sat, 12/26/2009 - 00:13

I just did another "apt-get dist-upgrade" today. No change.

Thu, 12/31/2009 - 01:19
Status:active» can't reproduce

I was unable to reproduce the error. I never tried the (non-standard) home directory encryption, and it looks like the most probable cause for your error.

How did you install your system with ecryptfs?
Can you try to create a new user with non encrypted home?

Thu, 12/31/2009 - 06:56

I have no idea why it is encrypted. I followed the instructions at:

http://wiki.sugarlabs.org/go/Trisquel_On_A_Sugar_Toast

I did not choose encryption at any point in the process. It just happened. I have never used an encrypted file system on any of my Linux systems.

Based on your reply, it appears that is something I can prevent. Therefore, I will try again from the beginning.

Thu, 12/31/2009 - 23:00

i believe i understand the problem, though my attempts to fix it were unsuccessful. the problem is in python. (the solution is probably in a newer version of sugar.)

i run sugar ok in trisquel edu 2.x, but not in 3.x. in trisquel 3.0, there is a message that md5 and sha are deprecated in python, and that certain python scripts that run in sugar are exiting- this prevents sugar from running.

i tried to change the scripts to import hashlib instead of md5 and sha, and call hashlib instead, but this alone will not fix the scripts. i mean, i didn't think it would be that easy (i've never used hashlib, it's probably not so easily interchangeable) i just thought i'd try it to see if it was that easy.

obviously the version of sugar needs to be fixed, and this should be reported to sugar labs. if it is already fixed, the solution (for trisquel devs) is to upgrade to the latest version of sugar. i hope this will happen soon, i think sugar is a great project and the teaming of trisquel with sugar is the reason i found your excellent distro in the first place. it's a team that should play another round.

(for a simpler fix, perhaps there is a switch to get python to use deprecated libs. i don't know.) by the way, i feel certain this has nothing to do with encrypted volumes- it's about authentication- permissions and that sort of thing- and x locking- basic gnu/linux features.

Wed, 01/06/2010 - 14:31

Thanks. I will pass the info to the Sugar developers.

Wed, 01/06/2010 - 21:54
Status:can't reproduce» wrong

I completely misdiagnosed the trouble.

My fault: I should have looked at ~/.sugar/default/logs/shell.log sooner.

I had previously uncommented the TriangleLayout in favoritesview.py. The, in my Favorites view I selected the triangle as my preferred view.

When I did an apt-get upgrade (or maybe a dist-upgrade, I forget), it overwrote the favoritesview.py file. Sugar tried to find a triangle layout and could not because it was commented out in the newer version.

(I also replaced the computer-xo icon with my-icon in myicon.py and had to reset that again after the upgrade as well.)

Sorry for the confusion.