Ubuntu 18.04에 python3을 설치할 수 없습니다.

Ubuntu 18.04에 python3을 설치할 수 없습니다.

Ubuntu 18.04를 새로 설치했습니다. 플라스크를 실행할 수 있도록 Python을 설치하고 싶지만 어떤 이유로 실행할 때마다

sudo apt install python3-minimal

계속해서 다음과 같은 결과가 나타납니다.

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)

답변1

첫 시도

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

사용이것더 명확하게하기 위해 링크하십시오.

관련 정보