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

Hardware: Raspberry Pi 4 / 4go / at home
YunoHost version: 4.4.2
**I have access to my server : ** ssh and webadmin

Problem

When i launch migration to 11, here my log : https://paste.yunohost.org/raw/dogocoxase

Apprently libgcc is causing the problem

any thoughts ?

Hmyeah we saw a few people encountering that issue already, but we don’t have a straightforward way to address it.

libc6-dev : Breaks: libgcc-8-dev 

This is most probably related to an app requiring build-essential which is only needed to build the app, but not to run the app itself.

There may be multiple way to address this

But first let’s identify the problematic app by running :

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

Edit:

and apt policy libgcc-8-dev

and apt policy gcc-8-base

2 Likes

Sane here.
I have:

  • Nextcloud
  • Wallabag
  • Netdata
  • FreshRSS
  • HedgeDOc
  • DocuWiki

The package is being used by NetData. I will erase it and try to migrate.

Thanks

ps. nope, migration fails. Same issue. I uninstalled NetData, but there is still netdata-ynh-deps that is causing the issue. What next?

apt remove netdata-ynh-deps
apt autoremove

It’s seems that it’s Vaultwarden…

Indeed

The list of apps with build-essentials

compteur_du_gase
diaspora
django-find-my-device
django-fmd
django-for-runners
django-fritzconnection
django_ynh
ecko
fab-manager
ffsync
glitchsoc
guacamole
homeassistant
jitsi
languagetool
librephotos
lstu
lufi
mastodon
mautrix_signal
minetest
mopidy
opentracker
pgadmin
photonix
photoview
pihole
pyinventory
rocketchat
searx
tandoor
tracim
trilium
vaultwarden
veloren

1 Like

Please folks …

I took time to prepare 3 commands to run and you’re not even providing the exact output of one command (cf also @lapor 's post)

To be able to fully understand what going on, we need the exact and full output of each command …

This is pretty brutal, I was going to advise that many people on the internet report successfully solving the issue by just running apt install gcc-8-base … But I was hoping to look at the apt policy first to get the full picture and understand why this fixes the issue … Also it’s not clear to me if the issue is related to build-essential or rather gcc/g++ dependencies, which I was hoping to get clues from the actual output of dpkg -s ...

2 Likes

Sorry i was just reacting to @lapor who has already removed netdata apps… But i let you advice them in a better way.

Thanks for the replies. I missed the other commands, so I’ll reinstall NetData and check with all of the command and report back. I was in a hurry before :sweat_smile:

So, i have to uninstall vaultwarden, then try again ?

We were able to make some progress with @Thatoo on the chat who encountered the same issue

I crafted a small hack that removes the dependency to build-essential from the $app-ynh-deps :

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

After which we still had to :

# (NB: READ CARREFULY what the next command says
# and make sure it doesnt remove half of the system ...)
sudo apt remove build-essential gcc-8 libgcc-8-dev

The command should display something like :

The following additional packages will be installed:
  binutils binutils-arm-linux-gnueabihf binutils-common cpp cpp-10 gcc gcc-10 gcc-10-base libasan6
  libatomic1 libbinutils libcc1-0 libctf-nobfd0 libctf0 libgcc-10-dev libgcc-s1 libgomp1 libisl23
  libubsan1
Suggested packages:
  binutils-doc cpp-doc gcc-10-locales gcc-multilib flex bison gcc-doc gcc-10-doc
Recommended packages:
  libc6-dev
The following packages will be REMOVED:
  gcc-8 libgcc-8-dev
The following NEW packages will be installed:
  cpp-10 gcc-10 gcc-10-base libasan6 libctf-nobfd0 libctf0 libgcc-10-dev libgcc-s1 libisl23
The following packages will be upgraded:
  binutils binutils-arm-linux-gnueabihf binutils-common cpp gcc libatomic1 libbinutils libcc1-0
  libgomp1 libubsan1

NB : if this displays MUCH MORE packages than this, this is not good. Otherwise, you may safely proceed

After which, re-running the migration should be ok

1 Like

We can’t say shit because you are not sharing the output of the command that were requested, and we have no clue as to why you think vaultwarden is the culprit

1 Like

I finally managed to get some spare time to check it out. I reinstalled NetData and run the commands. I get this:

Package: netdata-ynh-deps
Depends: zlib1g-dev, uuid-dev, libmnl-dev, gcc, make, git, autoconf, autoconf-archive, autogen, automake, pkg-config, curl, jq, nodejs, python3-mysqldb, libipmimonitoring-dev, acl, python3-psycopg2, python3-pymongo, libuv1-dev, liblz4-dev, libjudy-dev, libssl-dev, cmake

libgcc-8-dev:
Installed: 8.3.0-6+rpi1
Candidate: 8.4.0-7+rpi1
Version table:
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

gcc-8-base:
Installed: 8.3.0-6+rpi1
Candidate: 8.4.0-7+rpi1
Version table:
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

I hope it helps somehow.

Thanks and cheers

I am also running into this issue (libgcc-8-dev) when attempting to migrate a 4.4.x server (RasPi) to 11.x:

https://paste.yunohost.org/raw/remofuguri

Don’t seem to be getting anything concrete when running Aleks’ commands:

https://paste.yunohost.org/raw/izebigazuw

Here are the apps that I’m running, domain_path removed for OPSEC sake:

https://paste.yunohost.org/raw/yafonitoge

For anyone encountering the issue, feel free to try the commands described just a few messages before … Migration to 11 won't start - #12 by Aleks

1 Like

Hey there,

running in an issue as well. Already tried Aleks approach Migration to 11 won't start - #12 by Aleks, but didn’t
work.

Here is the log file of the migration tool: https://paste.yunohost.org/raw/muziluvuyi

Any help is appreciated. If further logs are necessary please let me know.

Thanks a lot, virse

Dear Aleks,

Sorry about what you thought was irrespectful, i didn’t mean it, i was on my cellphone, no copy paste possible, and i was writing what i was reading. So now, i’am on computer, i willl.

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

I’ve got

Package: vaultwarden-ynh-deps
Depends: build-essential, pkg-config, libssl-dev, libc6-dev

For 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 Index of /raspbian bullseye/main armhf Packages
*** 8.3.0-6+rpi1 100
100 /var/lib/dpkg/status

For 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 Index of /raspbian bullseye/main armhf Packages
*** 8.3.0-6+rpi1 100
100 /var/lib/dpkg/status

Tell me if i can give you more,

Sincerely

After this command:

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

I get this:

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.

@lapor : hmm okay, let’s maybe try this instead (battling with apt is always a pain)

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