是否有替代方案galternatives(GUI update-alternatives)?
看来这个包自 2015 年以来就不再维护了。
运行 Ubuntu Mate 18.04.1,非常简单的安装。
我正在尝试将 Tilix 设为我的默认终端模拟器。
已按以下方式设置update-alternatives:
me@mine:~$ sudo update-alternatives --config x-terminal-emulator
There are 6 choices for the alternative x-terminal-emulator (providing /usr/bin/x-terminal-emulator).
Selection Path Priority Status
------------------------------------------------------------
0 /usr/bin/tilix.wrapper 30 auto mode
1 /usr/bin/koi8rxterm 20 manual mode
2 /usr/bin/lxterm 30 manual mode
3 /usr/bin/mate-terminal.wrapper 30 manual mode
* 4 /usr/bin/tilix.wrapper 30 manual mode
5 /usr/bin/uxterm 20 manual mode
6 /usr/bin/xterm 20 manual mode
Press <enter> to keep the current choice[*], or type selection number:
me@mine:~$
Run Code Online (Sandbox Code Playgroud)
me@mine:~$ sudo …Run Code Online (Sandbox Code Playgroud) 在这篇文章之后,我尝试了这个命令:
sudo update-alternatives --config x-terminal-emulator
Run Code Online (Sandbox Code Playgroud)
但它没有列出 deepin-terminal:
There are 2 choices for the alternative x-terminal-emulator (providing /usr/bin/
x-terminal-emulator).
Selection Path Priority Status
------------------------------------------------------------
0 /usr/bin/terminator 50 auto mode
* 1 /usr/bin/gnome-terminal.wrapper 40 manual mode
2 /usr/bin/terminator 50 manual mode
Press <enter> to keep the current choice[*], or type selection number
Run Code Online (Sandbox Code Playgroud)
我也从另一个问题中尝试过,这两个命令:
sudo apt install --reinstall deepin-terminal
sudo dpkg-reconfigure deepin-terminal
Run Code Online (Sandbox Code Playgroud)
都没有用,你还有其他想法吗?提前致谢。
我正在设置新的 Ubuntu 15.10 VM。我需要安装update-alternatives它。我运行了命令sudo apt-get install update-alternatives,但是,我在终端中得到以下输出:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package update-alternatives
Run Code Online (Sandbox Code Playgroud)
我可以安装到目前为止我想要的所有其他软件包,除了update-alternatives. 这是回购问题吗?我需要在源中添加存储库名称吗?对此的任何建议都会非常有帮助。
我遇到了一个问题,当我搜索正确版本的python 时,我每次都发现python 3.7:
python3 --version
Python 3.7.0
Run Code Online (Sandbox Code Playgroud)
然后我检查了update-alternatives配置:
sudo update-alternatives --config python3
There are 3 choices for the alternative python3 (providing /usr/bin/python3).
Selection Path Priority Status
------------------------------------------------------------
0 /usr/local/bin/python3.7 2 auto mode
1 /<HOME_DIR>/Software/anaconda3/bin/python3 1 manual mode
* 2 /usr/bin/python3.6 1 manual mode
3 /usr/local/bin/python3.7 2 manual mode
Run Code Online (Sandbox Code Playgroud)
然后我检查了python3的位置:
which python3
/usr/local/bin/python3
Run Code Online (Sandbox Code Playgroud)
然后我检查了PATH:
echo $PATH
/usr/lib/x86_64-linux-gnu/dbus-1.0/include:/usr/local/lib/boost/include:/<HOME_DIR>/bin:/<HOME_DIR>/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/<HOME_DIR>/.dotnet/tools
Run Code Online (Sandbox Code Playgroud)
原来在 /usr/bin 中搜索之前,python3已经在 /usr/local/bin 中找到了
为什么update-alternatives没有在 /usr/local/bin 中创建链接以维护正确搜索应用程序?
我不想从 /usr/local/bin 中删除python3 …