Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating anaconda fails #1979

Closed
armaneshaghi opened this issue Jan 21, 2016 · 4 comments
Closed

Updating anaconda fails #1979

armaneshaghi opened this issue Jan 21, 2016 · 4 comments
Labels
locked [bot] locked due to inactivity

Comments

@armaneshaghi
Copy link

Trying to update anaconda:
bash$ conda update anaconda

Fetching package metadata: SSL verification error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)
SSL verification error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)
SSL verification error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)
SSL verification error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)
......
Solving package specifications: .An unexpected error has occurred, please consider sending the
following traceback to the conda GitHub issue tracker at:

    https://github.com/conda/conda/issues

Include the output of the command 'conda info' in your report.

$bash conda info

Current conda install:

             platform : linux-64
        conda version : 3.16.0
  conda-build version : 1.11.0
       python version : 2.7.10.final.0
     requests version : 2.7.0
     root environment : /home/arman/anaconda  (writable)
  default environment : /home/arman/anaconda
     envs directories : /home/arman/anaconda/envs
        package cache : /home/arman/anaconda/pkgs
         channel URLs : https://conda.binstar.org/gurobi/linux-64/
                        https://conda.binstar.org/gurobi/noarch/
                        https://repo.continuum.io/pkgs/free/linux-64/
                        https://repo.continuum.io/pkgs/free/noarch/
                        https://repo.continuum.io/pkgs/pro/linux-64/
                        https://repo.continuum.io/pkgs/pro/noarch/
          config file : /home/arman/.condarc
    is foreign system : False

Traceback (most recent call last):
  File "/home/arman/anaconda/bin/conda", line 5, in <module>
    sys.exit(main())
  File "/home/arman/anaconda/lib/python2.7/site-packages/conda/cli/main.py", line 194, in main
    args_func(args, p)
  File "/home/arman/anaconda/lib/python2.7/site-packages/conda/cli/main.py", line 201, in args_func
    args.func(args, p)
  File "/home/arman/anaconda/lib/python2.7/site-packages/conda/cli/main_update.py", line 38, in execute
    install.install(args, parser, 'update')
  File "/home/arman/anaconda/lib/python2.7/site-packages/conda/cli/install.py", line 337, in install
    minimal_hint=args.alt_hint)
  File "/home/arman/anaconda/lib/python2.7/site-packages/conda/plan.py", line 402, in install_actions
    config.track_features, minimal_hint=minimal_hint):
  File "/home/arman/anaconda/lib/python2.7/site-packages/conda/resolve.py", line 738, in solve
    minimal_hint=minimal_hint)
  File "/home/arman/anaconda/lib/python2.7/site-packages/conda/resolve.py", line 483, in solve2
    clauses = set(self.gen_clauses(v, dists, specs, features))
  File "/home/arman/anaconda/lib/python2.7/site-packages/conda/resolve.py", line 341, in gen_clauses
    assert len(clause) > 1, '%s %r' % (fn1, ms)
AssertionError: matplotlib-1.5.0-np110py27_0.tar.bz2 MatchSpec(u'py2cairo')
@msarahan
Copy link
Contributor

Your conda version is very out of date. Please run

conda update conda

then try again.

@armaneshaghi
Copy link
Author

Thank you. This is what happens:
bash$ conda update conda

Fetching package metadata: SSL verification error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)
SSL verification error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)
SSL verification error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)
SSL verification error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)
......
Solving package specifications: .
Package plan for installation in environment /home/arman/anaconda:

The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    conda-env-2.4.5            |           py27_0          24 KB
    requests-2.9.0             |           py27_0         604 KB
    conda-3.19.0               |           py27_0         176 KB
    ------------------------------------------------------------
                                           Total:         805 KB

The following packages will be UPDATED:

    conda:      3.16.0-py27_0 --> 3.19.0-py27_0
    conda-env:  2.4.1-py27_0  --> 2.4.5-py27_0 
    openssl:    1.0.1k-1      --> 1.0.2d-0     
    pip:        7.1.0-py27_1  --> 7.1.2-py27_0 
    python:     2.7.10-0      --> 2.7.11-0     
    requests:   2.7.0-py27_0  --> 2.9.0-py27_0 
    setuptools: 18.1-py27_0   --> 19.1.1-py27_0
    wheel:      0.24.0-py27_0 --> 0.26.0-py27_1

Proceed ([y]/n)? y

Fetching packages ...
Could not connect to https://repo.continuum.io/pkgs/free/linux-64/conda-env-2.4.5-py27_0.tar.bz2
Error: Connection error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590): https://repo.continuum.io/pkgs/free/linux-64/conda-env-2.4.5-py27_0.tar.bz2

@armaneshaghi
Copy link
Author

The response to this issue is

conda config --set ssl_verify false
conda update requests
conda config --set ssl_verify true

@github-actions
Copy link

Hi there, thank you for your contribution to Conda!

This issue has been automatically locked since it has not had recent activity after it was closed.

Please open a new issue if needed.

@github-actions github-actions bot added the locked [bot] locked due to inactivity label Nov 26, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
locked [bot] locked due to inactivity
Projects
None yet
Development

No branches or pull requests

2 participants