LoginSignup
1
0

More than 3 years have passed since last update.

ChromebookのLinuxでgit initすると”Operation not permitted”とエラーメッセージが表示された場合

Posted at

ChromebookのターミナルでLinux(Debian10.9)を使っているが、あるフォルダをgithubで管理しようとした際に、手間取ったことがあった。

ChromebookのLinuxでは、Chromebook側のディレクトリを共有フォルダにすることができ、/mnt/chromeosからアクセスできる。

この/mnt/chromeos以下にあるディレクトリをgitで管理しようとコマンドgit initを実行すると下記のエラーメッセージが表示された。

error: chmod on /mnt/chromeos/xxx/xxx/xxx/.git/config.lock failed: Operation not permitted
fatal: could not set 'core.repositoryformatversion' to '0'

どうやら、Chromebook側のディレクトリをLinuxからgitで使うことはできないようだ。

当該ディレクトリをLinux側に移動させてから改めてgit initすると、問題なく実行できた。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0