Hướng dẫn var/lib/dpkg/info/python3-minimal postinst py3compile: not found - var / lib / dpkg / info / python3-Minimum postinst py3compile: not found

Ubuntu: 18.04

Khi tôi cố gắng làm

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED
  libpython3.7-minimal libpython3.7-stdlib
0 to upgrade, 0 to newly install, 2 to remove and 0 not to upgrade.
1 not fully installed or removed.
After this operation, 12.1 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 178285 files and directories currently installed.)
Removing libpython3.7-stdlib:amd64 (3.7.1-1~18.04) ...
Removing libpython3.7-minimal:amd64 (3.7.1-1~18.04) ...
Setting up python3-software-properties (0.96.24.32.7) ...
/var/lib/dpkg/info/python3-software-properties.postinst: 6: /var/lib/dpkg/info/python3-software-properties.postinst: py3compile: not found
dpkg: error processing package python3-software-properties (--configure):
 installed python3-software-properties package post-installation script subprocess returned error exit status 127
Errors were encountered while processing:
 python3-software-properties
E: Sub-process /usr/bin/dpkg returned an error code (1)
1, nó cho tôi lỗi này:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  libpython3.7-minimal libpython3.7-stdlib
Use 'sudo apt autoremove' to remove them.
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up python3-software-properties (0.96.24.32.7) ...
/var/lib/dpkg/info/python3-software-properties.postinst: 6: /var/lib/dpkg/info/python3-software-properties.postinst: py3compile: not found
dpkg: error processing package python3-software-properties (--configure):
 installed python3-software-properties package post-installation script subprocess returned error exit status 127
Errors were encountered while processing:
 python3-software-properties
E: Sub-process /usr/bin/dpkg returned an error code (1)

Nhưng đề xuất khen ngợi

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED
  libpython3.7-minimal libpython3.7-stdlib
0 to upgrade, 0 to newly install, 2 to remove and 0 not to upgrade.
1 not fully installed or removed.
After this operation, 12.1 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 178285 files and directories currently installed.)
Removing libpython3.7-stdlib:amd64 (3.7.1-1~18.04) ...
Removing libpython3.7-minimal:amd64 (3.7.1-1~18.04) ...
Setting up python3-software-properties (0.96.24.32.7) ...
/var/lib/dpkg/info/python3-software-properties.postinst: 6: /var/lib/dpkg/info/python3-software-properties.postinst: py3compile: not found
dpkg: error processing package python3-software-properties (--configure):
 installed python3-software-properties package post-installation script subprocess returned error exit status 127
Errors were encountered while processing:
 python3-software-properties
E: Sub-process /usr/bin/dpkg returned an error code (1)
2 cũng cho thấy lỗi:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED
  libpython3.7-minimal libpython3.7-stdlib
0 to upgrade, 0 to newly install, 2 to remove and 0 not to upgrade.
1 not fully installed or removed.
After this operation, 12.1 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 178285 files and directories currently installed.)
Removing libpython3.7-stdlib:amd64 (3.7.1-1~18.04) ...
Removing libpython3.7-minimal:amd64 (3.7.1-1~18.04) ...
Setting up python3-software-properties (0.96.24.32.7) ...
/var/lib/dpkg/info/python3-software-properties.postinst: 6: /var/lib/dpkg/info/python3-software-properties.postinst: py3compile: not found
dpkg: error processing package python3-software-properties (--configure):
 installed python3-software-properties package post-installation script subprocess returned error exit status 127
Errors were encountered while processing:
 python3-software-properties
E: Sub-process /usr/bin/dpkg returned an error code (1)

Vì vậy, có vẻ như có một số vấn đề với PY3Compile không tìm thấy. Tôi thử

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED
  libpython3.7-minimal libpython3.7-stdlib
0 to upgrade, 0 to newly install, 2 to remove and 0 not to upgrade.
1 not fully installed or removed.
After this operation, 12.1 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 178285 files and directories currently installed.)
Removing libpython3.7-stdlib:amd64 (3.7.1-1~18.04) ...
Removing libpython3.7-minimal:amd64 (3.7.1-1~18.04) ...
Setting up python3-software-properties (0.96.24.32.7) ...
/var/lib/dpkg/info/python3-software-properties.postinst: 6: /var/lib/dpkg/info/python3-software-properties.postinst: py3compile: not found
dpkg: error processing package python3-software-properties (--configure):
 installed python3-software-properties package post-installation script subprocess returned error exit status 127
