Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [update-alternatives]

The tag has no usage guidance.

4
votes
1answer
37 views

update-alternatives for sh reports bash is used, but I still get dash

I just upgraded to Ubuntu 18.10 from Ubuntu 17.10. I have my box configured to use bash as the default shell rather than the default dash. I've made this change with sudo update-alternatives --...
0
votes
0answers
18 views

dpkg: error processing package cpp (--configure)

Out of a sudden I receive this error on every apt install or apt upgrade. Using Ubuntu 18.04 dpkg: dependency problems prevent configuration of gcc: gcc depends on cpp (>= 4:7.3.0-3ubuntu2.1); ...
2
votes
1answer
488 views

Can not install jdk11 using update-alternatives --install

to try out the new features of jdk11 I installed it into /opt/ and want to use it using update-alternatives, like so: sudo update-alternatives --install /etc/alternatives/java OpenJDK-11 /opt/jdk-11/...
0
votes
0answers
116 views

update-alternatives: error: no alternatives for mozilla-javaplugin.so

I'm trying to switch from Java Development Kit (JDK) 8 to JDK 11 in Bionic. Installation went fine: $ sudo apt-get install openjdk-11-jdk $ sudo update-java-alternatives -l java-1.11.0-openjdk-amd64 ...
0
votes
1answer
38 views

update-alternatives does not work due to /usr/local/bin precedence

I have faced with an issue that when I search proper version of python I every time found python 3.7: python3 --version Python 3.7.0 Then I have checked update-alternatives configuration: sudo ...
2
votes
0answers
230 views

update-java-alternatives jinfo file does not exist

I'm trying to learn how to quickly change which java version my system uses as described in this article: https://aboullaite.me/switching-between-java-versions-on-ubuntu-linux/ I've used apt-get ...
0
votes
0answers
158 views

how can i update the apt client as suggested on link #2

im running out of options on how to fix hash sum mismatch. I have used all the recommended solutions from here & here I tried around 4 servers ie: the nearest to my location / best server / ...
0
votes
0answers
241 views

Using mpicc with update-alternatives

Since I am using CUDA 9.1 on Ubuntu 18.04, I need to use gcc-6 as suggested here. To deal with 2 versions of gcc (Ubuntu 18.04 comes with gcc-7), I have adopted the update-alternatives method as ...
0
votes
1answer
545 views

Using update-alternatives to assign 'Python' to Python version 3.6

I am trying to use update-alternatives to assign python 3.6 ; Instead it is using python 3.52. update-alternatives --install /usr/bin/python python /usr/bin/python3 1 Any idea what I have to do ...
1
vote
1answer
123 views

accidentally removed cpp and some important softwares

I was trying to install latast version of gcc(gcc-7).When I execute the command sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 60 --slave /usr/bin/g++ g++ /usr/bin/g++-7 I did ...
1
vote
0answers
299 views

How do I set a system wide node version installed via nvm?

I use nvm to manage my node versions, but programs that don't start a shell and don't include ~/.nvm/nvm.sh don't know where to find node. Intellij for example can start node programms via package....
1
vote
1answer
507 views

how to use Java 9 zulu from sdkman?

Netbeans is using JDK 8 per the source or binary format as shown here: How do i switch to zulu, which is 9? thufir@dur:~$ thufir@dur:~$ javac -version javac 9.0.0.15 thufir@dur:~$ thufir@dur:~$ ...
3
votes
1answer
919 views

How to add slave to existing update-alternatives link group?

I have installed gcc-7 and g++-7 using the answer at https://askubuntu.com/a/581497/333103. Then I realised that while this slaved the g++ version to the gcc version, I had forgotten to add a ...
0
votes
1answer
35 views

Why I am Seeing two java paths in `update-alternatives --config java`

when I type sudo update-alternatives --config java in termainl I get folowing output:- $ sudo update-alternatives --config java There are 3 choices for the alternative java (providing /usr/bin/java). ...
0
votes
0answers
19 views

Update Ubuntu 14

I want update my Ubuntu 14 to Ubuntu 16. The problem is in my root directory. It consist of 7.3GB and I have only 300MB free space. Can I update it using my home(where is my desctop) directory with ...
0
votes
0answers
55 views

Uninstall software if I don't know where I initially installed it

I'm sure this question has been answered, but I am unable to find it. A few years back I installed gnuplot 4.4 and now I am wanting to update it to 4.6. The problem is when I went to do sudo apt-...
3
votes
0answers
389 views

Alternative to Galternatives

