The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
1answer
22 views

Set clang-3.8 as default

I have installed clang 3.0 and clang 3.8: $ sudo update-alternatives --config clang update-alternatives: error: no alternatives for clang. How can I set 3.8 as /usr/bin/clang?
3
votes
0answers
16 views

How to re-create the x-terminal-emulator alternative?

I've just installed Ubuntu Gnome 16.04 and while tryng to add "terminix" as the default terminal emulator I've messed up really bad the x-terminal-emulator alternative, totally my fault! I'd enter ...
0
votes
0answers
39 views

XTerm invoked via x-terminal-emulator behaves oddly

Following another post asking how to get CtrlAltT to invoke an XTerm window instead of a gnome-terminal, it offered this solution: sudo update-alternatives --config x-terminal-emulator This is ...
0
votes
1answer
35 views

urxvt misbehaving when set as the default terminal

I'm on 16.04 and I've been exploring urxvt and it's features and gotten pretty attached to it. I have a simple configuration for now stored in ~/.Xdefaults. And it works fine whenever I launch it from ...
0
votes
0answers
30 views

Upgrading to Newest Java 8 Update whilte using Update-Alternatives

I have two java versions installed on my PC (ubuntu 14.04): java 7 and java 8: felipe@felipe-XPS-8300:~$ sudo update-alternatives --list java /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java /usr/lib/...
0
votes
1answer
35 views

How to redirect ant to use java from jdk in /usr instead from jre in /opt?

I have followed a blog set up jre on my machine in /opt/ directory. Then I redirected firefox to use libnpjp2.so from /opt/java/64/jre1.8.0_73/lib/amd64/libnpjp2.so. Now I have to install another ...
0
votes
0answers
82 views

Manually download flashplugin-installer

