首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法在Ubuntu18.04上安装python3

无法在Ubuntu18.04上安装python3
EN

Unix & Linux用户
提问于 2018-07-20 10:33:07
回答 1查看 4.9K关注 0票数 2

我刚安装了Ubuntu 18.04。我想在上面安装python,这样我就可以在上面运行烧瓶,但每次运行时出于某种原因。

代码语言:javascript
复制
sudo apt install python3-minimal

我不断得到这些结果:

代码语言:javascript
复制
ashoms@ashoms:~$ sudo apt install python3-minimal
[sudo] password for ashoms: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
python3-minimal is already the newest version (3.6.5-3ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
Need to get 0 B/53.4 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
dpkg: dependency problems prevent configuration of update-manager:
 update-manager depends on policykit-1; however:
  Package policykit-1 is not installed.

dpkg: error processing package update-manager (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                          dpkg: dependency problems prevent configuration of ubuntu-release-upgrader-gtk:
 ubuntu-release-upgrader-gtk depends on update-manager; however:
  Package update-manager is not configured yet.

dpkg: error processing package ubuntu-release-upgrader-gtk (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                          Errors were encountered while processing:
 update-manager
 ubuntu-release-upgrader-gtk
E: Sub-process /usr/bin/dpkg returned an error code (1)
EN

回答 1

Unix & Linux用户

发布于 2018-07-20 12:56:27

初试

代码语言:javascript
复制
sudo apt -f install

然后再试着安装它。如果问题继续,请尝试以下代码

  1. mkdir ~/junk && cd ~/junk
  2. apt-get download python3.5-minimal
  3. dpkg-deb -X $(ls pyth*) .
  4. sudo cp -aiv usr/bin/python3.5 /usr/bin
  5. sudo dpkg-reconfigure python3.5-minimal

使用链接使其更加清楚。

票数 -1
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/457411

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档