[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Cross-Grade Debian 11 i386 -> amd64



Am 24.08.2025 um 11:14 schrieb Marc Haber:

Klingt danach als wäre das immer noch ein holpriger Ritt.

Mal so, mal so. Nach der ersten VM, in der die initrd nicht alle Tools hatte, und der zweiten, ab der ich die notwendigen Pakete manuell nachinstallierte, lief eine weitere Handvoll VMs völlig entspannt durch. Die nächste aber ist ein schwierigerer Fall, hier schießt sich crossgrader selbst die Beine (d.h. dpkg) weg:

 # crossgrader amd64
Installing initramfs binary architecture check hook...
arch check hook already installed.
Hook installation failed.
Hit http://mirror/debian bullseye InRelease
Hit http://mirror/debian-security bullseye-security InRelease
Hit http://mirror/debian bullseye-updates InRelease
Hit http://mirror/debian bullseye-proposed-updates InRelease
Fetched 0 B in 0s (0 B/s)
54 targets found.
apt-utils:amd64
apt:amd64
[...]
dpkg:amd64
[...]
xfsprogs:amd64
Do you want to continue [y/N]? y
Get:1 http://mirror/debian bullseye/main amd64 dpkg amd64 1.20.13 [2538 kB]
Get:2 http://mirror/debian bullseye/main amd64 apt amd64 2.2.4 [1491 kB]
Get:3 http://mirror/debian bullseye/main amd64 python3 amd64 3.9.2-3 [37.9 kB] Get:4 http://mirror/debian bullseye/main amd64 python3-apt amd64 2.2.1 [190 kB]
Fetched 4257 kB in 0s (0 B/s)
Parsing automatically installed packages...
...done
dpkg -i/--configure loop #1
(Reading database ... 37826 files and directories currently installed.)
Preparing to unpack .../archives/apt_2.2.4_amd64.deb ...
Unpacking apt:amd64 (2.2.4) over (2.2.4) ...
Preparing to unpack .../python3-apt_2.2.1_amd64.deb ...
Unpacking python3-apt:amd64 (2.2.1) over (2.2.1) ...
dpkg: regarding .../python3_3.9.2-3_amd64.deb containing python3:amd64, pre-dependency problem:
 python3 pre-depends on python3-minimal (= 3.9.2-3)

dpkg: error processing archive /var/cache/apt/archives/python3_3.9.2-3_amd64.deb (--install):
 pre-dependency problem - not installing python3:amd64
dpkg: regarding .../dpkg_1.20.13_amd64.deb containing dpkg:amd64, pre-dependency problem:
 dpkg pre-depends on libbz2-1.0

dpkg: error processing archive /var/cache/apt/archives/dpkg_1.20.13_amd64.deb (--install):
 pre-dependency problem - not installing dpkg:amd64
[...]

Tja, wer nur vier Pakete herunterlädt, dem fehlen eben 30-40 weitere.... Ich habe keinen Schimmer, was an der konkreten Maschine anders ist als bei den anderen, die an der Stelle alle Abhängigkeiten sauber ziehen. Sie hat APT::Install-Recommends "false"; gesetzt, aber das sollte ja wohl kaum den Download bzw. die Installation harter Abhängigkeiten verhindern. Bei der Installation von crossgrader selbst funktioniert es auch auf dem problematischen System einwandfrei, dass Abhängigkeiten nachgezogen werden:

# apt install crossgrader
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  arch-test dpkg-dev libdpkg-perl make patch python3-appdirs
Suggested packages:
qemu-user-static debian-keyring gcc | c-compiler git bzr make-doc diffutils-doc
Recommended packages:
build-essential gcc | c-compiler fakeroot libalgorithm-merge-perl libfile-fcntllock-perl
The following NEW packages will be installed:
  arch-test crossgrader dpkg-dev libdpkg-perl make patch python3-appdirs
[...]

Im Quellcode von crossgrader habe ich die Stelle, die Abhängigkeiten auflöst, nicht finden können. Evtl. ist die in python3-apt und nicht im Programm selbst. Wollte dort schauen, ob es einen Parameter gibt, der hier herangezogen wird und den ich anders setzen könnte.


Hat jemand eine Idee, warum die Abhängigkeiten ignoriert werden?


Danke & viele Grüße

Paul


Reply to: