Re: wie repariert man apt ?

Autor: Christian Eichert <moga_at_timisoara.net>
Datum: 04.12.2004
habe ganz /var/cache/apt gelöscht

dann hat er gemeckert dass /var/cache/apt/archives nicht existiert ...

dann ich :
touch /var/cache/apt/archives

dann er :
/var/cache/apt/archives/partial existiert nicht ...

dann ich :
touch /var/cache/apt/archives/partial

dann:

multimedia:~# apt-get update
Hit http://ftp.de.debian.org stable/main Packages
Hit http://ftp.de.debian.org stable/main Release 

Hit http://ftp.de.debian.org stable/main Sources 

Hit http://ftp.de.debian.org stable/main Release 

Hit http://ftp.de.debian.org stable/main Packages 

Hit http://ftp.de.debian.org stable/main Release 

Hit http://ftp.de.debian.org stable/main Sources 

Hit http://ftp.de.debian.org stable/main Release 

Hit http://ftp.de.debian.org stable/main Packages 

Hit http://ftp.de.debian.org stable/main Release 

Hit http://security.debian.org stable/updates/main Packages 

Hit http://security.debian.org stable/updates/main Release 

Hit http://security.debian.org stable/updates/contrib Packages 

Hit http://security.debian.org stable/updates/contrib Release 

Hit http://security.debian.org stable/updates/non-free Packages 

Hit http://security.debian.org stable/updates/non-free Release 

Hit http://ftp.de.debian.org stable/main Sources 

Hit http://ftp.de.debian.org stable/main Release 

Hit http://ftp.de.debian.org stable/main Packages 

Hit http://ftp.de.debian.org stable/main Release 

Hit http://ftp.de.debian.org stable/main Sources 

Hit http://ftp.de.debian.org stable/main Release 

Hit http://ftp.de.debian.org stable/main Packages 

Hit http://ftp.de.debian.org stable/main Release 

Hit http://ftp.de.debian.org stable/main Sources 

Hit http://ftp.de.debian.org stable/main Release 

Hit ftp://mirror.switch.ch stable/non-free Packages 

Hit ftp://ftp.debian.nl stable/contrib Packages
Hit ftp://mirror.switch.ch stable/non-free Release
Hit ftp://ftp.debian.nl stable/contrib Release
Hit ftp://ftp.cz.debian.org stable/main Packages
Hit ftp://ftp.cz.debian.org stable/main Release
Hit http://non-us.debian.org stable/non-US/main Packages
Hit http://non-us.debian.org stable/non-US/main Release
Hit http://non-us.debian.org stable/non-US/main Sources
Hit http://non-us.debian.org stable/non-US/main Release
Hit http://non-us.debian.org stable/non-US/main Packages
Hit http://non-us.debian.org stable/non-US/main Release
Hit http://non-us.debian.org stable/non-US/main Sources
Hit http://non-us.debian.org stable/non-US/main Release
Hit http://non-us.debian.org stable/non-US/main Packages
Hit http://non-us.debian.org stable/non-US/main Release
Hit http://non-us.debian.org stable/non-US/main Sources
Hit http://non-us.debian.org stable/non-US/main Release
Hit http://non-us.debian.org stable/non-US/main Packages
Hit http://non-us.debian.org stable/non-US/main Release
Hit http://non-us.debian.org stable/non-US/main Sources
Hit http://non-us.debian.org stable/non-US/main Release
Hit http://non-us.debian.org stable/non-US/main Packages
Hit http://non-us.debian.org stable/non-US/main Release
Hit http://non-us.debian.org stable/non-US/main Sources
Hit http://non-us.debian.org stable/non-US/main Release
Reading Package Lists... Done
Building Dependency Tree... Done
multimedia:~#



multimedia:~# apt-get upgrade
Reading Package Lists... Done
Building Dependency Tree... Done
0 packages upgraded, 0 newly installed, 0 to remove and 0  not upgraded.
multimedia:~#

soweit so gut ...

multimedia:~# apt-get install --reinstall apt
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
   libc6 libstdc++2.10-glibc2.2
The following NEW packages will be installed:
   apt libc6 libstdc++2.10-glibc2.2
0 packages upgraded, 3 newly installed, 0 to remove and 0  not upgraded.
Need to get 615kB/4140kB of archives. After unpacking 15.5MB will be used.
Do you want to continue? [Y/n]
Get:1 ftp://ftp.cz.debian.org stable/main apt 0.5.4 [615kB]
Fetched 615kB in 6s (99.0kB/s) 

E: Cannot get debconf version. Is debconf installed?
(Reading database ... 0 files and directories currently installed.)
Unpacking libc6 (from .../libc6_2.2.5-11.5_i386.deb) ...
dpkg not recorded as installed, cannot check for epoch support !
dpkg: error processing /var/cache/apt/archives/libc6_2.2.5-11.5_i386.deb 
(--unpack):
  subprocess pre-installation script returned error exit status 1
Errors were encountered while processing:
  /var/cache/apt/archives/libc6_2.2.5-11.5_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
multimedia:~#


macht nicht passt wird passend gemacht ...


multimedia:~# apt-get install --reinstall debconf
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
   fileutils libc6 perl-base
The following NEW packages will be installed:
   debconf fileutils libc6 perl-base
0 packages upgraded, 4 newly installed, 0 to remove and 0  not upgraded.
Need to get 1302kB/4685kB of archives. After unpacking 17.4MB will be used.
Do you want to continue? [Y/n]
Get:1 ftp://ftp.cz.debian.org stable/main fileutils 4.1-10 [710kB]
Get:2 ftp://ftp.cz.debian.org stable/main perl-base 5.6.1-8.7 [497kB] 

Get:3 ftp://ftp.cz.debian.org stable/main debconf 1.0.32 [94.0kB] 

Fetched 1302kB in 12s (101kB/s) 

E: Cannot get debconf version. Is debconf installed?
(Reading database ... 0 files and directories currently installed.)
Unpacking libc6 (from .../libc6_2.2.5-11.5_i386.deb) ...
dpkg not recorded as installed, cannot check for epoch support !
dpkg: error processing /var/cache/apt/archives/libc6_2.2.5-11.5_i386.deb 
(--unpack):
  subprocess pre-installation script returned error exit status 1
Errors were encountered while processing:
  /var/cache/apt/archives/libc6_2.2.5-11.5_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
multimedia:~#



hmmm.........................
was soll das:
dpkg not recorded as installed, cannot check for epoch support !
was tut ihm jetzt nid ??

wie rekorde ich dpkg ?





Christian Leber wrote:
> On Sat, Dec 04, 2004 at 07:24:32PM +0100, Christian Eichert wrote:
> 
>>ich habe apt zerschossen.
>>ich habe aus versehen im /var/cache/apt einige dateien geloescht ...
>>ich weiss auch nicht mehr welche es waren ...
> 
> 
> Loesch sie alle und lass apt-get update laufen.
> 
> Gruss
> Christian Leber
> 


-- 
                                                            \|/
          CE                                               (o o)
-------------------------------------------------------oOO--U--OOo--
   Christian Eichert
   e-mail  moga@timisoara.net                          .oooO
   www     http://cv.ecxod.de                          (   )   Oooo.
-------------------------------------------------------\ (----(   )-
                                                         \_)    ) /
                                                               (_/
  "Be liberal in what you accept, and conservative in what you send."
                         Jon Postel, August 6, 1943 - October 16, 1998
Received on Sat Dec 4 22:25:43 2004

Dieses Archiv wurde generiert von hypermail 2.1.8.
Zurück zur UUGRN-Homepage.