python出错重新安装_在ubuntu 16.04中重新安装python3时出错

在Ubuntu 16.04中删除预装Python3后尝试重新安装时遇到了错误。执行`sudo apt-get -f install python3`时,python rtupdate hooks运行失败,涉及hplip-data、python3-uno、rhythmbox等包。错误提示为无法获取某些包的内容。尽管已尝试安装gdebi-core和修改Python路径,但问题仍未解决。
摘要由CSDN通过智能技术生成

我使用的是Ubuntu16.04,我删除了预装的python3,想重新安装。但是,我在使用sudo apt-get -f install python3时遇到一个错误:Reading package lists... Done

Building dependency tree

Reading state information... Done

python3.5 is already the newest version (3.5.2-2~16.01).

python3.5 set to manually installed.

The following packages were automatically installed and are no longer required:

dictionaries-common emacsen-common gir1.2-appindicator3-0.1 gir1.2-atk-1.0

gir1.2-atspi-2.0 gir1.2-freedesktop gir1.2-gdkpixbuf-2.0 gir1.2-glib-2.0

gir1.2-gtk-3.0 gir1.2-pango-1.0 hunspell-en-us libcanberra0

libgirepository-1.0-1 libhunspell-1.3-0 libpangoxft-1.0-0 libvorbisfile3

sound-theme-freedesktop

Use 'sudo apt autoremove' to remove them.

0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

2 not fully installed or removed.

After this operation, 0 B of additional disk space will be used.

Do you want to continue? [Y/n] y

Setting up python3 (3.5.1-3) ...

running python rtupdate hooks for python3.5...

dpkg-query: package 'hplip-data' is not installed

Use dpkg --info (= dpkg-deb --info) to examine archive files,

and dpkg --contents (= dpkg-deb --contents) to list their contents.

Traceback (most recent call last):

File "/usr/bin/py3clean", line 210, in

main()

File "/usr/bin/py3clean", line 196, in main

pfiles = set(dpf.from_package(options.package))

File "/usr/share/python3/debpython/files.py", line 53, in from_package

raise Exception("cannot get content of %s" % package_name)

Exception: cannot get content of hplip-data

error running python rtupdate hook hplip-data

dpkg-query: package 'python3-uno' is not installed

Use dpkg --info (= dpkg-deb --info) to examine archive files,

and dpkg --contents (= dpkg-deb --contents) to list their contents.

Traceback (most recent call last):

File "/usr/bin/py3clean", line 210, in

main()

File "/usr/bin/py3clean", line 196, in main

pfiles = set(dpf.from_package(options.package))

File "/usr/share/python3/debpython/files.py", line 53, in from_package

raise Exception("cannot get content of %s" % package_name)

Exception: cannot get content of python3-uno

error running python rtupdate hook python3-uno

dpkg-query: package 'rhythmbox-plugins' is not installed

Use dpkg --info (= dpkg-deb --info) to examine archive files,

and dpkg --contents (= dpkg-deb --contents) to list their contents.

Traceback (most recent call last):

File "/usr/bin/py3clean", line 210, in

main()

File "/usr/bin/py3clean", line 196, in main

pfiles = set(dpf.from_package(options.package))

File "/usr/share/python3/debpython/files.py", line 53, in from_package

raise Exception("cannot get content of %s" % package_name)

Exception: cannot get content of rhythmbox-plugins

error running python rtupdate hook rhythmbox-plugins

dpkg-query: package 'rhythmbox' is not installed

Use dpkg --info (= dpkg-deb --info) to examine archive files,

and dpkg --contents (= dpkg-deb --contents) to list their contents.

Traceback (most recent call last):

File "/usr/bin/py3clean", line 210, in

main()

File "/usr/bin/py3clean", line 196, in main

pfiles = set(dpf.from_package(options.package))

File "/usr/share/python3/debpython/files.py", line 53, in from_package

raise Exception("cannot get content of %s" % package_name)

Exception: cannot get content of rhythmbox

error running python rtupdate hook rhythmbox

dpkg-query: package 'totem-plugins' is not installed

Use dpkg --info (= dpkg-deb --info) to examine archive files,

and dpkg --contents (= dpkg-deb --contents) to list their contents.

Traceback (most recent call last):

File "/usr/bin/py3clean", line 210, in

main()

File "/usr/bin/py3clean", line 196, in main

pfiles = set(dpf.from_package(options.package))

File "/usr/share/python3/debpython/files.py", line 53,from_package

raise Exception("cannot get content of %s" % package_name)

Exception: cannot get content of totem-plugins

error running python rtupdate hook totem-plugins

dpkg-query: package 'ubuntu-drivers-common' is not installed

Use dpkg --info (= dpkg-deb --info) to examine archive files,

and dpkg --contents (= dpkg-deb --contents) to list their contents.

Traceback (most recent call last):

File "/usr/bin/py3clean", line 210, in

main()

File "/usr/bin/py3clean", line 196, in main

pfiles = set(dpf.from_package(options.package))

File "/usr/share/python3/debpython/files.py", line 53, in from_package

raise Exception("cannot get content of %s" % package_name)

Exception: cannot get content of ubuntu-drivers-common

error running python rtupdate hook ubuntu-drivers-common

dpkg: error processing package python3 (--configure):

subprocess installed post-installation script returned error exit status 4

dpkg: dependency problems prevent configuration of dh-python:

dh-python depends on python3:any (>= 3.3.2-2~); however:

Package python3 is not configured yet.

dpkg: error processing package dh-python (--configure):

dependency problems - leaving unconfigured

Errors were encountered while processing:

python3

dh-python

E: Sub-process /usr/bin/dpkg returned an error code (1)

我还安装了anaconda2,它安装了python2.7,python_路径设置为该路径。我已经试着用同样的结果改变它。我最初尝试使用sudo apt-get install gdebi-core安装gedbi核心,但得到了相同的错误。在网上看了看之后,我试了

^{pr2}$

现在我正试图重新安装python3.5。在

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值