Scratch hasn't worked for the last two months, I can't edit files:

  • Thanks for correction. I'm new here :) i'll improve my next questions!
    – alonsocn
    Commented Jul 4, 2015 at 21:43
  • 3
    Can you supply some more information? Which part of the process fails? Can you open files? Is it saving that's the problem? Is it a file you own or a system file? Is there any output when you run scratch from Terminal? Commented Jul 5, 2015 at 1:31
  • @DanielForé Scratch works fine when I open an existing file, but the problem is only when I try write a new file (click on "+" button)
    – alonsocn
    Commented Jul 6, 2015 at 22:19
  • 1
    @DanielForé I reported a rather similar bug some days ago: bugs.launchpad.net/scratch/+bug/1471053. I use the terminal to attempt to generate a new file in Scratch and I get the same empty window as a result. See bug entry for more details.
    – Gabriel
    Commented Jul 7, 2015 at 18:55
  • Fixed. Solution in other thread [link][1] [1]: elementaryos.stackexchange.com/questions/1241/…
    – alonsocn
    Commented Aug 14, 2015 at 1:56

3 Answers 3


You can reinstall apps / packages with apt-get with the following command:

sudo apt-get install --reinstall scratch-text-editor
  • Doesn't work yet :( screenshot
    – alonsocn
    Commented Jul 4, 2015 at 21:36
  • @AlonsoCN that's working I think... Click the folder icon.
    – user3
    Commented Jul 4, 2015 at 21:39

As it isn't working currently, a reinstall might not fix it.

To remove all config files (so Scratch settings and last opened files will be gone) as well, use these commands:

sudo apt-get remove --purge scratch-text-editor
sudo apt-get install scratch-text-editor
  • 1
    I think it should be scratch-text-editor, possible typo.
    – Suraj
    Commented Jul 5, 2015 at 4:53
  • I'm sorry, but --purge flag doesn't work. I still can't write a new file with Scratch :(
    – alonsocn
    Commented Jul 6, 2015 at 22:31

Open terminal and run:

sudo apt-get install --reinstall pantheon-files

It will solve your problem

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.