Errors were encountered while processing:
 python3-software-properties
E: Sub-process /usr/bin/dpkg returned an error code (1)
3 kết thúc bằng:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up python3-software-properties (0.96.24.32.7) ...
/var/lib/dpkg/info/python3-software-properties.postinst: 6: /var/lib/dpkg/info/python3-software-properties.postinst: py3compile: not found
dpkg: error processing package python3-software-properties (--configure):
 installed python3-software-properties package post-installation script subprocess returned error exit status 127
Errors were encountered while processing:
 python3-software-properties
E: Sub-process /usr/bin/dpkg returned an error code (1)

Cùng loại py3compile: không tìm thấy lỗi cho thấy khi tôi thử

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED
  libpython3.7-minimal libpython3.7-stdlib
0 to upgrade, 0 to newly install, 2 to remove and 0 not to upgrade.
1 not fully installed or removed.
After this operation, 12.1 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 178285 files and directories currently installed.)
Removing libpython3.7-stdlib:amd64 (3.7.1-1~18.04) ...
Removing libpython3.7-minimal:amd64 (3.7.1-1~18.04) ...
Setting up python3-software-properties (0.96.24.32.7) ...
/var/lib/dpkg/info/python3-software-properties.postinst: 6: /var/lib/dpkg/info/python3-software-properties.postinst: py3compile: not found
dpkg: error processing package python3-software-properties (--configure):
 installed python3-software-properties package post-installation script subprocess returned error exit status 127
Errors were encountered while processing:
 python3-software-properties
E: Sub-process /usr/bin/dpkg returned an error code (1)
4

Tôi là người mới với Ubuntu nên tôi sẽ rất vui vì một số trợ giúp với điều đó.

  • Hướng dẫn var/lib/dpkg/info/python3-minimal postinst py3compile: not found - var / lib / dpkg / info / python3-Minimum postinst py3compile: not found
  • Diễn đàn
  • Cộng đồng Diễn đàn Ubuntu
  • Hỗ trợ hương vị chính thức của Ubuntu
  • Giúp đỡ chung
  • Ubuntu 18.04: Công cụ Python3 bị hỏng? -> py3compile: không tìm thấy

  1. Ubuntu 18.04: Công cụ Python3 bị hỏng? -> py3compile: không tìm thấy

    Xin chào các bạn - Tôi hy vọng bạn có thể giúp tôi.

    Tôi đã cố gắng rất nhiều thứ để tôi nghĩ rằng mọi nỗ lực tiếp theo sẽ làm cho mọi thứ tồi tệ hơn.

    Mọi thứ bắt đầu với Gnome-Terminal không bắt đầu nữa, sau đó một biểu tượng xuất hiện nói rằng các bản cập nhật bị phá vỡ bằng cách nào đó.

    Bây giờ tôi đang ở điểm tôi không thể cài đặt bất cứ thứ gì nữa:

    apt-get install python3 --reinstall ... thiết lập python3-minimal (3.6.7-1 ~ 18.04) ... /var/lib/dpkg/info/python3-minimal.postinst: 5:/var/lib/ dpkg/info/python3-minimal.postinst: py3compile: không tìm thấy dpkg: gói xử lý lỗi python3 phút (-configure): ...
    ...
    Setting up python3-minimal (3.6.7-1~18.04) ...
    /var/lib/dpkg/info/python3-minimal.postinst: 5: /var/lib/dpkg/info/python3-minimal.postinst: py3compile: not found
    dpkg: error processing package python3-minimal (--configure):
    ...

    Tôi có thể cố gắng làm gì để mọi thứ hoạt động trở lại? Tôi hy vọng ai đó có thể hướng dẫn tôi ...

    Biên tập lần cuối bởi Sgruenbe; Ngày 20 tháng 3 năm 2020 lúc 08:00 tối.08:00 PM.


  2. Re: Ubuntu 18.04: Công cụ Python3 bị hỏng? -> py3compile: không tìm thấy

    Điều gì xảy ra nếu bạn cố gắng cài đặt lại Python3 phút


  3. Re: Ubuntu 18.04: Công cụ Python3 bị hỏng? -> py3compile: không tìm thấy

    Chào bạn,

    Khi tôi thử: apt-get install --reinstall python3 phút

    ... Tôi nhận được "0 được nâng cấp, 0 mới được cài đặt, 1 cài đặt lại, 0 để xóa và 0 không được nâng cấp. 3 chưa được cài đặt hoặc xóa đầy đủ. Không gian đĩa sẽ được sử dụng. E: Lỗi nội bộ, không có tên tệp cho Python3 phút: AMD64
    3 not fully installed or removed.
    Need to get 0 B/47.2 kB of archives.
    After this operation, 0 B of additional disk space will be used.
    E: Internal Error, No file name for python3-minimal:amd64


  4. Re: Ubuntu 18.04: Công cụ Python3 bị hỏng? -> py3compile: không tìm thấy

    Tôi nghĩ rằng bạn có một cái gì đó bị hỏng, đây là những gì tôi nhận được, mã:

    Code:

    sudo apt-get install --reinstall python3-minimal
    [sudo] password for xxxx: 
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    The following package was automatically installed and is no longer required:
      linux-modules-extra-5.3.0-18-generic
    Use 'sudo apt autoremove' to remove it.
    0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
    Need to get 23.4 kB of archives.
    After this operation, 0 B of additional disk space will be used.
    Get:1 http://us.archive.ubuntu.com/ubuntu focal/main amd64 python3-minimal amd64 3.8.2-0ubuntu1 [23.4 kB]
    Fetched 23.4 kB in 0s (96.0 kB/s)        
    (Reading database ... 245071 files and directories currently installed.)
    Preparing to unpack .../python3-minimal_3.8.2-0ubuntu1_amd64.deb ...
    Unpacking python3-minimal (3.8.2-0ubuntu1) over (3.8.2-0ubuntu1) ...
    Setting up python3-minimal (3.8.2-0ubuntu1) ...
    /usr/lib/python3.8/subprocess.py:838: RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be used
      self.stdin = io.open(p2cwrite, 'wb', bufsize)
    Processing triggers for man-db (2.9.1-1) ...

    Tôi không biết những gì bạn có bị hỏng. Vui lòng hiển thị, giữa các thẻ mã, kết quả của, mã:

    Code:

    uname -snrp && lsb_release -d && echo $XDG_CURRENT_DESKTOP


  5. Re: Ubuntu 18.04: Công cụ Python3 bị hỏng? -> py3compile: không tìm thấy

    Xin chào, ở đây kết quả:

    Uname -Snrp Linux Zbook 5.3.0-42-Generic x86_64
    Linux zbook 5.3.0-42-generic x86_64

    lsb_release -d bash:/usr/bin/lsb_release:/usr/bin/python3: thông dịch viên xấu: không có tệp hoặc thư mục như vậy
    bash: /usr/bin/lsb_release: /usr/bin/python3: bad interpreter: No such file or directory

    echo $ xdg_cien_desktop ubuntu: gnome
    ubuntu:GNOME

    Nhân tiện, trong Xterm, tôi có thể khởi động vỏ Python mà không gặp vấn đề gì với:

    Python cho vỏ cho Python 2.7.17
    giving the shell for Python 2.7.17

    Python3 cho vỏ cho Python 3.5.6
    giving the shell for Python 3.5.6

    Vì vậy, Python dường như hoạt động bằng cách nào đó ....


  6. Re: Ubuntu 18.04: Công cụ Python3 bị hỏng? -> py3compile: không tìm thấy

    Vui lòng sử dụng các thẻ mã.

    Tôi nghĩ rằng chìa khóa là dòng này

    Code:

    3 not fully installed or removed.

    Thử chạy

    Code:

    sudo apt install -f

    Code:

    sudo dpkg --configure -a

    Nếu điều đó không sửa nó ít nhất thì nó sẽ cung cấp cho bạn và chúng tôi một số manh mối về những việc cần làm tiếp theo.


  7. Re: Ubuntu 18.04: Công cụ Python3 bị hỏng? -> py3compile: không tìm thấy

    Cám ơn phản hồi của bạn...

    Code:

    sudo apt install -f
    
    Reading package lists... Done
    Building dependency tree
    Reading state information.. Done
    ...
    0 upgraded, 0 newly installed, 0 to remove and 72 not upgraded.
    10 not fully installed or removed.
    Need to get 0 B/47.2 kB of archives.
    After this operation, 0 B of additional disk space will be used.
    dpkg: error processing package python3 (--configure):
     package is in a very bad inconsistent state; you should 
     reinstall it before attempting configuration
    dpkg: dependency problems prevent configuration of python3-dev:
     python3-dev depends on python3 (= 3.6.7-1~18.04); however:
      Package python3 is not configured yet.
    
    dpkg: error processing package python3-dev (--configure):
     dependency problems - leaving unconfigured
    dpkg: dependency problems prevent configuration of libboost-python1.65-dev:
     libboost-python1.65-dev depends on python3-dev; however:
      Package python3-dev is no configured yet.
    
    dpkg: error processing package libboost-python1.65-dev (--configure):
     dependency problems - leaving unconfigured
    E: Sub-process /usr/bin/dpkg returned an error code (1)

    Sau đó, khi tôi hiểu, tôi đã cố gắng cài đặt lại Python3: Code:

    Code:

    sudo apt-get install --reinstall python3
    ...
    0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 72 not upgraded.
    ...

    Có vẻ ổn. Sau đó, tôi đã thực thi một lần nữa mà không có lỗi:

    Code:

    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    The following packages will be REMOVED
      libpython3.7-minimal libpython3.7-stdlib
    0 to upgrade, 0 to newly install, 2 to remove and 0 not to upgrade.
    1 not fully installed or removed.
    After this operation, 12.1 MB disk space will be freed.
    Do you want to continue? [Y/n] y
    (Reading database ... 178285 files and directories currently installed.)
    Removing libpython3.7-stdlib:amd64 (3.7.1-1~18.04) ...
    Removing libpython3.7-minimal:amd64 (3.7.1-1~18.04) ...
    Setting up python3-software-properties (0.96.24.32.7) ...
    /var/lib/dpkg/info/python3-software-properties.postinst: 6: /var/lib/dpkg/info/python3-software-properties.postinst: py3compile: not found
    dpkg: error processing package python3-software-properties (--configure):
     installed python3-software-properties package post-installation script subprocess returned error exit status 127
    Errors were encountered while processing:
     python3-software-properties
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    
    0

    Biên tập lần cuối bởi Sgruenbe; Ngày 23 tháng 3 năm 2020 lúc 11:01 sáng.11:01 AM.


  8. Re: Ubuntu 18.04: Công cụ Python3 bị hỏng? -> py3compile: không tìm thấy

    Cám ơn phản hồi của bạn...
    I end up in a terminal
    Hướng dẫn var/lib/dpkg/info/python3-minimal postinst py3compile: not found - var / lib / dpkg / info / python3-Minimum postinst py3compile: not found


  9. Re: Ubuntu 18.04: Công cụ Python3 bị hỏng? -> py3compile: không tìm thấy

    Cám ơn phản hồi của bạn...
    A fresh install of 19.10 takes 20 minutes and contains Python 3.7.5 by default.

    Sau đó, khi tôi hiểu, tôi đã cố gắng cài đặt lại Python3: Code:
    Please visit Quick Links -> Unanswered Posts.
    Don't use this space for a list of your hardware. It only creates false hits in the search engines.


  10. Re: Ubuntu 18.04: Công cụ Python3 bị hỏng? -> py3compile: không tìm thấy

    Cám ơn phản hồi của bạn...
    I really would like to know what happened here, but I have no idea anymore what caused the problem...

    Sau đó, khi tôi hiểu, tôi đã cố gắng cài đặt lại Python3: Code:


Có vẻ ổn. Sau đó, tôi đã thực thi một lần nữa mà không có lỗi:

Có vẻ ổn. Sau đó, tôi đã thực thi một lần nữa mà không có lỗi:

Hướng dẫn var/lib/dpkg/info/python3-minimal postinst py3compile: not found - var / lib / dpkg / info / python3-Minimum postinst py3compile: not found
Biên tập lần cuối bởi Sgruenbe; Ngày 23 tháng 3 năm 2020 lúc 11:01 sáng.