Migration to 11 won't start : "libc6-dev : Breaks: libgcc-8-dev"

Any more luck with sudo apt install gcc-8-base ?

Pas mieux:

apt install gcc-8-base
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
Certains paquets ne peuvent être installés. Ceci peut signifier
que vous avez demandé l'impossible, ou bien, si vous utilisez
la distribution unstable, que certains paquets n'ont pas encore
été créés ou ne sont pas sortis d'Incoming.
L'information suivante devrait vous aider à résoudre la situation : 

Les paquets suivants contiennent des dépendances non satisfaites :
 calibreweb--2-ynh-deps : Dépend: libsasl2-dev mais ne sera pas installé
                          Dépend: python3-dev mais ne sera pas installé
                          Dépend: libjpeg-dev
                          Dépend: zlib1g-dev mais ne sera pas installé
 calibreweb-ynh-deps : Dépend: libsasl2-dev mais ne sera pas installé
                       Dépend: python3-dev mais ne sera pas installé
                       Dépend: libjpeg-dev
                       Dépend: zlib1g-dev mais ne sera pas installé
 yunohost : Dépend: equivs mais ne sera pas installé
E: Erreur, pkgProblem::Resolve a généré des ruptures, ce qui a pu être causé par les paquets devant être gardés en l'état.

Les dépots de mon yuno pointent maintenant vers bullseye, c’est normal? je ne devrais pas les remettre sur buster?

Non c’est normal qu’ils pointent vers bullseye

Essayons de secouer apt pour qu’il crache plus d’infos sur ce qui lui pose problème exactement alors … :

sudo apt install gcc-8-base calibreweb-ynh-deps libsasl2-dev python3-dev zlib1g-dev equivs

et voilà:

Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
calibreweb-ynh-deps est déjà la version la plus récente (0.96.18~ynh1).
Certains paquets ne peuvent être installés. Ceci peut signifier
que vous avez demandé l'impossible, ou bien, si vous utilisez
la distribution unstable, que certains paquets n'ont pas encore
été créés ou ne sont pas sortis d'Incoming.
L'information suivante devrait vous aider à résoudre la situation : 

Les paquets suivants contiennent des dépendances non satisfaites :
 moulinette : Dépend: python3-yaml mais ne sera pas installé
              Dépend: python3-gevent-websocket mais ne sera pas installé
 yunohost : Dépend: python3-lexicon mais ne sera pas installé
E: Erreur, pkgProblem::Resolve a généré des ruptures, ce qui a pu être causé par les paquets devant être gardés en l'état.

Yep continuons de descendre dans le terrier du Lapineigelapin blanc :

sudo apt install gcc-8-base calibreweb-ynh-deps libsasl2-dev python3-dev zlib1g-dev equivs python3-yaml python3-gevent-websocket python3-lexicon
1 Like

donne:

Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
calibreweb-ynh-deps est déjà la version la plus récente (0.96.18~ynh1).
Certains paquets ne peuvent être installés. Ceci peut signifier
que vous avez demandé l'impossible, ou bien, si vous utilisez
la distribution unstable, que certains paquets n'ont pas encore
été créés ou ne sont pas sortis d'Incoming.
L'information suivante devrait vous aider à résoudre la situation : 

Les paquets suivants contiennent des dépendances non satisfaites :
 nextcloud-ynh-deps : Dépend: smbclient mais ne sera pas installé
E: Erreur, pkgProblem::Resolve a généré des ruptures, ce qui a pu être causé par les paquets devant être gardés en l'état.

donc sudo apt install gcc-8-base calibreweb-ynh-deps libsasl2-dev python3-dev zlib1g-dev equivs python3-yaml python3-gevent-websocket python3-lexicon smbclient
Et là, tandaaaan:

Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
calibreweb-ynh-deps est déjà la version la plus récente (0.96.18~ynh1).
Les paquets suivants ont été installés automatiquement et ne sont plus nécessaires :
  dh-python libpcre16-3 libpcre3-dev libpcre32-3 libpcrecpp0v5 libpython2-stdlib libpython3.7-dev python2 python2-minimal python2.7 python2.7-minimal python3.7-minimal
  rpi.gpio-common
