-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, Jan 09, 2007 at 06:54:54PM +0000, Wackojacko wrote:
> Andrew Sackville-West wrote:
> >On Tue, Jan 09, 2007 at 08:43:36AM -0800, Andrew Sackville-West wrote:
> >>On Tue, Jan 09, 2007 at 04:14:55PM +0000, Wackojacko wrote:
> >>>Due to changing partitions around I managed to mess up my Debian Sid 
> >>>AMD64 install.  I reinstalled from scratch and then restored my /etc 
> >>>directory from a backup.  Now none of the commands in /etc/alternative 
> >>>work (java, wx-config x-www-browser etc).  All of the symlinks are 
> >>>present and I have tried update-alternatives --all with no luck.
> >>>
> >>>If I add /etc/alternatives to my PATH then they work again, but I don't 
> >>>remember having to do this before.
> >>>
> >>>Should /etc/alternatives be in my PATH, if so should I add it to 
> >>>/etc/profile.  If not, anyone got any ideas how to restore the 
> >>>alternatives system to its former state?
> 
> Andrew
> 
> Thanks for the responses
> 
> >>not in my path... have you checked out /var/lib/dpkg/alternatives? its
> >>all text files and may relate to your problem.
> >
> 
> This seems to be just the options used by the update-alternatives 
> command when --config is chosen.  Seems OK.
> 
> >hmmm... I did some more poking around, maybe this helps
> >
> >typing x-www-browser loads iceweasel. so that works. 
> >
> >which x-www-browser returns /usr/bin/x-www-browser which is a symlink
> >to /etc/alternatives/x-www-browser. so, do you have symlinks in
> >/usr/bin (and probably elsewhere) that point to the /etc/alternatives
> >directory? 
> >
> >hth
> >
> >A
> 
> It certainly does, I do not have all of these symlinks.  Obviously, I 
> can create them manually but I would prefer to know why they disappeared 
> in the first place.  What command is suppose to create them?
> 
> Thanks
> 
Hi Wackojacko,
My guess would be to use 'aptitude reinstall' on the packages that
contain the alternative. Or maybe purge/install, but that would be much
harder to do if there are dependencies involved. I'd expect symlinks to
be created with postinstall scripts, so you may want to re-run them.
Those scripts are in /var/lib/dpkg/info/$PKG.postinstall and are usually
bash scripts.
Cheers,
Kev
- -- 
|  .''`.  == Debian GNU/Linux == |       my web site:       |
| : :' :      The  Universal     |   'under construction'   |
| `. `'      Operating System    | go to counter.li.org and |
|   `-    http://www.debian.org/ |    be counted! #238656   |
|   my keysever: subkeys.pgp.net |     my NPO: cfsg.org     |
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFFo/Bvv8UcC1qRZVMRAhz7AJ4wRZ1ipYGagTqZSAy1O1xJmIjZeQCggS62
hesFrdsfs595Nq+LYJiz+6U=
=yNQC
-----END PGP SIGNATURE-----


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to