Portál AbcLinuxu, 29. července 2025 07:56


Dotaz: Naboreny apt-get

8.11.2005 08:48 Martin Oles | skóre: 2
Naboreny apt-get
Přečteno: 233×
Odpovědět | Admin
Takze, zacnu od zacatku."Lamal" jsem KerioMailserver na Debiana. Nejdrive jsem si nainstaloval alien a rpm. Pak jsem pomoci alien zmeni balicek KerioMailserver.rpm na KerioMailserver.deb a pomoci
dkpg -i KerioMailserver.deb
nainstaloval. Vsechno zda se probehlo v poradu. Kerio chodi/chodilo jak ma. Dneska jsem zjistil, ze nefunguje
apt-get install balicek
. Obdrzel jsem hlasku:
thirteen:/# apt-get install balicek
Reading Package Lists... Error!
E: Unable to parse package file /var/lib/dpkg/status (1)
E: The package lists or status file could not be parsed or opened.
thirteen:/#
Usoudil jsem na naboreny system balicku, pustil jsem:
thirteen:/home/martin# dpkg --audit
The following packages are in a mess due to serious problems during
installation.  They must be reinstalled for them (and any packages
that depend on them) to function properly:
 kerio-mailserver     Kerio MailServer

thirteen:/home/martin# dpkg --status kerio-mailserver
Package: kerio-mailserver
Status: install reinstreq half-installed
Priority: extra
Section: alien
Installed-Size: 76664
Maintainer: martin (martin@localhost)
Architecture: i386
Version: 6.1.1-1
Config-Version: 6.1.1-1
Usoudil jsem, ze zkusim odinstalovat Kerio.
thirteen:/home/martin# dpkg -r kerio-mailserver
dpkg: error processing kerio-mailserver (--remove):
 Package is in a very bad inconsistent state - you should
 reinstall it before attempting a removal.
Errors were encountered while processing:
 kerio-mailserver
Kdyz to neslo "dopredu" tak to pujde dozadu.
thirteen:/home/martin# dpkg -i kerio-mailserver_6.1.1-1_i386.deb
Selecting previously deselected package kerio-mailserver.
(Reading database ... 24302 files and directories currently installed.)
Preparing to replace kerio-mailserver 6.1.1-1 (using kerio-mailserver_6.1.1-1_i386.deb) ...
Unpacking replacement kerio-mailserver ...
Setting up kerio-mailserver (6.1.1-1) ...

thirteen:/home/martin# dpkg --status kerio-mailserver
Package: kerio-mailserver
Status: install ok installed
Priority: extra
Section: alien
Installed-Size: 76664
Maintainer: martin (martin@localhost)
Architecture: i386
Version: 6.1.1-1
Dalsi audit ale probehl uz v pohode.
thirteen:/home/martin# dpkg --audit
Pak jsem pomoci
dpkg -R kerio-mailserver
odinstaloval Kerio. Bohuzel to nepomohlo.

Jeste snad pridam konfiguraci apt-get
thirteen:/# apt-config dump
APT "";
APT::Architecture "i386";
APT::Build-Essential "";
APT::Build-Essential:: "build-essential";
APT::Cache-Limit "241943904";
Dir "/";
Dir::State "var/lib/apt/";
Dir::State::lists "lists/";
Dir::State::cdroms "cdroms.list";
Dir::State::userstatus "status.user";
Dir::State::status "/var/lib/dpkg/status";
Dir::Cache "var/cache/apt/";
Dir::Cache::archives "archives/";
Dir::Cache::srcpkgcache "srcpkgcache.bin";
Dir::Cache::pkgcache "pkgcache.bin";
Dir::Etc "etc/apt/";
Dir::Etc::sourcelist "sources.list";
Dir::Etc::vendorlist "vendors.list";
Dir::Etc::vendorparts "vendors.list.d";
Dir::Etc::main "apt.conf";
Dir::Etc::parts "apt.conf.d";
Dir::Etc::preferences "preferences";
Dir::Bin "";
Dir::Bin::methods "/usr/lib/apt/methods";
Dir::Bin::dpkg "/usr/bin/dpkg";
DPkg "";
DPkg::Pre-Install-Pkgs "";
DPkg::Pre-Install-Pkgs:: "/usr/sbin/dpkg-preconfigure --apt || true";
Nejake navrhy? Dosla mi totiz fantazie. Diky moc.
Nástroje: Začni sledovat (0) ?Zašle upozornění na váš email při vložení nového komentáře.

Odpovědi

8.11.2005 08:59 pupala | skóre: 21
Rozbalit Rozbalit vše Re: Naboreny apt-get
Odpovědět | | Sbalit | Link | Blokovat | Admin
Co tak po uspesnom audite pouzit apt-get update ?
8.11.2005 09:11 Martin Oles | skóre: 2
Rozbalit Rozbalit vše Re: Naboreny apt-get
Bohuzel ...
thirteen:# apt-get update
Hit http://mirror.pacific.net.au stable/main Packages
Hit http://mirror.pacific.net.au stable/main Release
Hit http://mirror.pacific.net.au stable/main Sources
Hit http://mirror.pacific.net.au stable/main Release
Get:1 http://security.debian.org stable/updates/main Packages [141kB]
Get:2 http://security.debian.org stable/updates/main Release [110B]
Fetched 141kB in 4s (34.6kB/s)
Reading Package Lists... Error!
E: Unable to parse package file /var/lib/dpkg/status (1)
E: The package lists or status file could not be parsed or opened.
thirteen:#
8.11.2005 09:53 Robert Krátký | skóre: 94 | blog: Robertův bloček
Rozbalit Rozbalit vše Re: Naboreny apt-get
Odpovědět | | Sbalit | Link | Blokovat | Admin
Pak jsem pomoci

dpkg -R kerio-mailserver

odinstaloval Kerio.
Pokud jsi skutečně provedl tohle, tak jsi balík neodinstaloval. Parametr -R je krátkou verzí parametru --recursive, který odinstalaci neprovádí. Viz DPKG(1).

Odinstalaci provedeš pomocí parametru --remove nebo ještě lépe --purge.
9.11.2005 01:36 Martin Oles | skóre: 2
Rozbalit Rozbalit vše Re: Naboreny apt-get
Diky. Tohle vazne pomohlo (--purge). Jak jsem cetl man to teda ted vazne nevim. Jeste jednou diky. Jinak pro info, Kerio jsem se z licencnich duvodu rozhdl prozatim nahradit Qmail+dovecot+SquirrelMail.
thirteen:~# apt-get check
Reading Package Lists... Done
Building Dependency Tree... Done
thirteen:~#
9.11.2005 02:48 Martin Oles | skóre: 2
Rozbalit Rozbalit vše Re: Naboreny apt-get
Odpovědět | | Sbalit | Link | Blokovat | Admin
Stejne by me ale zajimalo, proc apt-get sel do kytek. Kontroloval jsem balicek a vsechno se jevilo v poradku.

Založit nové vláknoNahoru

Tiskni Sdílej: Linkuj Jaggni to Vybrali.sme.sk Google Del.icio.us Facebook

ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.