Conda update anaconda

When spyder starts up, and there is a new version available, it says to run conda update anaconda before updating spyder itself. But this gives me a PackageNotInstalledError.
After looking through my file directory, I see an anaconda in /home/anaconda3/bin.
When I conda update --prefix /home/erik/anaconda3/bin anaconda I get DirectoryNotACondaEnvironmentError.

When I conda update --prefix /home/anaconda3 anaconda I get EnvironmentLocationNotFound: Not a conda environment: /home/anaconda3.
I have a few virtual environments, plus the base environment.
conda list from the base environment shows anaconda-client and anaconda-navigator, but no plain anaconda or anaconda3.
conda update --all works fine.
conda update *any other installed package* works fine too.
Is the message in the spyder pop-up just misleading then?

The error message ‘DirectoryNotACondaEnvrionmentError’ is correct in this case.
The directory ‘/home/erik/anaconda3/bin’ is just where the ananconda executable lives.

You can type the command:
conda env list

to list all available conda environments.

The conda environments themselves will be located in the directory ‘/home/anaconda3/envs’ on your system.

I hope this helps.

On my windows machine, conda update anaconda works just fine. How come it doesn’t on my linux machine? I wonder what the difference is. -Erik

Can you attach the output from running the ‘conda update ananconda’ command below on your linux machine?
What version of conda are you running?

You can determine that by typing:
conda info

(base) erik@pop-os:~$ conda info

     active environment : base
    active env location : /home/erik/anaconda3
            shell level : 1
       user config file : /home/erik/.condarc
 populated config files : /home/erik/.condarc
          conda version : 22.9.0
    conda-build version : 3.21.4
         python version : 3.8.13.final.0
       virtual packages : __linux=5.19.16=0
                          __glibc=2.35=0
                          __unix=0=0
                          __archspec=1=x86_64
       base environment : /home/erik/anaconda3  (writable)
      conda av data dir : /home/erik/anaconda3/etc/conda
  conda av metadata url : None
           channel URLs : https://repo.anaconda.com/pkgs/main/linux-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/linux-64
                          https://repo.anaconda.com/pkgs/r/noarch
          package cache : /home/erik/anaconda3/pkgs
                          /home/erik/.conda/pkgs
       envs directories : /home/erik/anaconda3/envs
                          /home/erik/.conda/envs
               platform : linux-64
             user-agent : conda/22.9.0 requests/2.28.1 CPython/3.8.13 Linux/5.19.16-76051916-generic pop/22.04 glibc/2.35
                UID:GID : 1000:1000
             netrc file : None
           offline mode : False

and the output of conda update anaconda is

(base) erik@pop-os:~$ conda info

     active environment : base
    active env location : /home/erik/anaconda3
            shell level : 1
       user config file : /home/erik/.condarc
 populated config files : /home/erik/.condarc
          conda version : 22.9.0
    conda-build version : 3.21.4
         python version : 3.8.13.final.0
       virtual packages : __linux=5.19.16=0
                          __glibc=2.35=0
                          __unix=0=0
                          __archspec=1=x86_64
       base environment : /home/erik/anaconda3  (writable)
      conda av data dir : /home/erik/anaconda3/etc/conda
  conda av metadata url : None
           channel URLs : https://repo.anaconda.com/pkgs/main/linux-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/linux-64
                          https://repo.anaconda.com/pkgs/r/noarch
          package cache : /home/erik/anaconda3/pkgs
                          /home/erik/.conda/pkgs
       envs directories : /home/erik/anaconda3/envs
                          /home/erik/.conda/envs
               platform : linux-64
             user-agent : conda/22.9.0 requests/2.28.1 CPython/3.8.13 Linux/5.19.16-76051916-generic pop/22.04 glibc/2.35
                UID:GID : 1000:1000
             netrc file : None
           offline mode : False

whether or not I have my base environment activated.

What is the architecture of your version of Linux?
Are you running on linux-64 or linux-32(32-bit)?

If you are running on linux-32, there won’t be any anaconda package to update, as it hasn’t been updated in awhile…

Woops, I didn’t actually post the output of conda update anaconda:

(kivyenv) erik@pop-os:~/GitRepos/KivyPractice/gridandlabel$ conda update anaconda

PackageNotInstalledError: Package is not installed in prefix.
  prefix: /home/erik/anaconda3/envs/kivyenv
  package name: anaconda

And yes, I’m on 64 bit linux, which I think can be inferred from conda info, above.

