staging.inyokaproject.org

Debian Lenny - Alle Pakete neu installieren

Status: Ungelöst | Ubuntu-Version: Nicht spezifiziert
Antworten |

raffis

Anmeldungsdatum:
24. Mai 2010

Beiträge: 49

Hallo

Wie kann ich alle Pakete neu installieren, ich denke mir hat es die ganze deb Datenbank (Debian Lenny Aktive Xen Domain0) zerfezt.

Mit

dpkg --get-selections

bekomme ich eine leere Ausgabe und wenn ich egal wie ein Paket installieren will bekomme ich Fehler.

Danke

Bearbeitet von tomtomtom:

Bitte gib in Zukunft deine Ubuntu-Version an. Danke!

Bearbeitet von tomtomtom:

Bitte verwende in Zukunft Codeblöcke, um die Übersicht im Forum zu verbessern. Danke!

Bearbeitet von tomtomtom:

Bitte lese dir Richtig Fragen durch.

Bearbeitet von tomtomtom:

Distribution in Titel eingefügt

Moderiert von tomtomtom:

Dieses Thema wurde verschoben. Sorry, in den Support-Foren wird nur Support für Ubuntu-Versionen geleistet.

tomtomtom Team-Icon

Supporter
Avatar von tomtomtom

Anmeldungsdatum:
22. August 2008

Beiträge: 55572

Du hast aber schon

dpkg --get-selections | grep "\binstall" | awk '{print $1}' > /tmp/dpkg.log 

komplett eingeben?

Neuinstallieren wäre dann mit

sudo xargs -n1 apt-get --reinstall install -y < /tmp/dpkg.log 

möglich.

raffis schrieb:

wenn ich egal wie ein Paket installieren will bekomme ich Fehler.

Bitte beschreibe, welche Schritte du unternommen hast und poste ggf. die Fehlermeldungen hier.

raffis

(Themenstarter)

Anmeldungsdatum:
24. Mai 2010

Beiträge: 49

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)

tomtomtom Team-Icon

Supporter
Avatar von tomtomtom

Anmeldungsdatum:
22. August 2008

Beiträge: 55572

raffis schrieb:

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. 😉

😳 Hast du natürlich Recht. *Vom Schlauch runter geh*

Wie vorhin geschrieben:

Mit

dpkg --get-selections

bekomme ich eine leere Ausgabe

Okay, sowas hab ich noch nie gesehen.

System:

(Debian Lenny Aktive Xen Domain0)

Aber das ist auf Debian ja wohl gleich wie auf Ubuntu.

Sollte so sein.

Die üblichen Verdächtigen hast du schon durch?

apt-get -f install
dpkg --configure -a

Was sagt

apt-get dist-upgrade -f

?

Was hast du gemacht, bevor es nicht mehr funktioniert hat?

raffis

(Themenstarter)

Anmeldungsdatum:
24. Mai 2010

Beiträge: 49

Hallo tomtomtom

Die üblichen Verdächtigen hast du schon durch?

apt-get -f install dpkg --configure -a

Ja habe ich bereits versucht, aber ohne Erfolg.

Mit apt-get dist-upgrade -f bekomme ich ebenfalls einen Fehler.

[root@rsgos-sv-001 ~]=> apt-get dist-upgrade -f
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
Calculating upgrade... Done
The following NEW packages will be installed:
  apt apt-utils base-files base-passwd bash bash-completion bsdmainutils bsdutils coreutils debconf debconf-i18n debian-archive-keyring debianutils diff dpkg
  e2fslibs e2fsprogs findutils gawk gnupg gpgv grep gzip hostname initscripts libacl1 libattr1 libblkid1 libbz2-1.0 libc6 libcomerr2 libdb4.6 libgcrypt11
  libgnutls26 libgpg-error0 libgpm2 libldap-2.4-2 liblocale-gettext-perl libncurses5 libpam-modules libpam-runtime libpam0g libpng12-0 libreadline5 libsasl2-2
  libsasl2-modules libselinux1 libsepol1 libslang2 libss2 libssl0.9.8 libstdc++6 libtasn1-3 libtext-charwidth-perl libtext-iconv-perl libtext-wrapi18n-perl
  libusb-0.1-4 libuuid1 login lsb-base lzma mktemp mount ncurses-base ncurses-bin passwd perl-base psmisc readline-common sed sysv-rc sysvinit sysvinit-utils tar
  tzdata util-linux uuid-runtime zlib1g
The following packages will be upgraded:
  gcc-4.3-base libgcc1
