Debian - prechod z RH - VYRESENO
Jirka Mares
linux na edoras.cz
Úterý Únor 24 18:28:38 CET 2004
Jirka Mares wrote:
>
>> Skoro, len treba napisat 'apt-get install zebra' a on uz vsetko pohlada.
>> Treba napisat meno balicku bez verzie a koncovky.
>>
>>
> Tak jsem to zkusil a dostal jsem tuto hlasku:
>
> ricczf:~# apt-get install zebra
> Reading Package Lists... Done
> Building Dependency Tree... Done
> You might want to run `apt-get -f install' to correct these:
> Sorry, but the following packages have unmet dependencies:
> zebra: Depends: libsnmp4.2 but it is not going to be installed
> E: Unmet dependencies. Try 'apt-get -f install' with no packages (or
> specify a solution).
>
> Proc ten libsnmp4.2 nenainstaluje sam a chce to po me? (tim -f asi
> zpusobim jen to, ze instalaci provede i pres to, ze tam nebude ten
> libsnmp4.2, ze?)
Tak jsem se detailneji podival do man apt-get - ono se to nekdy fakt
hodi ;-).
Ja totiz implicitne predpokladal, ze kdyz mi rika, at zkusim "apt-get -f
install", ze je to ekvivalent "rpm -f", tedy "force". Ze tim tedy
problem se zavislosti obejdu, nikoliv vyresim. Ale ono je to uplne jinak:
man apt-get:
-f
--fix-broken
Fix; attempt to correct a system with broken dependencies
in place. ... The option is sometimes necessary when running APT for
the first time;
Takze jsem jednou zkusil napsat
apt-get -f install
a pak uz jsem jen jako byvaly redhatista-mandrakista valil oci. :-)))
diky za rady
jirka
Další informace o konferenci Linux