Questions tagged [update-alternatives]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
17 views

how to make a bash script that will autofill the words in given statement one by one?

this is the statement sudo update-alternatives --install "/usr/bin/word" "word" "/usr/lib/jvm/jdk1.8.0_version/bin/word" 1 where word needs to be replaced ...
user avatar
0 votes
2 answers
47 views

Unable to Update Kubuntu 20.04 [duplicate]

Pop up states: Cannot obtain lock E: Could not get lock/var/lib/dpkg/lock-frontend. It is held by process 2197 (unattended-upgr) W: Be aware that removing the lock file is not a solution and may ...
user avatar
0 votes
0 answers
199 views

How to update python in the correct way?

I have ever updated my python version without problem but I did note that for an unknown reason my OS is not working well when I do change my python version using `sudo update-alternatives --config ...
user avatar
0 votes
1 answer
80 views

Showing different version of python in different user

I have installed different versions of python in Ubuntu 20.04 LTS. I have added those versions in 'update alternatives' for switching to a different version. When I switch to another python version ...
user avatar
0 votes
1 answer
348 views

dpkg gnome-settings configuration errors after installing gnome 40 on Ubuntu 21.10

I ran the following command to install GNOME Vanilla on Ubuntu 21.10: sudo apt install vanilla-gnome-desktop This worked successfully and I was able to log into GNOME 40.4. But I got a random dpkg ...
user avatar
1 vote
0 answers
830 views

Fatal Python error: init_import_size: Failed to import the site module

Problem I am running Ubuntu 20.04 LTS. I have both Python 3.8 and Python 3.9 installed, although Python 3.8 is broken. When I type the command python3.8 into my terminal I get the following: root@...
user avatar
0 votes
0 answers
26 views

Software updater 16.04 not responding for a upgrade to 18.04 [duplicate]

Tried to upgrade from 16.04 to 18.04 using the software updater but nothing happens. Software Updater just closes.
user avatar
3 votes
2 answers
2k views

How to properly install Temurin JDK with update-alternatives [duplicate]

I wanted to install Temurin JDK both 8 and 11, I installed them by these steps wget https://github.com/adoptium/temurin8-binaries/releases/download/jdk8u312-b07/OpenJDK8U-...
user avatar
  • 177
0 votes
1 answer
131 views

Can't Update to New Version of Ubuntu [duplicate]

I've been running my head into this wall for about a week now, any help would be appreciated. I'm trying to rescue this old ubuntu machine that I have, but I'm not making much progress. Let me fill ...
user avatar
  • 3
4 votes
3 answers
2k views

Make alacritty the default terminal permanently

Currently I use alacritty as default terminal emulator. On any given day this is the output of update-alternatives: $ sudo update-alternatives --config x-terminal-emulator There are 7 choices for the ...
user avatar
2 votes
0 answers
14 views

How do libatlas3, liblapacke, and libopenblas0 interact in Focal? [duplicate]

I'm trying to figure out the interaction between the following library packages: libatlas3-base liblapacke OpenBLAS libopenblas0-openmp libopenblas0-pthread libopenblas0-serial It looks like the ...
user avatar
  • 141
1 vote
1 answer
73 views

How do I add my script and desktop file so it's configurable as a preferred application?

I'm trying to set up a URL router script that looks at urls and opens them with a different browser instance (firefox profile in my case) depending on the result of pattern matching performed against ...
user avatar
  • 329
0 votes
0 answers
55 views

Changing the default version of Python [duplicate]

I'm trying to change my terminal's default python version to 3.9 from 3.8 and I think I broke something before since I tried to change the priority with sudo update-alternatives --install /usr/bin/...
user avatar
  • 115
0 votes
2 answers
671 views

Changing terminal emulator from gnome-terminal to kitty breaks some functionality

I've switched from gnome terminal to kitty. I ran sudo update-alternatives --config x-terminal-emulator and selected my terminal. However, some actions still ran using the default gnome terminal. I ...
user avatar
  • 11
0 votes
2 answers
964 views

Failed to start Open vSwitch Forwarding Unit

Tried to install openvswitch-switch-dpdk on ubuntu 18.04 (in vmware) following this instructions: https://ubuntu.com/server/docs/openvswitch-dpdk But after running this command: sudo update-...
user avatar
3 votes
0 answers
321 views

OpenMPI - Update alternatives

I have troubles with openmpi crashing. The installed/repository version is "mpirun (Open MPI) 3.1.3". Consequently I have locally built a "mpirun (Open MPI) 4.1.0" which does not ...
user avatar
  • 31
1 vote
1 answer
62 views

Is it possible to start other software manager than Discover in Kubuntu when clicking the update button in the panel?

Discover software manager has greatly improved, but I still prefer the snappy and simple application Apper. The command apper --updates opens Apper, searches for updates and displays them. Could I ...
user avatar
  • 2,250
1 vote
1 answer
75 views

Gettting "The snap command lets you..." when running "x-www-brower" but running "/snap/bin/firefox" works

I'm trying to use the snap firefox as my default browser but when I try to run the default x-www-browswer it appears snap is running. $ ls -a /snap/bin/firefox /snap/bin/firefox $ ls -l /snap/bin/...
user avatar
  • 113
0 votes
2 answers
93 views

Problem with update-alternatives: Trop de niveaux de liens symboliques

I was intstalling some stuff in the computer: sudo apt install gettext intltool python3-gi python3-cairo python3-distutils python3-dbus python3-xdg libglib2.0-dev libglib2.0-bin gir1.2-gtk-3.0 gtk-...
user avatar
8 votes
1 answer
624 views

`update-alternatives --list editor` does not show editors installed via `snap`

$ update-alternatives --list editor /bin/nano /usr/bin/code /usr/bin/vim.tiny update-alternatives --list editor does not show nvim which I installed using snap. Even though my PATH variable contains /...
user avatar
1 vote
1 answer
235 views

Unable to open terminal after messing with pre-installed Python

I installed Python 3.9.0 by following the instructions from http://ubuntuhandbook.org/index.php/2020/10/python-3-9-0-released-install-ppa-ubuntu/. Unfortunately, I tried a not recommended instruction. ...
user avatar
1 vote
0 answers
152 views

Update Ubuntu Server on Raspberry Pi microSD card offline

I'm using the Raspberry Pi Imager tool to flash Ubuntu Server 20.04.1 LTS ARM 64-bit onto a microSD card. Then, I take that microSD card and insert it into a Raspberry Pi 3 B+. After that, the ...
user avatar
0 votes
2 answers
2k views

MySQL, my.cnf and /etc/alternatives

History (the question is in 2020 below) 2018. After the fresh install of 18.04, two years ago, I wanted to use my /etc/mysql/my.cnf setup from 16.04 to get things back to what they were. But the MySQL ...
user avatar
  • 775
0 votes
2 answers
3k views

How to install openjdk-14-jdk on Ubuntu 16.04?

I already tried to add such repos, but it didn't add 14th version: add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) universe" add-apt-repository ppa:openjdk-r/ppa ...
user avatar
  • 101
3 votes
1 answer
6k views

Change default terminal to tilix terminal using shortcut

On Ubuntu whenever I click Ctrl+Alt+T, it will open the default terminal of Ubuntu. Now I want this shortcut to open my tilix terminal. How can I do this?
user avatar
1 vote
2 answers
65 views

Open directories default app

When I use any program that tries to open a directory it uses wrong applications; it currently uses non-explorer visual-studio-code and I have no idea why. I tried to setup Nautilus as the main app, ...
user avatar
  • 183
1 vote
1 answer
530 views

How to use Octave from repositories with OpenBLAS compiled on my computer?

It has been suggested that using Octave with OpenBLAS compiled in my own computer (rather than precompiled OpenBLAS from repositories) will make the computations faster. I installed GNU Octave (4.2.2) ...
user avatar
0 votes
0 answers
77 views

Show Raw Contents of update-alternatives

I'm wondering if there's a way to show the raw contents of sudo update-alternatives --config <resource>? I've been doing quite a lot of troubleshooting getting some installs correct and I cannot ...
user avatar
  • 101
2 votes
1 answer
2k views

I cannot set default java with update-alternatives

I have installed three Versions of Java. I tried to set a default option with update-alternatives. However, it didn't change the default. What am I missing? I know that one is from JRE and the other ...
user avatar
  • 21
1 vote
1 answer
108 views

Where can user inform Ubuntu Snap Store to update snap from third-party?

Where can user inform Ubuntu Snap Store to update snap from third-party? Example: Oracle provide VirtualBox latest statble version for Ubuntu. But Ubuntu SnapStore provide old version. So Where ...
user avatar
  • 113
1 vote
0 answers
664 views

broken apt package in python [duplicate]

I installed Python 3.7.5 on my Ubuntu 18.04 and I updated alternatives for python and python3 to Python 3.7.5. After that I had a lot of problems. When I use sudo apt-get update or sudo gdebi ...
user avatar
3 votes
0 answers
424 views

`apt-get install` without running `update-alternatives` (or specifying own priority)

Is there a way to install a package using apt-get install without update-alternatives being invoked? Or at least being able to specify your own custom priority for the new links added by update-...
user avatar
1 vote
0 answers
480 views

update or upgrade ubuntu pc from another computer on the local workgroup network

How to share updates between ubuntu computers on the local workgroup network Any option like windows 10 os?
user avatar
1 vote
1 answer
2k views

Installing customized GDM theme: Replacing ubuntu.css vs Using "update-alternatives --install .... gdm3.css"

I installed a customized css file for the GDM of Ubuntu 18.04 via 2 approaches. Surprisingly, they gave different results: Approach (A) I saved my customized GDM css file as /usr/share/gnome-shell/...
user avatar
  • 1,556
2 votes
1 answer
2k views

How to assign a priority number to "update-alternatives --config gdm3.css" in a single cmdline?

I am able to run these commands in the terminal: $ sudo update-alternatives --install /usr/share/gnome-shell/theme/gdm3.css gdm3.css /usr/share/gnome-shell/theme/mytheme/mytheme.css 10 $ sudo update-...
user avatar
  • 1,556
2 votes
0 answers
1k views

How can I install multiple version of clang/llvm?

I added the repo from llvm-apt. It contains llvm7 and llvm8. I want to install both versions. The main packages are installed fine. However, there is a problem for libc++, since both packages want to ...
user avatar
  • 391
5 votes
1 answer
788 views

Why doesn't MATE respect `x-terminal-emulator`?

Running Ubuntu Mate 18.04.1, pretty vanilla install. Am trying to make Tilix my default terminal emulator. Have set it as per update-alternatives: me@mine:~$ sudo update-alternatives --config x-...
user avatar
  • 153
4 votes
2 answers
4k views

Deepin-terminal not showing up in x-terminal-emulator list

Following this post I tried this command: sudo update-alternatives --config x-terminal-emulator But it doesn't list the deepin-terminal: There are 2 choices for the alternative x-terminal-emulator (...
user avatar
0 votes
1 answer
919 views

update-alternatives: error: alternative link /usr/share/java/clojure.jar is already managed by clojure

Having upgraded to 18.04, I get the error above when trying to reinstall this package (it also showed during the upgrade I think). It seems this package is a prerequisite for other packages such as ...
user avatar
  • 2,134
0 votes
1 answer
157 views

I get how to install Nvidia drivers in Ubuntu from ppa. But how do I update them later when I need to?

As an owner of a 2080. This is something I'm going to need to know how to do.
user avatar
13 votes
2 answers
15k views

Java 11 to 8: update-alternatives: error: no alternatives for mozilla-javaplugin.so

I have Java 11 and 8 in my Ubuntu 18.04, side by side. I mean to set Java 8 as the default. What I get: $ sudo update-java-alternatives --set /usr/lib/jvm/java-1.8.0-openjdk-amd64 update-...
user avatar
2 votes
1 answer
10k views

how fix mistake made with update-alternatives?

In the process of installing OpenJDK 11 (via a download), and attempting to set the environment variable and defaults to invoke this version instead of the previously installed Java 10, I have messed ...
user avatar
4 votes
1 answer
3k 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 --...
user avatar
2 votes
0 answers
561 views

dpkg: error processing package cpp (--configure) [duplicate]

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); ...
user avatar
  • 121
8 votes
1 answer
12k 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/...
user avatar
  • 285
5 votes
1 answer
1k 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 ...
user avatar
  • 285
4 votes
1 answer
13k 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 ...
user avatar
5 votes
2 answers
3k 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 ...
user avatar
1 vote
1 answer
2k 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 ...
user avatar
1 vote
1 answer
737 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 ...
user avatar