I have badly damaged my Debian with some stupid stunt. I am now trying to fix it with a live CD,
mounting the system on HDD, and
chrooting into the system to fix it with aptitude.
I am able to fix my broken with aptitude, but the
chrooted system cannot connect to the network.
My idea would be to download the deb packages for aptitude from the live CD system with
apt-get download and copy these into
/var/cache/apt/archives for the
chrooted system to find.
How can I export all packages that need to be downloaded from aptitude?
EDIT on request: This was the stupid stunt:
I was converting a i386 installation to amd64 and during that course, both I was installing a lot of packages for amd64 and uninstalling those for i386 in one go. That led to some essential commands not available on the system any more and unconfigured amd64 packages.
I could mount the HDD from the live CD, unpacking files with
ar x package_amd64.deb, and
tar -xf data.tar.xz, and copying the resulting folders to the HDD to continue.