2 upgraded, 78 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 10.4MB/32.5MB of archives.
After this operation, 96.1MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://mirror.switch.ch lenny/main base-passwd 3.5.20 [39.7kB]
Get:2 http://mirror.switch.ch lenny/main gawk 1:3.1.5.dfsg-4.1 [685kB]
Get:3 http://mirror.switch.ch lenny/main base-files 5lenny5 [57.2kB]
Get:4 http://mirror.switch.ch lenny/main debianutils 2.30 [55.4kB]
Get:5 http://mirror.switch.ch lenny/main bash 3.2-4 [586kB]
Get:6 http://security.debian.org lenny/updates/main libpng12-0 1.2.27-2+lenny3 [166kB]
Get:7 http://mirror.switch.ch lenny/main diff 2.8.1-12 [187kB]
Get:8 http://mirror.switch.ch lenny/main libcomerr2 1.41.3-1 [41.6kB]
Get:9 http://mirror.switch.ch lenny/main e2fslibs 1.41.3-1 [131kB]
Get:10 http://mirror.switch.ch lenny/main libpam-runtime 1.0.1-5+lenny1 [165kB]
Get:11 http://mirror.switch.ch lenny/main libpam0g 1.0.1-5+lenny1 [104kB]
Get:12 http://mirror.switch.ch lenny/main libpam-modules 1.0.1-5+lenny1 [294kB]
Get:13 http://mirror.switch.ch lenny/main passwd 1:4.1.1-6+lenny1 [873kB]
Get:14 http://mirror.switch.ch lenny/main libuuid1 1.41.3-1 [44.9kB]                                                                                               
Get:15 http://mirror.switch.ch lenny/main libblkid1 1.41.3-1 [56.7kB]                                                                                              
Get:16 http://mirror.switch.ch lenny/main libss2 1.41.3-1 [46.5kB]                                                                                                 
Get:17 http://mirror.switch.ch lenny/main e2fsprogs 1.41.3-1 [770kB]                                                                                               
Get:18 http://mirror.switch.ch lenny/main findutils 4.4.0-2 [541kB]                                                                                                
Get:19 http://mirror.switch.ch lenny/main grep 2.5.3~dfsg-6 [278kB]                                                                                                
Get:20 http://mirror.switch.ch lenny/main gzip 1.3.12-6+lenny1 [103kB]                                                                                             
Get:21 http://mirror.switch.ch lenny/main hostname 2.95 [11.8kB]                                                                                                   
Get:22 http://mirror.switch.ch lenny/main login 1:4.1.1-6+lenny1 [855kB]                                                                                           
Get:23 http://mirror.switch.ch lenny/main mktemp 1.5-9 [10.8kB]                                                                                                    
Get:24 http://mirror.switch.ch lenny/main mount 2.13.1.1-1 [138kB]                                                                                                 
Get:25 http://mirror.switch.ch lenny/main ncurses-bin 5.7+20081213-1 [305kB]                                                                                       
Get:26 http://mirror.switch.ch lenny/main sed 4.1.5-6 [250kB]                                                                                                      
Get:27 http://mirror.switch.ch lenny/main libsepol1 2.0.30-2 [115kB]                                                                                               
Get:28 http://mirror.switch.ch lenny/main lsb-base 3.2-20 [19.5kB]                                                                                                 
Get:29 http://mirror.switch.ch lenny/main sysvinit-utils 2.86.ds1-61 [71.1kB]                                                                                      
Get:30 http://mirror.switch.ch lenny/main initscripts 2.86.ds1-61 [68.3kB]                                                                                         
Get:31 http://mirror.switch.ch lenny/main sysv-rc 2.86.ds1-61 [63.8kB]                                                                                             
Get:32 http://mirror.switch.ch lenny/main sysvinit 2.86.ds1-61 [113kB]                                                                                             
Get:33 http://mirror.switch.ch lenny/main tar 1.20-1 [785kB]                                                                                                       
Get:34 http://mirror.switch.ch lenny/main tzdata 2010a-0lenny1 [773kB]                                                                                             
Get:35 http://mirror.switch.ch lenny/main libslang2 2.1.3-3 [457kB]                                                                                                
Get:36 http://mirror.switch.ch lenny/main util-linux 2.13.1.1-1 [525kB]                                                                                            
Get:37 http://mirror.switch.ch lenny/main bsdutils 1:2.13.1.1-1 [61.7kB]                                                                                           
Get:38 http://mirror.switch.ch lenny/main ncurses-base 5.7+20081213-1 [178kB]                                                                                      
Get:39 http://mirror.switch.ch lenny/main bsdmainutils 6.1.10 [172kB]                                                                                              
Get:40 http://mirror.switch.ch lenny/main bash-completion 20080705 [89.2kB]                                                                                        
Get:41 http://mirror.switch.ch lenny/main psmisc 22.6-1 [84.7kB]                                                                                                   
Get:42 http://mirror.switch.ch lenny/main uuid-runtime 1.41.3-1 [48.5kB]                                                                                           
Fetched 10.4MB in 22s (456kB/s)                                                                                                                                    
E: Internal Error, Could not perform immediate configuration (2) on libgcc1

Das Problem denke ich besteht schon länger daher kann ich nicht sagen was der Auslöser war, aber ich denke ich habe damals libc6 manuel installieren wollen.

Antworten |