Problem with Python installation: libc6-dev breaks libgcc-8-dev

Python and python framework

Moderator: leecollings

Post Reply
Tuinfluiter
Posts: 28
Joined: Thursday 18 January 2024 21:09
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.7
Location: Netherlands
Contact:

Problem with Python installation: libc6-dev breaks libgcc-8-dev

Post by Tuinfluiter »

Pi 3B on Domoticz 2023.1. Recently upgraded Buster to Bullseye.
Now I'd like to go for Python plugins.
My Python version is 3.7.3.
The Domoticz about web page says: 'Python Version: None'
A couple of days ago I screwed up my installation when trying to upgrade to 3.9. I had to restore a full backup.
So now I have less ambition, I would prefer to stick to 3.7 for the moment to at least get it working.
I follow the instructions on the wiki/Using_Python_plugins page.
pi@raspberrypi:~ $ sudo apt install python3
Pakketlijsten worden ingelezen... Klaar
Boom van vereisten wordt opgebouwd
De statusinformatie wordt gelezen... Klaar
Sommige pakketten konden niet geïnstalleerd worden. Dit kan betekenen
dat u om een onmogelijke situatie gevraagd heeft, of, indien u
de distributie 'unstable' gebruikt, dat sommige benodigde pakketten nog gemaakt moeten worden of uit 'Incoming' verwijderd werden.
De volgende informatie kan misschien helpen de situatie op te lossen:

De volgende pakketten hebben niet-voldane vereisten:
libc6-dev : Breekt: libgcc-8-dev (< 8.4.0-2~) maar 8.3.0-6+rpi1 zal geïnstalleerd worden
E: Fout, pkgProblemResolver::Resolve leverde defecten op. Dit kan veroorzaakt worden door vastgehouden pakketten.
"libc6-dev breaks libgcc-8-dev (< 8.4.0-2~) but 8.3.0-6+rpi1 will be installed"
Oops, then step by step:
pi@raspberrypi:~ $ python3 --version
Python 3.7.3
pi@raspberrypi:~ $ dpkg --get-selections | grep libpython
libpython-dev:armhf install
libpython-stdlib:armhf install
libpython2-dev:armhf install
libpython2-stdlib:armhf install
libpython2.7:armhf install
libpython2.7-dev:armhf install
libpython2.7-minimal:armhf install
libpython2.7-stdlib:armhf install
libpython3-stdlib:armhf install
libpython3.5:armhf install
libpython3.5-minimal:armhf install
libpython3.5-stdlib:armhf install
libpython3.7:armhf install
libpython3.7-minimal:armhf install
libpython3.7-stdlib:armhf install
pi@raspberrypi:~ $ sudo apt install libpython3.7
....
libpython3.7 is reeds de nieuwste versie (3.7.3-2+deb10u6).
So far, so good
pi@raspberrypi:~ $ sudo apt install python3-dev
...
Sommige pakketten konden niet geïnstalleerd worden. Dit kan betekenen
dat u om een onmogelijke situatie gevraagd heeft, of, indien u
de distributie 'unstable' gebruikt, dat sommige benodigde pakketten nog gemaakt moeten worden of uit 'Incoming' verwijderd werden.
De volgende informatie kan misschien helpen de situatie op te lossen:

De volgende pakketten hebben niet-voldane vereisten:
libc6-dev : Breekt: libgcc-8-dev (< 8.4.0-2~) maar 8.3.0-6+rpi1 zal geïnstalleerd worden
E: Fout, pkgProblemResolver::Resolve leverde defecten op. Dit kan veroorzaakt worden door vastgehouden pakketten.
So python3-dev is the culprit.
I found nothing here on the Domoticz forum.
On the internet you can find that the problem is associated with the Buster to Bullseye upgrade.

From the "try-and-error" suggestions that I found, I tried: remove libgcc-8-dev.
This worked in the sense that I had 3.9 installed, visible in the about. I used domoticz for a couple of days without any visible problem. I didn't use Python yet.
Until I rebooted. Then it appeared my system was screwed up and decided to restore a backup!

Another suggestion is to install gcc-8-base.
I ran it in simulate mode, but it is more than just a couple additional packages; also removes.
Given my previous experience I am looking for a more substantiated solution than another try-and-error.

So any 'substantiated' suggestions are more than welcome ..
Domoticz running on Pi4
RFXcom, Zwave2MQTT, Zigbee (Z4D), P1, OpenTherm Gateway
Tuinfluiter
Posts: 28
Joined: Thursday 18 January 2024 21:09
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.7
Location: Netherlands
Contact:

Re: Problem with Python installation: libc6-dev breaks libgcc-8-dev

Post by Tuinfluiter »

So no one encountered this before? Curious.
I decided to stop with further try-and-error, so I installed a new Pi4 completely from scratch, which is now up and running.
So I'm all set to go ahead with python based plugins... I think...
Domoticz running on Pi4
RFXcom, Zwave2MQTT, Zigbee (Z4D), P1, OpenTherm Gateway
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest