Can`t install python3-dev

I can`t install python3-dev with the command:sudo apt-get install python3-dev
zcy@zcy-desktop:~$ sudo apt-get install python3-dev
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: dh-python but it is not installable
E: Unable to correct problems, you have held broken packages.

Any help will be appreciated.

1 Like

The last line is significant. I don’t have access to my Jetson Nano right now so can’t check this myself, what does “apt-mark showhold” output?

HTH,
Simon

I’m still having that problem on Jan 2021.

**$ sudo apt-get install python3-dev**
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.

I tried also apt --fit-broken install and didn’t work.
The same happened on a fresh install, so I didn’t break anything.

Tried to manually download and install packages from the Canonical repos, but I get:
$ wget http://ports.ubuntu.com/pool/main/p/python3.6/python3.6-dev_3.6.5-3_arm64.deb
$ sudo dpkg -i python3.6-dev_3.6.5-3_arm64.deb
[sudo] password for oliver:
Selecting previously unselected package python3.6-dev.
(Reading database … 157653 files and directories currently installed.)
Preparing to unpack python3.6-dev_3.6.5-3_arm64.deb …
Unpacking python3.6-dev (3.6.5-3) …
dpkg: dependency problems prevent configuration of python3.6-dev:
python3.6-dev depends on python3.6 (= 3.6.5-3); however:
Version of python3.6 on system is 3.6.9-1~18.04ubuntu1.3.
python3.6-dev depends on libpython3.6-dev (= 3.6.5-3); however:
Package libpython3.6-dev:arm64 is not configured yet.
python3.6-dev depends on libpython3.6 (= 3.6.5-3); however:
Version of libpython3.6:arm64 on system is 3.6.9-1~18.04ubuntu1.3.

dpkg: error processing package python3.6-dev (--install):
 dependency problems - leaving unconfigured
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Errors were encountered while processing:
 python3.6-dev

Hi oliver.almaraz,

Please help to open a new topic if it’s still an issue. Thanks