[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Upgrade problems for sysvinit 2.86.ds1-16 -> 2.86.ds1-18

[Petter Reinholdtsen]
> A quick way out is to reinstall all the packages with scripts in
> /etc/init.d/.

This way proved to be too quick, trying to reinstall removed but not
purged packages with init.d scripts left behind in /etc/init.d/.  I
recommend using something like this instead, to only reinstall the
installed packages:

    for p in `dpkg -S /etc/init.d/*|cut -d: -f1|sort -u`; do
      if dpkg --get-selections $p | grep -qw install ; then
        echo reinstalling $p
        apt-get --reinstall install $p

I dropped the '-y' flag too, to leave more manual control over the
process, after a report from a user getting a lot of KDE removed when
the removed fam package tried to reinstall and throw out KDE.

Petter Reinholdtsen

Reply to: