正如标题所述。我无法通过“正常”方式(或通过搜索)打开终端,但我可以通过文件夹打开它。我猜 Python 出了问题,但我不知道如何修复它。有什么帮助吗?
这是我通过文件夹打开终端时显示的消息:
bash: /home/app/Desktop/apps/miniconda3/bin/conda: /home/app/Desktop/apps/miniconda3/bin/python: bad interpreter: No such file or directory
Traceback (most recent call last):
File "/usr/lib/python3.7/dbm/gnu.py", line 4, in <module>
from _gdbm import *
ModuleNotFoundError: No module named '_gdbm'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/CommandNotFound/CommandNotFound.py", line 7, in <module>
import dbm.gnu as gdbm
File "/usr/lib/python3.7/dbm/gnu.py", line 6, in <module>
raise ImportError(str(msg) + ', please install the python3-gdbm package')
ImportError: No module named '_gdbm', please install the python3-gdbm package
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/command-not-found", line 27, in <module>
from CommandNotFound.util import crash_guard
File "/usr/lib/python3/dist-packages/CommandNotFound/__init__.py", line 3, in <module>
from CommandNotFound.CommandNotFound import CommandNotFound
File "/usr/lib/python3/dist-packages/CommandNotFound/CommandNotFound.py", line 9, in <module>
import gdbm
ModuleNotFoundError: No module named 'gdbm'
当我尝试安装 python-gdbm 时:
W: Target Packages (Packages) is configured multiple times in /etc/apt/sources.list:36 and /etc/apt/sources.list:38
W: Target Translations (en_US) is configured multiple times in /etc/apt/sources.list:36 and /etc/apt/sources.list:38
W: Target Translations (en) is configured multiple times in /etc/apt/sources.list:36 and /etc/apt/sources.list:38
E: The repository 'http://archive.getdeb.net/ubuntu xenial-getdeb Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: Target Packages (Packages) is configured multiple times in /etc/apt/sources.list:36 and /etc/apt/sources.list:38
W: Target Translations (en_US) is configured multiple times in /etc/apt/sources.list:36 and /etc/apt/sources.list:38
W: Target Translations (en) is configured multiple times in /etc/apt/sources.list:36 and /etc/apt/sources.list:38
i # 第38行,然后sudo update,还是打不开
输出
basemount.list mono-official-stable.list.save
basemount.list.save noobslab-ubuntu-themes-xenial.list
basespacefs.list noobslab-ubuntu-themes-xenial.list.save
basespacefs.list.save notepadqq-team-ubuntu-notepadqq-xenial.list
cuda-10-0-local-10.0.130-410.48.list notepadqq-team-ubuntu-notepadqq-xenial.list.save
cuda-10-0-local-10.0.130-410.48.list.save opera-stable.list
cuda.list opera-stable.list.save
cuda.list.save teamviewer.list
deadsnakes-ubuntu-ppa-xenial.list tvinternal.list
deadsnakes-ubuntu-ppa-xenial.list.save ubuntugis-ubuntu-ppa-xenial.list
getdeb.list ubuntugis-ubuntu-ppa-xenial.list.save
getdeb.list.save ubuntugis-ubuntu-ubuntugis-unstable-xenial.list
google-chrome.list ubuntugis-ubuntu-ubuntugis-unstable-xenial.list.save
google-chrome.list.save ubuntu-x-swat-ubuntu-updates-xenial.list
graphics-drivers-ubuntu-ppa-xenial.list ubuntu-x-swat-ubuntu-updates-xenial.list.save
graphics-drivers-ubuntu-ppa-xenial.list.save vscode.list
jonathonf-ubuntu-gcc-7_1-xenial.list vscode.list.save
marutter-ubuntu-rdev-xenial.list webupd8team-ubuntu-java-xenial.list
marutter-ubuntu-rdev-xenial.list.save webupd8team-ubuntu-java-xenial.list.save
marutter-ubuntu-rrutter3_5-xenial.list webupd8team-ubuntu-y-ppa-manager-xenial.list
marutter-ubuntu-rrutter3_5-xenial.list.save webupd8team-ubuntu-y-ppa-manager-xenial.list.save
sudo dpkg-S'gdbm'
libgdbm-dev: /usr/share/man/man3/gdbm_error.3.gz
libgdbm-dev: /usr/include/gdbm.h
libgdbm-dev: /usr/share/man/man3/gdbm.3.gz
libgdbm-dev: /usr/include/gdbm-ndbm.h
libgdbm3:amd64: /usr/share/doc/libgdbm3
libgdbm-dev: /usr/share/doc/libgdbm-dev/README.gz
libgdbm3:amd64: /usr/lib/x86_64-linux-gnu/libgdbm_compat.so.3.0.0
python3-gdbm:amd64: /usr/share/doc/python3-gdbm/copyright
libgdbm-dev: /usr/share/man/man3/gdbm_delete.3.gz
libgdbm-dev: /usr/lib/x86_64-linux-gnu/libgdbm_compat.so
python3-gdbm:amd64: /usr/lib/python3.5/lib-dynload/_gdbm.cpython-35m-x86_64-linux-gnu.so
libgdbm-dev: /usr/share/man/man3/gdbm_setopt.3.gz
libgdbm3:amd64: /usr/lib/x86_64-linux-gnu/libgdbm.so.3
libgdbm-dev: /usr/share/man/man3/gdbm_open.3.gz
libgdbm3:amd64: /usr/lib/x86_64-linux-gnu/libgdbm_compat.so.3
libruby2.3:amd64: /usr/lib/x86_64-linux-gnu/ruby/2.3.0/gdbm.so
python3-gdbm:amd64: /usr/share/doc/python3-gdbm/changelog.Debian.gz
libgdbm-dev: /usr/share/doc/libgdbm-dev
libgdbm-dev: /usr/lib/x86_64-linux-gnu/libgdbm.a
libgdbm-dev: /usr/share/man/man3/gdbm_reorganize.3.gz
libgdbm-dev: /usr/share/doc/libgdbm-dev/changelog.Debian.gz
libgdbm-dev: /usr/share/man/man3/gdbm_sync.3.gz
libgdbm-dev: /usr/share/man/man3/gdbm_close.3.gz
libgdbm-dev: /usr/lib/x86_64-linux-gnu/libgdbm_compat.a
libgdbm-dev: /usr/share/man/man3/gdbm_firstkey.3.gz
libgdbm-dev: /usr/share/info/gdbm.info.gz
libgdbm-dev: /usr/share/doc/libgdbm-dev/copyright
python3-gdbm:amd64: /usr/share/doc/python3-gdbm/README.Debian
libgdbm-dev: /usr/share/doc/libgdbm-dev/NEWS.gz
libgdbm-dev: /usr/share/man/man3/gdbm_errno.3.gz
libgdbm3:amd64: /usr/share/doc/libgdbm3/changelog.Debian.gz
libgdbm3:amd64: /usr/lib/x86_64-linux-gnu/libgdbm.so.3.0.0
libgdbm-dev: /usr/share/man/man3/gdbm_nextkey.3.gz
libgdbm-dev: /usr/lib/x86_64-linux-gnu/libgdbm.so
libgdbm3:amd64: /usr/share/doc/libgdbm3/copyright
libgdbm-dev: /usr/share/man/man3/gdbm_fetch.3.gz
libgdbm-dev: /usr/share/man/man3/gdbm_store.3.gz
python3-gdbm:amd64: /usr/share/doc/python3-gdbm
libgdbm-dev: /usr/share/man/man3/gdbm_strerror.3.gz
libgdbm-dev: /usr/share/man/man3/gdbm_exists.3.gz
libgdbm-dev: /usr/share/man/man3/gdbm_error.3.gz
libgdbm-dev: /usr/include/gdbm.h
libgdbm-dev: /usr/share/man/man3/gdbm.3.gz
libgdbm-dev: /usr/include/gdbm-ndbm.h
libgdbm3:amd64: /usr/share/doc/libgdbm3
libgdbm-dev: /usr/share/doc/libgdbm-dev/README.gz
libgdbm3:amd64: /usr/lib/x86_64-linux-gnu/libgdbm_compat.so.3.0.0
python3-gdbm:amd64: /usr/share/doc/python3-gdbm/copyright
libgdbm-dev: /usr/share/man/man3/gdbm_delete.3.gz
libgdbm-dev: /usr/lib/x86_64-linux-gnu/libgdbm_compat.so
python3-gdbm:amd64: /usr/lib/python3.5/lib-dynload/_gdbm.cpython-35m-x86_64-linux-gnu.so
libgdbm-dev: /usr/share/man/man3/gdbm_setopt.3.gz
libgdbm3:amd64: /usr/lib/x86_64-linux-gnu/libgdbm.so.3
libgdbm-dev: /usr/share/man/man3/gdbm_open.3.gz
libgdbm3:amd64: /usr/lib/x86_64-linux-gnu/libgdbm_compat.so.3
libruby2.3:amd64: /usr/lib/x86_64-linux-gnu/ruby/2.3.0/gdbm.so
python3-gdbm:amd64: /usr/share/doc/python3-gdbm/changelog.Debian.gz
libgdbm-dev: /usr/share/doc/libgdbm-dev
libgdbm-dev: /usr/lib/x86_64-linux-gnu/libgdbm.a
libgdbm-dev: /usr/share/man/man3/gdbm_reorganize.3.gz
libgdbm-dev: /usr/share/doc/libgdbm-dev/changelog.Debian.gz
libgdbm-dev: /usr/share/man/man3/gdbm_sync.3.gz
libgdbm-dev: /usr/share/man/man3/gdbm_close.3.gz
libgdbm-dev: /usr/lib/x86_64-linux-gnu/libgdbm_compat.a
libgdbm-dev: /usr/share/man/man3/gdbm_firstkey.3.gz
libgdbm-dev: /usr/share/info/gdbm.info.gz
libgdbm-dev: /usr/share/doc/libgdbm-dev/copyright
python3-gdbm:amd64: /usr/share/doc/python3-gdbm/README.Debian
libgdbm-dev: /usr/share/doc/libgdbm-dev/NEWS.gz
libgdbm-dev: /usr/share/man/man3/gdbm_errno.3.gz
libgdbm3:amd64: /usr/share/doc/libgdbm3/changelog.Debian.gz
libgdbm3:amd64: /usr/lib/x86_64-linux-gnu/libgdbm.so.3.0.0
libgdbm-dev: /usr/share/man/man3/gdbm_nextkey.3.gz
libgdbm-dev: /usr/lib/x86_64-linux-gnu/libgdbm.so
libgdbm3:amd64: /usr/share/doc/libgdbm3/copyright
libgdbm-dev: /usr/share/man/man3/gdbm_fetch.3.gz
libgdbm-dev: /usr/share/man/man3/gdbm_store.3.gz
python3-gdbm:amd64: /usr/share/doc/python3-gdbm
libgdbm-dev: /usr/share/man/man3/gdbm_strerror.3.gz
libgdbm-dev: /usr/share/man/man3/gdbm_exists.3.gz