Hallo tomtomtom
Was bringt mir das
dpkg --get-selections | grep "\binstall" | awk '{print $1}' > /tmp/dpkg.log Wenn die Ausgabe
dpkg --get-selections
leer ist. 😉
Wie vorhin geschrieben:
Mit
dpkg --get-selections
bekomme ich eine leere Ausgabe
System:
(Debian Lenny Aktive Xen Domain0)
Aber das ist auf Debian ja wohl gleich wie auf Ubuntu.
Ich muss wahrscheinlich alle Pakete neuinstallieren, die Frage ist wie das am einfachsten geht.
Wenn ich ein einzelnes Paket installieren will:
[root@rsgos-sv-001 tmp]=> apt-get install ntfs-3g
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
libgcc1: Depends: libc6 (>= 2.7-1) but it is not going to be installed
ntfs-3g: Depends: libc6 (>= 2.7-1) but it is not going to be installed
Depends: libntfs-3g31 but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
[root@rsgos-sv-001 tmp]=> apt-get install libc6
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
gcc-4.3-base libgcc1
Suggested packages:
locales glibc-doc libc6-i686
The following NEW packages will be installed:
libc6
The following packages will be upgraded:
gcc-4.3-base libgcc1
2 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 0B/4679kB of archives.
After this operation, 11.3MB of additional disk space will be used.
Do you want to continue [Y/n]? y
E: Cannot get debconf version. Is debconf installed?
debconf: apt-extracttemplates failed: Bad file descriptor
(Reading database ...
dpkg: serious warning: files list file for package `libgcc1' missing, assuming package has no files currently installed.
dpkg: serious warning: files list file for package `gcc-4.3-base' missing, assuming package has no files currently installed.
0 files and directories currently installed.)
Preparing to replace gcc-4.3-base 4.3.2-1.1 (using .../gcc-4.3-base_4.3.2-1.1_i386.deb) ...
Unpacking replacement gcc-4.3-base ...
dpkg: error processing /var/cache/apt/archives/gcc-4.3-base_4.3.2-1.1_i386.deb (--unpack):
unable to create updated files list file for package gcc-4.3-base: No such file or directory
Unpacking libc6 (from .../libc6_2.7-18lenny4_i386.deb) ...
A non-dpkg owned copy of the libc6-i686 package was found.
It is not safe to upgrade the C library in this situation;
please remove that copy of the C library and try again.
dpkg: error processing /var/cache/apt/archives/libc6_2.7-18lenny4_i386.deb (--unpack):
subprocess pre-installation script returned error exit status 1
Preparing to replace libgcc1 1:4.3.2-1.1 (using .../libgcc1_1%3a4.3.2-1.1_i386.deb) ...
Unpacking replacement libgcc1 ...
dpkg: error processing /var/cache/apt/archives/libgcc1_1%3a4.3.2-1.1_i386.deb (--unpack):
unable to create updated files list file for package libgcc1: No such file or directory
Errors were encountered while processing:
/var/cache/apt/archives/gcc-4.3-base_4.3.2-1.1_i386.deb
/var/cache/apt/archives/libc6_2.7-18lenny4_i386.deb
/var/cache/apt/archives/libgcc1_1%3a4.3.2-1.1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)