在 Ubuntu 16.04 上安装 anaconda3

在 Ubuntu 16.04 上安装 anaconda3

这些是我的服务器详细信息:

Distributor ID: Ubuntu
Description:    Ubuntu 16.04.6 LTS
Release:    16.04
Codename:   xenial

我正在尝试使用安装 condaanaconda 在 linux 上安装步骤

目前我没有遇到任何问题,但是,当我最终打电话conda list检查它是否正常工作时,我遇到了以下问题:

WARNING:root:could not open file '/etc/apt/sources.list'

conda: command not found

我尝试了步骤(如何解决错误:警告:root:无法打开文件“/etc/apt/sources.list”)。它没有任何帮助。它显示了更多错误:

WARNING:root:could not open file '/etc/apt/sources.list'

WARNING:root:could not open file '/etc/apt/sources.list.d/cuda-10-1-local-10.1.168-418.67.list'

WARNING:root:could not open file '/etc/apt/sources.list.d/ubuntu-toolchain-r-ubuntu-test-xenial.list'

WARNING:root:could not open file '/etc/apt/sources.list.d/bazel.list'

WARNING:root:could not open file '/etc/apt/sources.list.d/cuda.list'

WARNING:root:could not open file '/etc/apt/sources.list.d/graphics-drivers-ubuntu-ppa-xenial.list'

conda: command not found

如果我跑ls -la /etc/apt/sources.list.d/

以下问号来了:

ls: cannot access '/etc/apt/sources.list.d/cuda-10-1-local-10.1.168-418.67.list.save': Permission denied
ls: cannot access '/etc/apt/sources.list.d/cuda-10-1-local-10.1.168-418.67.list': Permission denied
ls: cannot access '/etc/apt/sources.list.d/.': Permission denied
ls: cannot access '/etc/apt/sources.list.d/ubuntu-toolchain-r-ubuntu-test-xenial.list': Permission denied
ls: cannot access '/etc/apt/sources.list.d/bazel.list': Permission denied
ls: cannot access '/etc/apt/sources.list.d/cuda.list': Permission denied
ls: cannot access '/etc/apt/sources.list.d/..': Permission denied
ls: cannot access '/etc/apt/sources.list.d/graphics-drivers-ubuntu-ppa-xenial.list.save': Permission denied
ls: cannot access '/etc/apt/sources.list.d/graphics-drivers-ubuntu-ppa-xenial.list': Permission denied
ls: cannot access '/etc/apt/sources.list.d/cuda.list.save': Permission denied
ls: cannot access '/etc/apt/sources.list.d/bazel.list.save': Permission denied
total 0
d????????? ? ? ? ?            ? .
d????????? ? ? ? ?            ? ..
-????????? ? ? ? ?            ? bazel.list
-????????? ? ? ? ?            ? bazel.list.save
-????????? ? ? ? ?            ? cuda-10-1-local-10.1.168-418.67.list
-????????? ? ? ? ?            ? cuda-10-1-local-10.1.168-418.67.list.save
-????????? ? ? ? ?            ? cuda.list
-????????? ? ? ? ?            ? cuda.list.save
-????????? ? ? ? ?            ? graphics-drivers-ubuntu-ppa-xenial.list
-????????? ? ? ? ?            ? graphics-drivers-ubuntu-ppa-xenial.list.save
-????????? ? ? ? ?            ? ubuntu-toolchain-r-ubuntu-test-xenial.list

我也尝试过rm -rf anaconda3重新安装,但也没有帮助。

希望问题能够得到解决。

相关内容