Veuillez utiliser « sudo apt autoremove » pour les supprimer.
Les paquets supplémentaires suivants seront installés : 
  binutils binutils-arm-linux-gnueabihf binutils-common borgbackup cpp-8 gcc-10-base gcc-8 gcc-9-base hardlink libapt-pkg6.0 libasan5 libatomic1 libbinutils libc-ares2 libc-bin
  libc-dev-bin libc-l10n libc6 libc6-dbg libc6-dev libcbor0 libcc1-0 libcrypt-dev libcrypt1 libcryptsetup12 libctf-nobfd0 libctf0 libev4 libffi7 libfido2-1 libgcc-8-dev libgcc-s1
  libgirepository-1.0-1 libglib2.0-0 libgnutls-openssl27 libgnutls30 libgomp1 libhogweed6 libicu67 libip4tc2 libisl23 libjs-sphinxdoc libjs-underscore libjson-c5 libldb2 libmount1
  libmpdec3 libnettle8 libnih-dbus1 libnih1 libnsl-dev libnsl2 libnss-nis libnss-nisplus libnss-systemd libp11-kit0 libpam-systemd libpcre2-16-0 libpcre2-32-0 libpcre2-8-0
  libpcre2-dev libpcre2-posix2 libpcre2-posix3 libpython3-dev libpython3-stdlib libpython3.9 libpython3.9-dev libpython3.9-minimal libpython3.9-stdlib libreadline8 libsasl2-2
  libsasl2-modules libsasl2-modules-db libseccomp2 libselinux1 libselinux1-dev libsepol1 libsepol1-dev libsmbclient libstdc++-8-dev libstdc++6 libsystemd0 libtalloc2 libtasn1-6
  libtdb1 libtevent0 libtirpc-common libtirpc-dev libtirpc3 libubsan1 libudev-dev libudev1 libwbclient0 libxxhash0 locales locales-all manpages manpages-dev nslcd-utils
  openssh-client openssh-server openssh-sftp-server python3 python3-aiohttp python3-apt python3-cffi-backend python3-crypto python3-dbus python3-distutils python3-gevent
  python3-gi python3-greenlet python3-ldap python3-ldb python3-lib2to3 python3-llfuse python3-lxml python3-markupsafe python3-minimal python3-miniupnpc python3-multidict
  python3-psutil python3-systemd python3-talloc python3-tk python3-typing-extensions python3-venv python3-yarl python3-zope.event python3-zope.interface python3.9 python3.9-dev
  python3.9-minimal python3.9-venv runit-helper samba-common samba-libs systemd udev unscd zlib1g
Paquets suggérés :
  binutils-doc borgbackup-doc gcc-8-locales gcc-8-doc glibc-doc gnutls-bin libsasl2-modules-gssapi-mit | libsasl2-modules-gssapi-heimdal libsasl2-modules-ldap libsasl2-modules-otp
  libsasl2-modules-sql libstdc++-8-doc keychain libpam-ssh monkeysphere ssh-askpass molly-guard ufw python3-doc python3-apt-dbg python-apt-doc python-dbus-doc python3-dbus-dbg
  python-gevent-doc python3-gevent-dbg python-greenlet-doc python-greenlet-dev python3-greenlet-dbg python3-boto3 python3-softlayer python-llfuse-doc python3-lxml-dbg
  python-lxml-doc python-psutil-doc tix python3-tk-dbg python3.9-doc binfmt-support heimdal-clients systemd-container policykit-1
Paquets recommandés :
  apt libc-devtools samba-common-bin systemd-timesyncd | time-daemon
Les paquets suivants seront ENLEVÉS :
  libgcc1 libldb1 libpcre2-posix0 libpython-stdlib python python-minimal python-rpi.gpio python-talloc python3.7 python3.7-dev python3.7-venv
Les NOUVEAUX paquets suivants seront installés :
  gcc-10-base gcc-9-base libapt-pkg6.0 libc-ares2 libcbor0 libcrypt-dev libcrypt1 libctf-nobfd0 libctf0 libev4 libffi7 libfido2-1 libgcc-s1 libhogweed6 libicu67 libip4tc2 libisl23
  libjs-sphinxdoc libjs-underscore libjson-c5 libldb2 libmpdec3 libnettle8 libnsl-dev libnsl2 libnss-nis libnss-nisplus libpcre2-16-0 libpcre2-32-0 libpcre2-dev libpcre2-posix2
  libpcre2-posix3 libpython3.9 libpython3.9-dev libpython3.9-minimal libpython3.9-stdlib libreadline8 libtirpc-dev python3-ldb python3-talloc python3-typing-extensions
  python3-zope.event python3-zope.interface python3.9 python3.9-dev python3.9-minimal python3.9-venv runit-helper
