在Ubuntu 16.04上安装python3.7

时间:2020-01-06 09:06:58

标签: ubuntu-16.04 python-3.7

我试图使用以下命令在ubuntu系统上安装python 3,但是失败了:

python3.7 is already the newest version (3.7.6-1+xenial1).
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
google-chrome-stable : Depends: lsb-release but 
it is not going to be installed
                    Recommends: libu2f-udev but 
it is not installable
ibus : Depends: dconf-cli but it is not installable
    Depends: gir1.2-ibus-1.0 (= 1.5.11-1ubuntu2.1) but it is not going to be installed
    Depends: python3-gi but it is not going to be installed
    Depends: python3:any (>= 3.3.2-2~)
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

然后我尝试apt get -f install

Get:1 
http://ppa.launchpad.net/deadsnakes/ppa/ubuntu 
xenial/main amd64 python3.2-minimal amd64 3.2.6-2+xenial1 [1,287 kB]
Get:2 http://dl.google.com/linux/chrome/deb 
stable/main amd64 google-chrome-stable amd64 79.0.3945.88-1 [62.2 MB]
Get:3 
http://ppa.launchpad.net/deadsnakes/ppa/ubuntu 
xenial/main amd64 python3.2 amd64 3.2.6-2+xenial1 [1,785 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu 
precise-updates/main amd64 python3-minimal amd64 3.2.3-0ubuntu1.2 [12.0 kB]
Get:5 http://us.archive.ubuntu.com/ubuntu precise-updates/main amd64 python3 amd64 3.2.3-0ubuntu1.2 [30.6 kB]          
Fetched 65.3 MB in 5s (11.6 MB/s)                                                                               
(Reading database ... 302843 files and directories currently installed.)
Removing ibus (1.5.11-1ubuntu2.1) ...
/var/lib/dpkg/info/ibus.prerm: 7: 
/var/lib/dpkg/info/ibus.prerm: dconf: not found
dpkg: error processing package ibus (--remove):
 subprocess installed pre-removal script 
returned error exit status 127
Errors were encountered while processing:
 ibus
E: Sub-process /usr/bin/dpkg returned an error code (1)

我该如何解决?

0 个答案:

没有答案