I have the same issue with latest Version of Anaconda for Windows fresh instralled today:

conda update anaconda

PackageNotInstalledError: Package is not installed in prefix.
  prefix: C:\Users\schne\AppData\Local\anaconda3
  package name: anaconda

conda info

     active environment : base
    active env location : C:\Users\schne\AppData\Local\anaconda3
            shell level : 1
       user config file : C:\Users\schne\.condarc
populated config files : C:\Users\schne\.condarc
          conda version : 24.3.0
    conda-build version : 24.1.2
         python version : 3.11.7.final.0
                 solver : libmamba (default)
       virtual packages : __archspec=1=skylake
                          __conda=24.3.0=0
                          __cuda=12.2=0
                          __win=0=0
       base environment : C:\Users\schne\AppData\Local\anaconda3  (writable)
      conda av data dir : C:\Users\schne\AppData\Local\anaconda3\etc\conda
  conda av metadata url : None
           channel URLs : https://conda.anaconda.org/microsoft/win-64
                          https://conda.anaconda.org/microsoft/noarch
                          https://conda.anaconda.org/conda-forge/win-64
                          https://conda.anaconda.org/conda-forge/noarch
                          https://repo.anaconda.com/pkgs/main/win-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/win-64
                          https://repo.anaconda.com/pkgs/r/noarch
                          https://repo.anaconda.com/pkgs/msys2/win-64
                          https://repo.anaconda.com/pkgs/msys2/noarch
          package cache : C:\Users\schne\AppData\Local\anaconda3\pkgs
                          C:\Users\schne\.conda\pkgs
                          C:\Users\schne\AppData\Local\conda\conda\pkgs
       envs directories : C:\Users\schne\AppData\Local\anaconda3\envs
                          C:\Users\schne\.conda\envs
                          C:\Users\schne\AppData\Local\conda\conda\envs
               platform : win-64
             user-agent : conda/24.3.0 requests/2.31.0 CPython/3.11.7 Windows/10 Windows/10.0.19045 solver/libmamba conda-libmamba-solver/24.1.0 libmambapy/1.5.6 aau/0.4.3 c/eL4GtcbnLQIUYnRCg8ncxw s/iYGTaq7GMAmK5X-Wc78GKQ e/ZQJaLM2q4bt9-ysEd5Bhqw
          administrator : False
             netrc file : None
           offline mode : False

Any idea how to fix it?

I have the same issue with Anaconda 2024.02-1 for Windows x86_64 fresh instralled today:

conda update anaconda

PackageNotInstalledError: Package is not installed in prefix.
  prefix: C:\Users\Oleg\anaconda3
  package name: anaconda

conda info


     active environment : base
    active env location : C:\Users\Oleg\anaconda3
            shell level : 1
       user config file : C:\Users\Oleg\.condarc
 populated config files : C:\Users\Oleg\.condarc
          conda version : 24.3.0
    conda-build version : 24.1.2
         python version : 3.11.7.final.0
                 solver : libmamba (default)
       virtual packages : __archspec=1=haswell
                          __conda=24.3.0=0
                          __cuda=9.1=0
                          __win=0=0
       base environment : C:\Users\Oleg\anaconda3  (writable)
      conda av data dir : C:\Users\Oleg\anaconda3\etc\conda
  conda av metadata url : None
           channel URLs : https://repo.anaconda.com/pkgs/main/win-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/win-64
                          https://repo.anaconda.com/pkgs/r/noarch
                          https://repo.anaconda.com/pkgs/msys2/win-64
                          https://repo.anaconda.com/pkgs/msys2/noarch
          package cache : C:\Users\Oleg\anaconda3\pkgs
                          C:\Users\Oleg\.conda\pkgs
                          C:\Users\Oleg\AppData\Local\conda\conda\pkgs
       envs directories : C:\Users\Oleg\anaconda3\envs
                          C:\Users\Oleg\.conda\envs
                          C:\Users\Oleg\AppData\Local\conda\conda\envs
               platform : win-64
             user-agent : conda/24.3.0 requests/2.31.0 CPython/3.11.7 Windows/10 Windows/10.0.19045 solver/libmamba conda-libmamba-solver/24.1.0 libmambapy/1.5.6 aau/0.4.3 c/QtcbgipokN472ozzlimtTg s/Tu0xYmsVOo3keNisfN0ZyA e/PtYPIZoYjZDJFmDxI89PMg
          administrator : False
             netrc file : None
           offline mode : False