Is there an alternative to galternatives (a GUI to update-alternatives)? It seems that the package is not maintained since 2015.
0
votes
1answer
272 views

What's the difference between auto and manual modes in update-alternatives?

I installed vim and ran update-alternatives. Then I installed vim-full and ran it again. I noticed that there are two entries for vim.basic: one in auto mode, and one in manual. What's the difference ...
5
votes
1answer
2k views

Can not change update-alternatives mvn

Ubuntu 14.04 After installing and changing the version of mvn via `update-alternatives, the configuration remains unchanged. Steps Install new version mvn sudo update-alternatives --install /usr/...
0
votes
1answer
218 views

Set java version on Ubuntu server

I have java version 6,7,8 installed on my Ubuntu server, the result of update-alternatives --config java is There are 3 choices for the alternative java (providing /usr/bin/java). Selection ...
5
votes
1answer
890 views

How can I add my desired editor to the “update-alternatives” interactive menu?

Ive just installed ubuntu 16.04.2 32 bit on a digital ocean server. Digital ocean has tweaked the ubuntu install a bit, for example they have installed full vim as part of the block image they use ...
2
votes
1answer
3k views

Can't update Android Studio to 2.3 version [duplicate]

I try update my android studio 2.2.3 to 2.3 on Linux 16.04. I click on check for update, update and restart. It starts to downloading patch file at the end of downloading it crashes android studio. ...
0
votes
1answer
572 views

Best way to get up-to-date kernel with Kubuntu

I installed Kubuntu 16.04 on a brand new Dell Laptop. I got kernel errors related to the graphics drivers and found out that the problem can be solved with a kernel >= 4.6. So the question now is: ...
3
votes
1answer
2k views

service lightdm modifing /etc/alternatives/x86_64-linux-gnu_gl_conf

I've installed nvidia-367 on my system (Ubuntu 16.04). For a reason i don't know, restarting the lightdm service leads to a modification of /etc/alternatives/x86_64-linux-gnu_gl_conf. I run manually: ...
1
vote
0answers
18 views

Ubuntu Server 16.04 Offline update [duplicate]

How to update/upgrade Ubuntu Server 16.04 offline ?. I have created a local mirror (150GB) using apt-mirror. How to configure offline server/system to update the system. Thanks in advance
2
votes
0answers
147 views

Remainders of Java 9: alternatives and lib directories

I had the Java 9 JDK (openjdk-9-jdk) installed, but purged it again and also ran apt autoremove --purge afterwards. Now only the Java 8 JDK (openjdk-8-jdk) is installed. However, there are still ...
1
vote
0answers
609 views

ld can't find libGL (16.04LTS x64 + Nvidia driver)

I used update-alternatives to select nvidia-367 as the provider for opengl. I ran ldconfig I checked that all the symlinks are valid and pointing to the correct folder· root@laptop:/etc/ld.so.conf....
0
votes
1answer
258 views

Is it possible to fix Ubuntu 16.04 by installing Ubuntu 16.04 over the top of the existing Ubuntu 16.04?

It was easy to install Ubuntu 16.04 over Ubuntu 15.10, and upgrading from version to version has always been easy, until I upgraded to 16.04 which seems to have been corrupted and is now seriously ...
1
vote
2answers
81 views

How do I upgrade OS to version 16 now that I have the ISO file

I need to know the safest way to install 16.04 from 14.04, retaining all the files, apps and config folders. I have downloaded the file named "ubuntu-16.04.1-desktop-amd64" and I'd like to install it ...
7
votes
2answers
15k views

apt-get update for ubuntu 10.04 [closed]

I know that Ubuntu 10.04 is no longer supported. But I am still using it, becuase I use virtual machine (VirtualBox), and on previous trials to use any more updated Ubuntu version was too heavy, and ...
0
votes
1answer
2k views

Unable to install update-alternatives package

I am setting up my new Ubuntu 15.10 VM. I need to install update-alternatives on it. I ran the command sudo apt-get install update-alternatives, however, I get the following output in the terminal: ...
8
votes
1answer
9k 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
1answer
1k 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 ...
1
vote
1answer
600 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
1answer
500 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 ...
1
vote
0answers
554 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., ...
1
vote
0answers
622 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 ...
3
votes
2answers
1k 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
226 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://www....
3
votes
1answer
862 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
575 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
2answers
250 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 ...
6
votes
1answer
12k 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/...
1
vote
1answer
83 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 ...
2
votes
1answer
746 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 ...
11
votes
2answers
80k 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
39 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
1answer
1k 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
40 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?
3
votes
1answer
9k 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 ...