I have this bug as well.  What happens is in utils.py, an os.rename call
is made which tries to overwrite a temporarily modified home profile
that is in /tmp over the actual .profile in your home directory.  It
fails with "Invalid cross-device link".

Did an strace on it all and saw a rename system call die with "-1 EXDEV
(Invalid cross-device link)".  The rename system call does not work
across file-systems, and it failed.

There are numerous ways to fix this, and I don't know all the details
about what this package needs and why it might not to use shutil.move.
Nonetheless, the current way obviously does not work for a lot of
people, including myself.  As I just want this to work on my system I
have created a patch, and now it is working for me.  The package
maintainer can use my patch or do something else if they know more what
is needed for a broader audience.  It is working now for me though with
my patch.

** Patch added: "Hacked patch prevents crash"
   
https://bugs.launchpad.net/ubuntu/+source/language-selector/+bug/605128/+attachment/1510009/+files/utils.py.diff

-- 
gnome-language-selector crashed with OSError in find_string_and_replace()
https://bugs.launchpad.net/bugs/605128
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to