我想software-properties-gtk
通过命令行启用或禁用应用程序中的某些选项。
我有兴趣通过命令行控制的选项示例如下所示:
我怀疑该命令software-properties-gtk --enable-component=ENABLE_COMPONENT
可以让我实现我想要的。但是,手册页没有详细说明可以使用哪些值来替换ENABLE_COMPONENT
.
$ software-properties-gtk -h
Usage: software-properties-gtk [options]
Options:
-h, --help show this help message and exit
-d, --debug Print some debug information to the command line
-m, --massive-debug Print a lot of debug information to the command line
-n, --no-update No update on repository change (useful if called from
an external program).
-t TOPLEVEL, --toplevel=TOPLEVEL
Set x-window-id of the toplevel parent for the dialog
(useful for embedding)
-e ENABLE_COMPONENT, --enable-component=ENABLE_COMPONENT
Enable the specified component of the distro's
repositories
--open-tab=OPEN_TAB Open specific tab number on startup
--enable-ppa=ENABLE_PPA
Enable PPA with the given name
-k KEYSERVER, --keyserver=KEYSERVER
Legacy option, unused
--data-dir=DATA_DIR Use data files (UI) from the given directory
感谢有关使用此命令的说明?
在我的 Ubuntu 18.04 LTS 上,我看到以下内容:
所以真的你必须使用
其中组件是以下之一:
所以完整的命令将是
sudo add-apt-repository main
sudo add-apt-repository universe
sudo add-apt-repository restricted
sudo add-apt-repository multiverse
对于规范合作伙伴,您可以使用如下所示的命令:
where
lsb_release -cs
将返回您的 Ubuntu 版本的代号(仿生、焦点、多毛等)。阅读材料:
man sources.list
本地或在线;man add-apt-repository
本地或在线。