Questions tagged [update-alternatives]
The update-alternatives tag has no usage guidance.
134
questions
1
vote
2
answers
309
views
configuring a flatpak app (BlackBox) as the default terminal
So I recently installed the BlackBox terminal. I like it, and would like to set it as the default terminal. However, it's installed through flatpak and when I try running
sudo update-alternatives --...
2
votes
2
answers
173
views
Why micro is not recognized as text editor in Ubuntu 22.04?
I installed micro with sudo apt install micro on 22.04
I want to use visudo with micro.
export EDITOR=micro then next line visudo opens in nano.
So, then I tried sudo update-alternatives --config ...
0
votes
0
answers
40
views
Cursor doesn't respect theme when program is launched from command line
I installed breeze-cursor-theme with apt, and changed the default cursor theme via update-alternatives. Hence, update-alternatives --get-selections | grep x-cursor-theme returns
x-cursor-theme ...
1
vote
1
answer
331
views
Why update-java-alternatives -s /usr/lib/jvm/java-17-amazon-corretto does not update jexec?
Ubuntu 22.04.2:
I installed java-17-amazon-corretto and did the update-java-alternatives but I got an error compiling my project. Last time I had to fix the links that were not updated, (java 11 vs ...
1
vote
1
answer
60
views
Why does `/etc/alternatives` being a symlink affect `apt`?
I've got the following Dockerfile:
FROM ubuntu:22.04
# Step 1
RUN apt update && apt install -y wget
# Step 2
# All your persistent configs are in /root.
RUN mkdir -p /root/.symlinks/etc \
...
0
votes
0
answers
74
views
update-alternatives has no effect on the /etc symlinks?
I want python3 and python to both point to the current python3.10 . i can not get that to work for the life of me. Here are the current commands
update-alternatives --install /usr/bin/python python $(...
7
votes
1
answer
651
views
Difference between "select-editor" and "update-alternatives --config editor"
I'm looking at how Ubuntu selects a default editor, and I notice that to set the default editor for editing crontabs, I use select-editor while to set the default editor for visudo I use update-...
0
votes
0
answers
153
views
update-alternatives: error: alternative javac can't be master: it is a slave of java
I've a heterogeneous Java installations, where I've installed some versions manually and others via the package manager. I wanted to have javac to change accordingly with java, so I had each java ...
0
votes
0
answers
92
views
Made mistake with update-alternatives
I'm trying to run Amidst. That's a mapping tool for Minecraft worlds, for those that don't know. That got me fiddling with java versions and JDKs and JREs and I don't quite know what I'm doing.
I'm ...
0
votes
0
answers
20
views
After installing c-compiler, it is not set as the default [duplicate]
If I have a clean OS image (in my case created with multipass) and I want to install a c-compiler, why is it not set as default after installing?
$ sudo apt install clang-15
...
$ cc
cc: command not ...
0
votes
0
answers
45
views
Ubuntu apt-install fails
raivo@Hydra:~/teamengine$ sudo update-alternatives --list java
/usr/lib/jvm/java-11-openjdk-amd64/bin/java
So, it gives only one alternative
But :
raivo@Hydra:~/teamengine$ ll /usr/java
total 16
...
0
votes
1
answer
341
views
UEFI update from UBUNTU - Acer Aspire 5 A515-54
I've got only Ubuntu 20.04 installed on Acer Aspire 5 and I want to update my UEFI (currently v1.11) because the screen will remain black once I close and open the lid and the only solution is to hard-...
0
votes
1
answer
647
views
How to install Zlib 1.2.12 version as it is not available in apt package manager?
Zlib 1.2.11 version has been installed currently in my system but I need to upgrade it to 1.2.12. I tried to install via apt commands but apt doesn't have the 1.2.12 version. According to the apt ...
0
votes
1
answer
5k
views
Installation Java on Ubuntu 22.04 update-alternatives: warning:
Yesterday I have erased Windows and install Ubuntu 22.04 on Acer 8 yers old. With success.
I need JDK Java 11 for development like Android Studio and others software.
Here is the steps I produced to ...
0
votes
0
answers
1k
views
How do I set /usr/local/bin/python version to be 3.9 using update-alternatives?
update-alternatives --query python produces:
Name: python
Link: /usr/local/bin/python
Status: auto
Best: /usr/bin/python3.9
Value: /usr/bin/python3.9
Alternative: /usr/bin/python3
Priority: 0
...
0
votes
1
answer
97
views
how to make a bash script that will autofill the words in given statement one by one? [duplicate]
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 ...
0
votes
2
answers
204
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 ...
0
votes
0
answers
2k
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 ...
0
votes
1
answer
491
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 ...
0
votes
1
answer
1k
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 ...
1
vote
0
answers
5k
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@...
8
votes
2
answers
22k
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-...
0
votes
1
answer
219
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 ...
8
votes
3
answers
8k
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 ...
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 ...
1
vote
1
answer
130
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 ...
0
votes
2
answers
1k
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 ...
0
votes
2
answers
3k
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-...
4
votes
0
answers
627
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 ...
1
vote
1
answer
155
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 ...
2
votes
1
answer
283
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/...
0
votes
2
answers
199
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-...
10
votes
1
answer
956
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 /...
2
votes
1
answer
476
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.
...
1
vote
0
answers
196
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 ...
1
vote
2
answers
5k
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 ...
0
votes
2
answers
4k
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
...
8
votes
1
answer
12k
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?
1
vote
2
answers
126
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, ...
1
vote
1
answer
726
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) ...
0
votes
0
answers
116
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 ...
2
votes
1
answer
3k
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 ...
1
vote
1
answer
201
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 ...
1
vote
0
answers
798
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 ...
4
votes
0
answers
763
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-...
2
votes
0
answers
783
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?
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/...
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-...
3
votes
1
answer
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 ...
5
votes
1
answer
1k
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-...