EnvironmentNotWritableError

I was attempting to upgrade by install:

==> WARNING: A newer version of conda exists. <==
current version: 22.11.1
latest version: 23.3.1
Please update conda by running
$ conda update -n base -c defaults conda
Or to minimize the number of packages updated during conda update use

 conda install conda=23.3.1

Collecting package metadata (current_repodata.json): done
Solving environment: done

Package Plan

environment location: /opt/conda/envs/anaconda-2022.05-py39

added / updated specs:
- conda=23.3.1

The following NEW packages will be INSTALLED:

boltons pkgs/main/linux-64::boltons-23.0.0-py39h06a4308_0
jsonpatch pkgs/main/noarch::jsonpatch-1.32-pyhd3eb1b0_0
jsonpointer pkgs/main/noarch::jsonpointer-2.1-pyhd3eb1b0_0

The following packages will be UPDATED:

conda 22.11.1-py39h06a4308_3 → 23.3.1-py39h06a4308_0

Downloading and Extracting Packages

Preparing transaction: done
Verifying transaction: failed

EnvironmentNotWritableError: The current user does not have write permissions to the target environment.
environment location: /opt/conda/envs/anaconda-2022.05-py39
uid: 256313
gid: 60000

I can run as Administrator in Anaconda Prompt by right-clicking Anaconda Prompt in Windows, but I haven’t been able to ascertain how to run as Administrator in Notebooks.

We are happy to help, the problem that you are experiencing is due to an error in the configuration, let’s try this and see if that fixes your problem:

jupyter lab --notebook-dir=‘/home’ --preferred-dir=‘/home/USERNAME’

Please let us know if that worked for you.