Python 3.x 如何修复idle-python3.6?
我对python idle有一个很大的问题。例如,如果我尝试跑步 sudo apt get install apache2我收到以下错误:Python 3.x 如何修复idle-python3.6?,python-3.x,ubuntu,python-idle,Python 3.x,Ubuntu,Python Idle,我对python idle有一个很大的问题。例如,如果我尝试跑步 sudo apt get install apache2我收到以下错误: E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution). And it is not just for apache, it happens for all the apps that I try to install wit
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
And it is not just for apache, it happens for all the apps that I try to install with sudo apt-get install
dpkg: error processing archive /var/cache/apt/archives/idle-python3.6_3.6.8-1~18.04.york0_all.deb (--unpack): trying to overwrite '/usr/lib/python3.6/idlelib/CREDITS.txt', which is also in package libpython3.6-stdlib:amd64 3.6.8-1+xenial1
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/idle-python3.6_3.6.8-1~18.04.york0_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
我试着把它闲置起来,但没用
如果我跑
sudo apt-fix broken install
我得到这个错误:
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
And it is not just for apache, it happens for all the apps that I try to install with sudo apt-get install
dpkg: error processing archive /var/cache/apt/archives/idle-python3.6_3.6.8-1~18.04.york0_all.deb (--unpack): trying to overwrite '/usr/lib/python3.6/idlelib/CREDITS.txt', which is also in package libpython3.6-stdlib:amd64 3.6.8-1+xenial1
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/idle-python3.6_3.6.8-1~18.04.york0_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
产量
sudo dpkg --configure -a
是
cat/etc/apt/sources.list的输出为
如果我尝试使用命令重新安装:
sudo apt install idle-python3.6
我明白了:
dpkg: error processing archive /var/cache/apt/archives/idle-python3.6_3.6.8-1~18.04.york0_all.deb (--unpack):
trying to overwrite '/usr/lib/python3.6/idlelib/CREDITS.txt', which is also in package libpython3.6-stdlib:amd64 3.6.8-1+xenial1
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/idle-python3.6_3.6.8-1~18.04.york0_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
我不知道该怎么办我认为这是由于配置不好造成的依赖性问题 你可以参考有类似问题的ubuntu论坛:
这是ubuntu软件包管理器的问题,不是编程问题,这里没有话题。ubuntu标签上的信息是使用askubuntu.com。我认为您遇到的部分问题是,一些linux发行版将pythonx.y.z的部分或全部&u tkinter、tkinter、idlelib和turtle放入了一个独立于pythonx.y.z本身的安装包中。tcl/tk也是一个单独的包,或者可能包含在基本发行版中。