Ubuntu安装Python 3时出现多类错误,请求技术支持
Ubuntu安装Python3时的dpkg依赖错误求助
我在Ubuntu系统中安装Python 3,执行安装命令时出现如下错误:
Preparing to unpack .../python3-update-manager_1%3a20.04.10.10_all.deb ... /var/lib/dpkg/info/python3-update-manager.prerm: 6: py3clean: not found dpkg: warning: old python3-update-manager package pre-removal script subprocess returned error exit status 127 dpkg: trying script from the new package instead ... /var/lib/dpkg/tmp.ci/prerm: 6: py3clean: not found dpkg: error processing archive /var/cache/apt/archives/python3-update-manager_1%3a20.04.10.10_all.deb (--unpack): new python3-update-manager package pre-removal script subprocess returned error exit status 127 /var/lib/dpkg/info/python3-update-manager.postinst: 6: py3compile: not found dpkg: error while cleaning up: installed python3-update-manager package post-installation script subprocess returned error exit status 127 Preparing to unpack .../python3-distupgrade_1%3a20.04.38_all.deb ... /var/lib/dpkg/info/python3-distupgrade.prerm: 6: py3clean: not found dpkg: warning: old python3-distupgrade package pre-removal script subprocess returned error exit status 127 dpkg: trying script from the new package instead ... /var/lib/dpkg/tmp.ci/prerm: 6: py3clean: not found dpkg: error processing archive /var/cache/apt/archives/python3-distupgrade_1%3a20.04.38_all.deb (--unpack): new python3-distupgrade package pre-removal script subprocess returned error exit status 127 /var/lib/dpkg/info/python3-distupgrade.postinst: 6: py3compile: not found dpkg: error while cleaning up: installed python3-distupgrade package post-installation script subprocess returned error exit status 127 Preparing to unpack .../sosreport_4.3-1ubuntu0.20.04.1_amd64.deb ... /var/lib/dpkg/info/sosreport.prerm: 6: py3clean: not found dpkg: warning: old sosreport package pre-removal script subprocess returned error exit status 127 dpkg: trying script from the new package instead ... /var/lib/dpkg/tmp.ci/prerm: 6: py3clean: not found dpkg: error processing archive /var/cache/apt/archives/sosreport_4.3-1ubuntu0.20.04.1_amd64.deb (--unpack): new sosreport package pre-removal script subprocess returned error exit status 127 /var/lib/dpkg/info/sosreport.postinst: 6: py3compile: not found dpkg: error while cleaning up: installed sosreport package post-installation script subprocess returned error exit status 127 Errors were encountered while processing: /var/cache/apt/archives/python3-update-manager_1%3a20.04.10.10_all.deb /var/cache/apt/archives/python3-distupgrade_1%3a20.04.38_all.deb /var/cache/apt/archives/sosreport_4.3-1ubuntu0.20.04.1_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
我已经多方搜索并尝试了更新软件包等多种命令,但都无效,恳请各位提供帮助。
补充说明
执行论坛提供的命令后,现在出现如下错误:
The following packages have unmet dependencies: python-is-python2 : Depends: python2 but it is not going to be installed ubuntu-release-upgrader-core : Depends: python3-distupgrade (= 1:20.04.38) but 1:20.04.23 is to be installed update-manager-core : Depends: python3-update-manager (= 1:20.04.10.10) but 1:20.04.10.1 is to be installed E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
内容的提问来源于stack exchange,提问作者Amira Elsayed Ismail
相关产品推荐
相关产品推荐

