python3-dev installation problem:
I have tried any stackoverflow solution on my server, even tried deadsnake, but could not achieve to install python3-dev.
sudo apt 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: libpython3-dev (= 3.8.2-0ubuntu2) but it is not going to be installed Depends: python3.8-dev (>= 3.8.2-1~) but it is not going to be installed E: Unable to correct problems, you have held broken packages.
What should I do?
ps. aim is to install JupyterHub
- Did you do
first? Seven times out of ten that will solve your problem…
- You can try
apt install python3-dev +libpython3-dev=3.8.2-0ubuntu2
to try to install the unmet dependency. DANGER WILL ROBINSON! This result in other unmet, incompatible dependencies…and may break other stuff if you can satisfy all those.
- This can happen when you have a PPA repository listed in /etc/apt/sources.list or /etc/apt/sources.list.d that specifies some package that the python3-dev package depends on that is not the same version as python3-dev.
In your case python3-dev is coming from a PPA and libpython3-dev is coming from the Ubuntu standard distribution.
You can do one of two things:
► install python3-dev from a compatible PPA to the dependency; or
► back out the packages/PPAs that installed the incompatible dependency.
However, it's DANGER WILL ROBINSON! on both of these unless you know what you're doing. Both of these actions may break other stuff. You can figure out where apt(1) is trying to get python3-dev by doing
apt policy python3-dev
- In some cases, the situation you're experiencing is the result of a screw-up by Canonical that will resolve itself in a few days. Find a crossword puzzle to work on in the meantime…
This kinda crap is one of the (biggest) reasons why I stopped using Ubuntu.
What would you prefer instead of Ubuntu? Debian 10?
Yes, Debian 10…actually I would prefer FreeBSD but that's not among by available choices if I want Linode to do backups for me.
See here for a comparison of the two (and some of my objections):
Debian is harder to upgrade than Ubuntu:
Here's blurb I found about Jupyter and the python3 version (the version of python3 on Debian 10 is 3.7.3):
Wow. Things getting complex for me. I'll give it a try and make a test Buster. Do you think my attached Volume would work on Debian too?
Thank you so much.
Do you think my attached Volume would work on Debian too?
I assume you are talking about a block storage volume here…
If it's formatted as ext3 or ext4, I don't see why not. However, your volume cannot be shared by two Linodes…it has to be mounted to one or the other at any one time. Also, if one Linode changes the volume and you dismount it to mount it on the other Linode, those changes will stick…and vice versa.
Hi sw, Debian is working like a charm. Why did I got stuck in Ubuntu? I think LTS sounds rock-solid. What kind of future obstacle will I face with Buster? In the links of your previous reply, update said to be an issue.
Why did I got stuck in Ubuntu?
I dunno… Lots of people who use Ubuntu recommend using PPAs like they're default parts of the system. They're not. They're useful but they can cause the kind of "can't get there from here" update/upgrade problems like you experienced (I'm convinced that's why you couldn't do what you wanted to do)
What kind of future obstacle will I face with Buster? In the links of your previous reply, update said to be an issue.
In Ubuntu, if you want to do a release upgrade, there's a single command to do it:
do_release_upgrade. In Debian, that command doesn't exist. You have to follow a procedure outlined here:
In the above, you have to mentally change "stable" to "buster" and "buster" to "bullseye". The name of the next Debian release is Bullseye. It will probably be available in a few months.
Don't ask about my plans for upgrading from Buster to Bullseye. I don't have any. The next time I do a release upgrade, it will probably be away from Linux.