Comment 15 for bug 1975401

Revision history for this message
Oded Arbel (oded-geek) wrote :

Thanks for the note, RevAngel.

This issue could be caused by a package that you have installed (likely libboost-python*-dev) that requires python3-dev, which in turns requires libpython3.10-dev and python3.10-dev - which I did not list to install in my instructions above.

Because the dev packages for 3.10.6 aren't manually installed, when apt needs to install something that requires python3.10-dev (or when verifying the coherency of the installed set of packages), it can't see the uninstalled local package files and so tries to resolve the problem using the apt repository - which only has 3.10.4. It can't install the 3.10.4 dev packages, as these require specific python3.10 versions which are no longer available and that installing will required downgrading your python - so it goes for the other alternative: removing software that depends on the dev packages.

The solution is pretty simple: go to where you built the 3.10.6 packages and run `sudo dpkg -i libpython3.10-dev_3.10.6-1_amd64.deb python3.10-dev_3.10.6-1_amd64.deb` and that should be that.

If you still get problems with "things that need to be removed by apt", see if your system needs maybe more of the 16 packages that were built, as I only instructed to install the minimum required number of packages, because I didn't want to force installation of packages that weren't installed before.