skip to Main Content

I’m current trying to use the Apc Customize UI++ extension on VS Code. Using on Windows It worked perfectly, but on Ubuntu i faced this error:

Apc Extension failed: Error: EROFS: read-only file system, rename ‘/snap/code/151/usr/share/code/resources/app/out/bootstrap-amd.js’ -> ‘/snap/code/151/usr/share/code/resources/app/out/bootstrap-amd.js.apc.extension.backup’

Screenshot of the error message

Could someone save me?

Sorry about bad english, it’s not my primary language…

I’ve tried to Google it so far, but found no response. Looks like nobody uses this extension on Ubuntu.

2

Answers


  1. I had the same error, but running this command resolved it

    sudo chown -R $USER:$USER /usr/share/code
    

    This is a link to the github issue

    Login or Signup to reply.
  2. This error message indicates that the extension is trying to make changes to some file inside the VSCode package. VSCode is installed using snap on your system, and snap packages are immutable, so such a change can not be made.

    The easiest way to solve it is to install VSCode using a deb package. To do this, follow the instructions on this page: Running Visual Studio Code on Linux (specifically, "Debian and Ubuntu based distributions" section).

    Alternatively, you can just download .tar.gz distribution of VSCode, this kind of package doesn’t require installation and would work if you unpack it and launch code executable. The benefit of this is that all the files would be owned by the user that unpacks the package, meaning that this extension shouldn’t have any problems modifying such VSCode installation if the executable is launched by the same user.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search