You are not logged in.

#1 2010-11-09 20:51:38

Doctor Drive
Member
From: Ukraine
Registered: 2010-08-11
Posts: 167
Website

[Solved] update-alternatives wtf?

$ update-alternatives
bash: update-alternatives: command not found
$ pacman -Q update-alternatives
error: package "update-alternatives" not found
$ sudo pacman -Ss update-alternatives
$ #nothing found

Last edited by Doctor Drive (2010-11-09 21:04:05)

Offline

#2 2010-11-09 20:58:01

flamelab
Member
From: Athens, Hellas (Greece)
Registered: 2007-12-26
Posts: 2,160

Re: [Solved] update-alternatives wtf?

Srsly ?

Offline

#3 2010-11-09 20:58:24

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,538

Re: [Solved] update-alternatives wtf?

This is not debian

Offline

#4 2010-11-09 21:03:39

Doctor Drive
Member
From: Ukraine
Registered: 2010-08-11
Posts: 167
Website

Re: [Solved] update-alternatives wtf?

Thanks... o__O

Offline

#5 2010-11-11 04:49:49

cyrilrbt
Member
From: Montreal
Registered: 2010-11-11
Posts: 3
Website

Re: [Solved] update-alternatives wtf?

Hey,
So I was asking myself that same question a few weeks ago, when I noticed that Arch had switched to python 3.1 by default (broke many things on my server), and I just changed the symlink... Is that the "correct" way of doing so with Arch?

Offline

#6 2010-11-11 05:08:03

flamelab
Member
From: Athens, Hellas (Greece)
Registered: 2007-12-26
Posts: 2,160

Re: [Solved] update-alternatives wtf?

1) You've got to fix your (possibly) AUR python2 packages you have on your server, since python3 is default
2)Symlinking is not correct in any Linux distribution.

Offline

#7 2010-11-11 05:50:47

cyrilrbt
Member
From: Montreal
Registered: 2010-11-11
Posts: 3
Website

Re: [Solved] update-alternatives wtf?

Hey flamelab,

I did point 1, I installed python2 to have a python that works with software I use, and regarding your point 2, /usr/bin/python was a symlink to python3 (IIRC), so if symlinking is not the correct way to do it, what is?

Offline

#8 2010-11-11 05:54:22

flamelab
Member
From: Athens, Hellas (Greece)
Registered: 2007-12-26
Posts: 2,160

Re: [Solved] update-alternatives wtf?

It is to point your python programs to python2 (/usr/bin/python2 or /usr/bin/env python2) not modify your system symlinks, it's wrong. Ask the devs and they will say the same.

Offline

#9 2010-11-12 03:59:35

cyrilrbt
Member
From: Montreal
Registered: 2010-11-11
Posts: 3
Website

Re: [Solved] update-alternatives wtf?

This is really wrong, the python version dependency is supplied in setup.py, the source code shouldn't have to change for that, especially since python2 is not a standard executable across platforms, which in turn renders the multiplatform thing from python useless.
I'll keep changing symlinks, just the way update-alternatives does it, because all distros work like that...

Offline

#10 2010-11-12 05:11:12

flamelab
Member
From: Athens, Hellas (Greece)
Registered: 2007-12-26
Posts: 2,160

Re: [Solved] update-alternatives wtf?

Report that to the devs since you find that "wrong" and since "all distros work like that".

Offline

#11 2010-11-12 05:25:03

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [Solved] update-alternatives wtf?

The OP has marked this solved. And, as flamelab points out, the ensuing discussion is now pointless.

Closing


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB