ubuntu upgrade problem with py3compile not found

Spread the love
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  

Ubuntu: 18.04

When I tried to do sudo apt-get upgrade it gives me this error:

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)

But suggested commend sudo apt autoremove also shows error:

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)

So it looks like there is some problem with py3compile which is not found.
I try sudo apt-get -f install which ends with:

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)

The same kind of py3compile: not found error shows when i try sudo apt-get install –reinstall python3-minimal

I’m new with ubuntu so I will be glad for some help with that.

X ITM Cloud News

Marisa

Leave a Reply

Next Post

Airplane mode gets turned on and stuck after sleep mode

Sat Sep 12 , 2020
Spread the love          I am using Ubuntu 18.04 LTS dual booted with Windows 7 on HP Envy 15. After my laptop goes into sleep mode (lid closed) it will turn on airplane mode but the button to turn it off is greyed out and says “use hardware switch to turn off” […]
X- ITM

Cloud Computing – Consultancy – Development – Hosting – APIs – Legacy Systems

X-ITM Technology helps our customers across the entire enterprise technology stack with differentiated industry solutions. We modernize IT, optimize data architectures, and make everything secure, scalable and orchestrated across public, private and hybrid clouds.

This image has an empty alt attribute; its file name is x-itmdc.jpg

The enterprise technology stack includes ITO; Cloud and Security Services; Applications and Industry IP; Data, Analytics and Engineering Services; and Advisory.

Watch an animation of  X-ITM‘s Enterprise Technology Stack

We combine years of experience running mission-critical systems with the latest digital innovations to deliver better business outcomes and new levels of performance, competitiveness and experiences for our customers and their stakeholders.

X-ITM invests in three key drivers of growth: People, Customers and Operational Execution.

The company’s global scale, talent and innovation platforms serve 6,000 private and public-sector clients in 70 countries.

X-ITM’s extensive partner network helps drive collaboration and leverage technology independence. The company has established more than 200 industry-leading global Partner Network relationships, including 15 strategic partners: Amazon Web Services, AT&T, Dell Technologies, Google Cloud, HCL, HP, HPE, IBM, Micro Focus, Microsoft, Oracle, PwC, SAP, ServiceNow and VMware

.

X ITM