When my web browser informs me that my version of Flash is outdated, I update with the command $ sudo apt-get install flashplugin-installer Which works fine except the download is very slow (e.g., ...
0
votes
0answers
35 views

Edit crontab using editor set by update-alternatives instead of select-editor option

man crontab makes me think it is possible: The -e option is used to edit the current crontab using the editor specified by the VISUAL or EDITOR environment variables. After you exit from the ...
1
vote
0answers
63 views

Why after adding alternative to clang I get undefined references?

I have clang3.6 installed and it works fine but as soon as I try to add alternative to it by sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang++-3.6 10 and use it while ...
0
votes
0answers
83 views

update-alternatives not found

The problem I have is as follows: $ sudo apt-get upgrade Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt-get -f install' to ...
1
vote
2answers
114 views

update-alternatives arguments - <link> and <path> can't be the same

I want to add vimb to the default browsers in x-www-browser. I don't see it in update-alternatives --config x-www-browser, so I think I have to --install it. After some time spent in reading man ...
0
votes
1answer
55 views

Trying to install JDK [duplicate]

I'm trying to install JDK on ubuntu 14.04 LTS. I downloaded it from oracle website. Than I extracted it and moved in usr/lib/java. It says java doesn't exist but it does. I use this video https://...
3
votes
1answer
382 views

Using update-alternatives just for the current shell

I'm using Ubuntu 15.10, so the default g++ version is 5.2.1. Since I need to change it to the 4.7 often, I'm using update-alternatives; I've noticed, however, that the default compiler is not restored ...
1
vote
2answers
84 views

How to exit default www-browser?

I inadvertently landed in the www-browser application. This is a text based web browser. How do I exit it?
0
votes
0answers
248 views

How to use sudo update-alternatives properly?

I'm trying to run this commando: sudo update-alternatives --install /usr/bin/java java/usr/local/java/jdk1.8.0_66/bin/java 1 But it says: sudo update-alternatives --install /usr/bin/java java/...
0
votes
2answers
192 views

Update ubuntu 15.04 to 15.10

I am currently using ubuntu 15.04, but I want to update this version to the latest ubuntu version i.e 15.10.I have changed the settings as required, but I am not able to find update manager in the ...
3
votes
1answer
903 views

java alternatives - Change auto mode

I have three JDKs installed, all needed for some projects I work on. When I run sudo update-alternatives --config java I get the output: There are 3 choices for the alternative java (providing /usr/...
0
votes
1answer
50 views

Tried switching between python verions. Ended up messing the whole thing. How to fix it?

I actually have three questions: So I was trying to switch between python2.7 and python3.4. I added both the alternatives using update-alternatives, giving priorities 1 and 2, respectively. It was ...
1
vote
1answer
234 views

update-alternatives: change version of LLVM tools

I have llvm 3.4 and 3.5 installed on my system. I want to switch between these version. This is possible using update-alternatives, however it changes default version of only one tool of the package ...
3
votes
2answers
2k views

How to inspect the currently used Nvidia driver version and switch it to another alternative?

I'm trying to find out which Nvidia driver is being used currently in the system (and how to perhaps switch it to another version or the open-source nouveau driver). modinfo knows about several ...
2
votes
1answer
26 views

Update custom application

I'm developing Java application that runs on Ubuntu. Application is something like simple web service and is always running. I need to solve application update problem. I'm planing to place new ...
0
votes
0answers
48 views

How to build Qt from source with not default version of gcc compiler?

P.S. The problem is solved. It has nothing to do with Ubuntu particularly, of course. One needs to manipulate with paths to gcc versions using "update-alternatives" command (http://charette.no-ip.com:...
0
votes
1answer
684 views

Adding custom changes to the OpenBlas for Python

My question: How do I get Python to use my own compiled OpenBLAS version? Background The Theano install guide suggests that one should test that the BLAS library components associated are correctly ...
1
vote
0answers
38 views

Use package without declaring its version

I have installed g++ from here. When I want to compile a program, I have to use g++-4.9 myle.cpp. How can I set it to use without declaring its version g++ myle.cpp?
1
vote
1answer
2k views

using alternatives with java 7 and java 8 on 14.04.2 LTS

I had java 7 installed. Using the PPA repository, I added java 8. sudo apt-get install oracle-java8-installer That made java 8 the default. So, I tried to use update-alternatives to make java 7 the ...
2
votes
3answers
407 views

atlas lib symlink stuck in master-slave deadlock

after a few rounds of installs and removes, trying to get Atlas and OpenBLAS to be friend with each other, i have this update-alternatives error, which i think is really a master-slave deadlock, ie. ...
0
votes
1answer
617 views

Update alternatives java for all users

I'm using ubuntu 14.04 with multiple java versions on it. I'm trying to change the current java version for my user with: sudo update-alternatives --config java sudo update-alternatives --...
3
votes
1answer
574 views

Undo update-alternatives

I had to run the command sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 20, but unfortunately I misstyped and wrote sudo update-alternatives --install /usr/bin/gcc gccc /usr/bin/...
0
votes
1answer
479 views

how to use “update-alternatives” to manage multiple installed version of the same app

I frequently encounter path related problems while compiling or running an app.I have two versions of node in my system, one is from official repo, the other manually installed from source. Today I ...
1
vote
1answer
100 views

12.10: unable to upgrade/install softwares [duplicate]

i have changed new release with old release in order to update also unchecked ppa. please help me out.im getting a getting a error message: W: Failed to fetch http://in.old-releases.ubuntu.com/ubuntu/...
16
votes
1answer
10k views

What are the differences between vim.basic and vim.tiny? [duplicate]

My favorite editor is Vim, so I decided to change the default editor of my ubuntu installation with the following command: sudo update-alternatives --config editor A prompt (with listed options) ...
0
votes
1answer
4k views

Every reboot alternatives for x86_64-linux-gnu_gl_conf and i386-linux-gnu_gl_conf are dropped to mesa

That is. I've removed nvidia drivers with running nvidia-installer.run --uninstall, rebooted, installed fglrx, rebooted again and found that amdconfig is not found. I've googled the solution and ...
1
vote
1answer
131 views

Change location of log file for “update-alternatives”

I am currently managing my logging system but while setting all log location a problem occured: I want to change the location of the file /var/log/alternatives.log and I have done some research. This ...
1
vote
2answers
103 views

How to remove dummy packages?

I have searched and I believe there is no a question like this one. Whenever my laptop finds updates the Software Updater application comes up as usual however it is always showing the package ...
6
votes
1answer
2k views

Why I can't use update-alternatives to select Python 2 or 3?

Is there a particular reason on why update-alternatives is not working with Python since ubuntu comes bundled with different versions?
1
vote
1answer
34 views

Update 10.04 to 12.04

In home PC Ubuntu 10.04 installed and no internet connection. I want to update it to 12.04. i want download from my office PC (it is connected with internet) Can I download only updated portion not ...
0
votes
1answer
354 views

Where do I get the update-java-alternatives command. What package does it come from?

Where do I get the 'update-java-alternatives' command. What package does it come from? My understanding is that you use 'update-alternatives' to initially add a Java instance to your system but once ...
3
votes
1answer
8k views

Run different java based on command line parameter

I have multiple java installations on my machine and need to use different versions all the time. I have found that the currently used JVM can be changed by the commands update-alternatives and update-...
7
votes
1answer
4k views

How to prevent openjdk-6-jre-headless from clobbering Oracle JDK installation?

My automated build server runs a job that depends on Apache Ant. The script invokes apt-get install ant. Ant depends on openjdk-6-jre-headless which runs update-alternatives making itself the default ...
1
vote
1answer
982 views

Duplicate entries in update-alternatives

I have two entries for vim when I input sudo update-alternatives --config editor Selection Path Priority Status ------------------------------------------------------------ * 0 ...
2
votes
0answers
1k views

Changing default GCC Compiler in 12.04

I just downgraded from 13.04, which seems to have some stability problems right now, and moved back to 12.04.LTS. I installed the GCC 4.8 compiler, which is not the default GCC compiler on 12.04. I ...
6
votes
1answer
4k views

How to use multiple instances of gcc?

I have both gcc 4.7.3 and 4.8.1 installed But on running gcc --version I get gcc (Ubuntu/Linaro 4.7.3-1ubuntu1) 4.7.3 Copyright (C) 2012 Free Software Foundation, Inc. This is free software; see ...
7
votes
5answers
23k views

How to set the default Java version

I have been using Java 6 on Ubuntu 11.10, but now I want to update to version 7. I've installed version 7 via PPA as described here. If I run sudo update-alternatives --config java I get the ...
2
votes
2answers
1k views

Chromium doesn't show up to be selected as default browser

I installed Chromium, but can not select it as my default browser. Where does Ubuntu keep the list of applications shown in this menu? I use Ubuntu 12.04 with Unity as my environment. I also tried ...
0
votes
1answer
171 views

why doesn't the standardized way to change default terminal work?

Why doesn't: sudo update-alternatives --config x-terminal-emulator Work to change the default terminal in 12.10 ubuntu-one nautilus? I find it confusing.
5
votes
2answers
15k views

update-alternatives: “alternative path doesn't exist” issue while updating JDK7

I decided to update my JDK7 to recent version from here. Corresponding x64 tag.gz archive for my architecture has been downloaded and extracted to /usr/lib/jvm as usual. All previous versions of Java ...
5
votes
2answers
6k views

Set emacs -nw as default editor

When editing files like sudoers, I want to use emacs instead of nano. So I ran this command sudo update-alternatives --config editor And I selected emacs. The only issue is I like emacs in no ...
44
votes
1answer
35k views

What exactly does `update-alternatives` do?

What is the command update-alternatives used for? Take this example: sudo update-alternatives --install /usr/bin/java java /usr/local/java/jre1.7.0_09/bin/java 1 What does it do? How is it ...
3
votes
1answer
214 views

Why doesn't java -version return anything with Oracle's JRE 7?

I've been following these steps and got up to the check version of new JRE installation part but java -version doesn't return anything. I have run sudo update-alternatives --install /usr/bin/java ...
0
votes
1answer
2k views

Java problems installing Glassfish 3.1.2 on Ubuntu Lucid [closed]

I'm trying to install Glassfish v3.1.2 on Ubuntu 10.04 by obtaining corresponding .sh from Oracle website and running sudo ./glassfish-installer-file.sh. However following error appears: Could not ...