Les paquets suivants seront mis à jour :
  binutils binutils-arm-linux-gnueabihf binutils-common borgbackup cpp-8 equivs gcc-8 gcc-8-base hardlink libasan5 libatomic1 libbinutils libc-bin libc-dev-bin libc-l10n libc6
  libc6-dbg libc6-dev libcc1-0 libcryptsetup12 libgcc-8-dev libgirepository-1.0-1 libglib2.0-0 libgnutls-openssl27 libgnutls30 libgomp1 libmount1 libnih-dbus1 libnih1
  libnss-systemd libp11-kit0 libpam-systemd libpcre2-8-0 libpython3-dev libpython3-stdlib libsasl2-2 libsasl2-dev libsasl2-modules libsasl2-modules-db libseccomp2 libselinux1
  libselinux1-dev libsepol1 libsepol1-dev libsmbclient libstdc++-8-dev libstdc++6 libsystemd0 libtalloc2 libtasn1-6 libtdb1 libtevent0 libtirpc-common libtirpc3 libubsan1
  libudev-dev libudev1 libwbclient0 libxxhash0 locales locales-all manpages manpages-dev nslcd-utils openssh-client openssh-server openssh-sftp-server python3 python3-aiohttp
  python3-apt python3-cffi-backend python3-crypto python3-dbus python3-dev python3-distutils python3-gevent python3-gevent-websocket python3-gi python3-greenlet python3-ldap
  python3-lexicon python3-lib2to3 python3-llfuse python3-lxml python3-markupsafe python3-minimal python3-miniupnpc python3-multidict python3-psutil python3-systemd python3-tk
  python3-venv python3-yaml python3-yarl samba-common samba-libs smbclient systemd udev unscd zlib1g zlib1g-dev
102 mis à jour, 48 nouvellement installés, 11 à enlever et 913 non mis à jour.
Il est nécessaire de prendre 102 Mo dans les archives.
Après cette opération, 84,3 Mo d'espace disque supplémentaires seront utilisés.
Souhaitez-vous continuer ? [O/n] 

Je suppose que je dis oui? :slight_smile:

Mais honnêtement, je ne comprends pas ce que je fais…

EDIT : Du coup, les paquets sont en train de s’installer, mais comme il y a dedans openssh, j’ai les questions standards de debian sur la configuration d’openssh-server dans sshd_config : Je dois conserver la version actuelle et les script yunohost mettront à jour ultérieurement?

1 Like

Oui pour SSH c’est mieux de garder la version de conf actuelle (choix par défaut apriori ?)

toutafé.
C’est en train de tourner, la suite d’ici pas longtemps j’espère.
Merci beaucoup pour l’“apt-magik”!

