Re: Jak obnovit smazany startovaci skript ?
To |
Debian CZ/SK project discussion list <czdebian-l zavinac debian bod cz> |
From |
Jaroslav Aster <orm zavinac humlak bod cz> |
Date |
Tue, 11 Sep 2007 14:27:06 +0200 |
Ahoj,
Roman Beitl píše v Út 11. 09. 2007 v 13:28 +0200:
> Dobry den,
> podarilo se mi prijit o startovaci skript od balicku openswan:
> /etc/init.d/ipsec
>
> Zkousel jsem obnovu timto zpusobem s nasledujici chybou:
>
> ----------------------------------------------------
> pluto:/etc# aptitude reinstall openswan
>
> Reading Package Lists... Done
> Building Dependency Tree
> Reading extended state information
> Initializing package states... Done
> Reading task descriptions... Done
> The following packages will be REINSTALLED:
> openswan
> 0 packages upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 1
> not upgraded.
> Need to get 0B of archives. After unpacking 0B will be used.
> Writing extended state information... Done
> Setting up openswan (2.2.0-8) ...
> update-rc.d: /etc/init.d/ipsec: file does not exist
> dpkg: error processing openswan (--configure):
> subprocess post-installation script returned error exit status 1
> Errors were encountered while processing:
> openswan
> E: Sub-process /usr/bin/dpkg returned an error code (1)
> Ack! Something bad happened while installing packages. Trying to recover:
> Setting up openswan (2.2.0-8) ...
> update-rc.d: /etc/init.d/ipsec: file does not exist
> dpkg: error processing openswan (--configure):
> subprocess post-installation script returned error exit status 1
> Errors were encountered while processing:
> openswan
> --------------------------------------------------------
>
> Jedine reseni, ktere bych ale nechtel moc pouzit je zaloha configuracnich
> souboru a nasledny uninstall/install balicku openswan.
>
> Nabizi se tedy jeste nejake reseni jak tento chybejici soubor obnovit aniz
> bych balicek musel odinstalovavat?
>
pokud ti dpkg zahlásilo chybu při reinstalaci balíčku openswan protože
neexistuje soubor /etc/init.d/ipsec, tak podle mě nejjednoduší řešení je
ten soubor vytvořit, tj.
touch /etc/init.d/ipsec
a pak ten balíček reinstalovat.
Pokud by to nepomohlo, tak si stáhni balíček a pak si z toho balíčku,
např. pomocí mc, ten init script vydoluj a zkopíruj ho ručně
do /etc/init.d.
--
Jaroslav Aster <orm zavinac humlak bod cz>
Partial thread listing:
- Re: Jak obnovit smazany startovaci skript ?, (pokračuje)