On Sun, Feb 24, 2002 at 10:10:01PM -0800, Binu R wrote:
>
> In my debian potato machine, I accedently removed some
> library files (using rm command, not using package
> removal). I was able to restore some of them by rein-
> stalling the packages. Now some packages like dhcp,
> telnetd etc which were installed previously cannot be
> removed or reinstlled using apt-get or dpkg. I am get-
> ting the following error message from apt-get.
> How can I get it corrected ?
>
Lesson #1 : Never remove any debian installed package
by doing a rm -f. It leaves the dpkg data-
base intact and subsequent removal/ install
attempts would cause problems.
Lesson #2 : In any debian package related problems fall
back on dpkg.
a) Try: dpkg --audit
This will give a list of all packages not
correctly configured, correct these first
with dpkg --configure <package name>
b) Do: dpkg --remove <package name> for those
packages which you have removed, and then
do a dpkg --purge to remove the conf files
and stubs left behind.
c) In case you face failure here, you need to
repeat with the dpkg --force prefix to the
failures list. See man pages for syntax.
d) Re-install what else is needed with dpkg -i
HTH
Bish
--
:
####[ Linux One Stanza Tip (LOST) ]###########################
Sub : Environment variables LOST #173
You can permanently set environment variables for your shell
by putting them in a startup file for the shell. The name of
the startup file varies depending on the shell - csh and tcsh
uses .login, bash, ash, ksh and zsh use .profile. When using
bash, ash, ksh or zsh, don't forget to export the variable.
####<From : freebsd fortune>##################################
:
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help