遇到错误E:子进程/ usr / bin / dpkg返回了错误代码(1)

时间:2020-07-05 13:22:28

标签: python-3.x dpkg

在执行任何安装或更新程序包时,我看到以下错误。这是尝试运行apt-get自动删除时的简单日志。在将python 3设置为系统范围内的默认python之后,我得到了这个。

正在阅读包裹清单...已完成
构建依赖树
正在读取状态信息...完成
0已升级,0新安装,0已删除和0未升级。
2未完全安装或卸下。
执行此操作后,将使用0 B的额外磁盘空间。
设置python3-setuptools(45.2.0-1)…
/var/lib/dpkg/info/python3-setuptools.postinst:/ usr / bin / py3compile:/ usr / bin / python3:错误的解释器:没有这样的文件或目录
dpkg:处理软件包python3-setuptools(--configure)时出错:
已安装python3-setuptools软件包安装后脚本子进程返回错误退出状态126
设置python3-linecache2(1.0.0-4ubuntu1)…
/var/lib/dpkg/info/python3-linecache2.postinst:/ usr / bin / py3compile:/ usr / bin / python3:错误的解释器:没有这样的文件或目录
dpkg:错误处理软件包python3-linecache2(--configure):
已安装python3-linecache2软件包安装后脚本子进程返回错误退出状态126
处理时遇到错误:
python3-setuptools
python3-linecache2
E:子进程/ usr / bin / dpkg返回错误代码(1)

0 个答案:

没有答案