OK, donc:
La migration s’est passé, par contre suite des problèmes (je ne sais pas si je dois resté dans ce thread vu que ce ne semble plus lié au fameux “libcc6-dev vs libgcc-8-dev”:

  • J’étais en 4.4.2.3, cependant quand je vérifie /etc/systemd/system/dhcpcd.service.d/wait.conf j’ai la dernière ligne à ExecStart=/usr/sbin/dhcpcd -w -q alors que si j’ai bien suivi, elle devrait être à ExecStart=/usr/sbin/dhcpcd -w
  • Le service dnsmasq était par terre avec pour seul logs:
août 14 18:24:13 YunoHost dnsmasq[7508]: Usage: /etc/init.d/dnsmasq {start|stop|restart|force-reload|dump-stats|status}
août 14 18:24:13 YunoHost systemd[1]: dnsmasq.service: Control process exited, code=exited, status=3/NOTIMPLEMENTED
août 14 18:24:13 YunoHost systemd[1]: dnsmasq.service: Failed with result 'exit-code'.
août 14 18:24:13 YunoHost systemd[1]: Failed to start dnsmasq - A lightweight DHCP and caching DNS server.

mais à priori un simple systemctl restart dnsmasq l’a remis sur le droit chemin

  • mais plus embêtant : j’ai maintenant une erreur “La connexion a échoué, Une erreur est survenue pendant une connexion à domain.com” quand je tente d’accéder au serveur… Je cherche quelques logs et j’ouvre un nouveau topic Ah bah non, un simple redémarrage du serveur and this is good! Je vais tester mes apps!

Merci beaucoup pour le support! Et bon courage pour la suite des problèmes!!

After the migration and the manual fix provided by @aleks, libgcc-8-dev is marked as “to hold”.
Is it safe to unhold it ?

Are you sure it’s marked as “to hold” as in “it’s listed up in apt-mark showhold” ?

Anyway, yes I guess it’s okay to unhold it

You’re right, it is not marked “to hold”.

But I have this when trying a normal apt upgrade :thinking:

Les paquets suivants ont été conservés :
gcc-8-base

Yup so can you share the output of apt policy gcc-8-base and apt install gcc-8-base ?

gcc-8-base:
Installé : 8.3.0-6+rpi1
Candidat : 8.4.0-7+rpi1
Table de version :
8.4.0-7+rpi1 500
500 Index of /raspbian bullseye/main armhf Packages
*** 8.3.0-6+rpi1 100
100 /var/lib/dpkg/status

and :

Les paquets suivants seront ENLEVÉS :
libgcc1
Les paquets suivants seront mis à jour :
gcc-8-base
1 mis à jour, 0 nouvellement installés, 1 à enlever et 0 non mis à jour.

Then yeah, apt install gcc-8-base sounds okay to go ahead with ?

Done, I’ll see if anything goes wrong in the future :slight_smile:

Hi! Unfortunately have the same trouble. I followed all advice from the thread provided by @Aleks. I am worried that none of them worked though. Here are the results of each command I tried. I would love to provide more information if you need.

Raspberry Pi 2B (32-bits)
4.4.2.10 (stable).
Apps:
BicBucStriim
FreshRSS
HedgeDoc
Nitter
Teddit
Transmission
Wallabag

Commands:

dpkg -s $(dpkg --list | grep ynh-deps | awk ‘{print $2}’) | grep ‘Package:|Depends:’ | grep ‘build|gcc|g++’ -B1

nothing in response

apt policy libgcc-8-dev

libgcc-8-dev: Installed: 8.3.0-6+rpi1 Candidate: 8.4.0-7+rpi1 Version table: 8.4.0-7+rpi1 500 500 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages *** 8.3.0-6+rpi1 100 100 /var/lib/dpkg/status

apt policy gcc-8-base

gcc-8-base: Installed: 8.3.0-6+rpi1 Candidate: 8.4.0-7+rpi1 Version table: 8.4.0-7+rpi1 500 500 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages *** 8.3.0-6+rpi1 100 100 /var/lib/dpkg/status

sudo apt install gcc-8-base

`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:
yunohost : Depends: equivs but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.`

sudo cp /var/lib/dpkg/status /root/dpkg_status.bkp
sudo perl -i~ -0777 -pe ‘s/(Package: .-ynh-deps\n(.+:.+\n)+Depends:.)(build-essential, ?)(.*)/$1$4/g’ /var/lib/dpkg/status

no response

sudo apt remove build-essential gcc-8 libgcc-8-dev

`Package ‘build-essential’ is not installed, so not removed
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:
yunohost : Depends: equivs but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.`

sudo apt remove build-essential
sudo apt autoremove
sudo apt remove gcc-8 libgcc-8-dev

`admin@pi:~ $ sudo apt remove build-essential
Reading package lists… Done
Building dependency tree
Reading state information… Done
Package ‘build-essential’ is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 853 not upgraded.

admin@pi:~ $ sudo apt autoremove
Reading package lists… Done
Building dependency tree
Reading state information… Done
0 upgraded, 0 newly installed, 0 to remove and 853 not upgraded.

admin@pi:~ $ sudo apt remove gcc-8 libgcc-8-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:
yunohost : Depends: equivs but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.`

sudo cp /var/lib/dpkg/status /root/dpkg_status.bkp
sudo perl -i~ -0777 -pe ‘s/(Package: .-ynh-deps\n(.+:.+\n)+Depends:.)(build-essential, ?)(.*)/$1$4/g’ /var/lib/dpkg/status

no response

I’m unable to profit! :wink: After step 2, here’s the output (see below). The migration from 4 to 11 fails.

Any suggestions on what to try next?

admin@net:~ $ sudo apt remove gcc-8 libgcc-8-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:
borg-ynh-deps : Depends: python3-dev but it is not going to be installed
Depends: libacl1-dev but it is not going to be installed
Depends: libfuse-dev but it is not going to be installed
dh-autoreconf : Depends: libtool (>= 2.4.2) but it is not going to be installed
funkwhale-ynh-deps : Depends: libsasl2-dev but it is not going to be installed
Depends: zlib1g-dev but it is not going to be installed
Depends: libjpeg-dev
Depends: python3-dev but it is not going to be installed
libglib2.0-0 : Breaks: libgirepository-1.0-1 (< 1.62.0-4~) but 1.58.3-2 is to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

I edited the previous answer : the instructions are obsolete because Yunohost now automatically tries to autopatch the issue.

If it didn’t, please share the full log of the migration

Thanks for the quick reply.
Ah - I tried the instructions above before attempting the migration, as I assumed it would still be an issue from reading this page:

So apparently I have hosed things up a bit. Any suggestions on what to do going forward?
Here is the migration log:
https://paste.yunohost.org/raw/iferogekig