14
8

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

ubuntuでconda installしようとするとNotWritableErrorが出る

Last updated at Posted at 2020-01-05

UbuntuにAnacondaをインストール後、conda install updateとかをしても以下のようなエラーが出た。

Collecting package metadata (current_repodata.json): failed

NotWritableError: The current user does not have write permissions to a required path.
  path: /home/user_name/.conda/pkgs/urls.txt
  uid: 1000
  gid: 1000

If you feel that permissions on this path are set incorrectly, you can manually
change them by executing

  $ sudo chown 1000:1000 /home/user_name/.conda/pkgs/urls.txt

In general, it's not advisable to use 'sudo conda'.

/home/user_name/.conda/pkgs/urls.txtのアクセス権を与えてやればいいと思ったがそもそもこのパスが存在しなかった。

解決法

/home/user_name/anaconda3のアクセス権を付与すればよかった。

sudo chown -R user_name /home/user_name/anaconda3

この後conda install updateとかが正常にできるようになった。

14
8
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
14
8

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?