Python3-dev version conflict on fresh 18.04 install

Spread the love

As with other posts in this stack exchange, I’m having issues with installing python3-dev on a fresh install of Ubuntu (18.04) that is running a pre-installed python3 (3.6.9). Many of the recommended fixes in those posts that I have tried have worked, such as uninstalling and reinstalling python3. I’ve had to restore my laptop to the factory defaults twice now because apt ended up breaking much of the operating system by modifying python3. Aptitude also could not resolve the conflicts.
More specifically, when I attempt to do sudo apt install python3-dev I get the following:
Reading package lists… Done
Building dependency tree
Reading state information… Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
python3-dev : Depends: python3 (= 3.6.5-3) but 3.6.7-1~18.04 is to be installed
Depends: libpython3-dev (= 3.6.5-3) but it is not going to be installed
Depends: python3.6-dev (>= 3.6.5-2~) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Here is the output of running sudo apt update:
Hit:1 stable InRelease
Hit:2 bionic InRelease
Hit:3 bionic InRelease
Ign:4 bionic-oem InRelease
Ign:5 bionic-dell-beaver-osp1-gendry InRelease
Hit:6 bionic-oem Release
Ign:7 bionic-dell-service InRelease
Hit:9 bionic-dell InRelease
Hit:10 bionic-dell-beaver-osp1-gendry Release
Hit:12 bionic-dell-service Release
Reading package lists… Done
Building dependency tree
Reading state information… Done
All packages are up to date.

and the output for sudo apt upgrade:
Reading package lists… Done
Building dependency tree
Reading state information… Done
Calculating upgrade… Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

I’d appreciate any help in figuring out how I can resolve these issues. Upgrading to the latest version of Ubuntu (20.04) is not an option right now.

X ITM Cloud News


Leave a Reply

Next Post

How to install Zoom Meeting client on Linux Ubuntu 20.04 LTS - H2S Media

Thu Sep 17 , 2020
Spread the love          How to install Zoom Meeting client on Linux Ubuntu 20.04 LTS  H2S Media X ITM Cloud News

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