我对Linux还是很陌生,并且愚蠢地迷惑了所安装的python版本。现在,当我第一次尝试安装docker时,出现此错误:
$ curl -fsSL get.docker.com -o get-docker.sh
bash: /usr/lib/command-not-found: /usr/bin/python3: bad interpreter: No such file or director*
尝试解决我在网上乱涂的问题,复制并粘贴实际上没有用的修复程序,我认为这可能会使情况变得更糟。
如果有人可以帮助我解决问题,我将非常感激!
~$ python --version
Python 2.7.17
~$ which python
/usr/bin/python
~$ ls -l /usr/bin/python*
lrwxrwxrwx 1 root root 9 Apr 16 2018 /usr/bin/python -> python2.7
lrwxrwxrwx 1 root root 9 Apr 16 2018 /usr/bin/python2 -> python2.7
-rwxr-xr-x 1 root root 3637096 Apr 15 18:20 /usr/bin/python2.7
lrwxrwxrwx 1 root root 18 Jun 8 14:31 /usr/bin/python3 -> /usr/bin/python3.5
-rwxr-xr-x 2 root root 4526456 Apr 18 02:56 /usr/bin/python3.6
-rwxr-xr-x 2 root root 4526456 Apr 18 02:56 /usr/bin/python3.6m
lrwxrwxrwx 1 root root 10 Apr 3 01:00 /usr/bin/python3m -> python3.6m