我在python闲置方面有很大的问题。例如,如果我尝试运行
sudo apt-get async/await
我收到此错误:
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 with sudo apt-get install
我收到此错误:
sudo apt-fix broken 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
dpkg: dependency problems prevent configuration of idle:
idle depends on idle-python3.6; however:
Package idle-python3.6 is not installed.
dpkg: error processing package idle (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
idle
的输出是
cat /etc/apt/sources.list
如果我尝试使用以下命令重新安装:
deb http://archive.ubuntu.com/ubuntu bionic main universe
deb http://security.ubuntu.com/ubuntu/ bionic-security main universe
deb http://archive.ubuntu.com/ubuntu bionic-updates main universe
我明白了:
sudo apt install idle-python3.6
我不知道该怎么办
答案 0 :(得分:1)
我认为这是由于配置错误导致的依赖问题。
您可以参考存在类似问题的ubuntu论坛: https://askubuntu.com/questions/1065556/broken-python-dependencies-after-trying-to-re-install