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

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

Thanks.
It wants to remove some other packages:

The following packages will be REMOVED:
g++ g+±8 libstdc+±8-dev php-mysql php-tidy php7.3-tidy

Is that ok?

During which step exactly ?

Sorry, I was copy/pasting too fast :slight_smile:
After sudo apt autoremove

Ah yes apt autoremove can be trustred :wink: If it removes something then it’s really not in use anymore. You may think that “php-mysql is probably used”, but the thing is that there are other packages such as “php7.3-mysql” and the difference is quite technical

Bottom line: yes !

1 Like

hehe, thanks. I’ll try it now :nerd_face:

edit: it worked. Thanks :raised_hands:

Hey @Aleks,

all the provided solutions to lapor didn’t work in may case (Migration to 11 won't start - #17 by virse)

DO you have any hints for my problem as well?

Thx, virse

What works ? You mean you were able to run sudo apt remove gcc-8 libgcc-8-dev and then proceed with the migration ?

Let’s start by trying apt --fix-broken install

Thanks for your reply.

Shows me:

apt --fix-broken install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... failed.
The following packages have unmet dependencies:
 libssl-dev : Depends: libssl1.1 (= 1.1.1n-0+deb11u3) but 1.1.1n-0+deb10u3 is installed
 libstdc++-8-dev : Depends: libgcc-8-dev (= 8.3.0-6) but it is not installable
 lstu-ynh-deps : Depends: libpod-parser-perl but it is not installed
 python3.7-venv : Depends: python3.7 (= 3.7.3-2+deb10u3) but it is not installable
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies

Hmmmokay let’s see what these returns:

apt remove python3.7-venv --dry-run
apt remove libstdc++-8-dev --dry-run
apt policy libpod-parser-perl
apt policy libssl1.1

apt remove python3.7-venv --dry-run

Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libssl-dev : Depends: libssl1.1 (= 1.1.1n-0+deb11u3) but 1.1.1n-0+deb10u3 is to be installed
 libstdc++-8-dev : Depends: libgcc-8-dev (= 8.3.0-6) but it is not installable
 lstu-ynh-deps : Depends: libpod-parser-perl but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

apt remove libstdc+±8-dev --dry-run

Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libssl-dev : Depends: libssl1.1 (= 1.1.1n-0+deb11u3) but 1.1.1n-0+deb10u3 is to be installed
 lstu-ynh-deps : Depends: libpod-parser-perl but it is not going to be installed
 python3.7-venv : Depends: python3.7 (= 3.7.3-2+deb10u3) but it is not installable
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

apt policy libpod-parser-perl

libpod-parser-perl:
  Installed: (none)
  Candidate: 1.63-2
  Version table:
     1.63-2 500
        500 http://ftp.debian.org/debian bullseye/main amd64 Packages

apt policy libssl1.1

libssl1.1:
  Installed: 1.1.1n-0+deb10u3
  Candidate: 1.1.1n-0+deb11u3
  Version table:
     1.1.1n-0+deb11u3 500
        500 http://ftp.debian.org/debian bullseye/main amd64 Packages
        500 http://security.debian.org bullseye-security/main amd64 Packages
 *** 1.1.1n-0+deb10u3 100
        100 /var/lib/dpkg/status

Thks

Hmokay so let’s try to proceed with

apt remove python3.7-venv libstdc++-8-dev

(If this doesn’t work because of the other apt headaches, let’s try dpkg --remove python3.7-venv and dpkg --remove libstdc++-8-dev instead)

Then let’s try apt install libpod-parser-perl=1.63-2 libssl1.1=1.1.1n-0+deb11u3 --dry-run