如何启用“multiverse”存储库?

我一直看到地方将“multiverse”存储库称为我可以获得软件的地方,我该如何启用此存储库? 请通过命令行以图形方式指定如何执行此操作。

Multiverse存储库包含“非自由”的软件包(软件),指的是许可限制。

Multiverse存储库包含已被归类为非自由的软件。 某些司法管辖区可能不允许使用此软件。 从此存储库安装每个软件包时,您应该validation您所在国家/地区的法律允许您使用它。 此外,此软件可能不包含安全更新。

有关ubuntu存储库的原理的其他信息,请参阅默认Ubuntu软件存储库概述

您可以从命令行或以图形方式启用存储库。

图形

打开软件中心,导航到顶部的“Ubuntu软件”选项卡,选择(勾选)多元宇宙。

软件中心

使用“重新加载”按钮更新包列表。

刷新

命令行

使用任何编辑器打开/etc/apt/sources.list

 # command line editor (nano) sudo -e /etc/apt/sources.list # graphical editor gksu gedit /etc/apt/sources.list 

取消注释(从前面删除#) multiverse线或在需要时添加它们,所以线条如下所示:

 ## NB software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team, and may not be under a free licence. Please satisfy yourself as to ## your rights to use the software. Also, please note that software in ## multiverse WILL NOT receive any review or updates from the Ubuntu ## security team. deb http://us.archive.ubuntu.com/ubuntu/ oneiric multiverse #deb-src http://us.archive.ubuntu.com/ubuntu/ oneiric multiverse deb http://us.archive.ubuntu.com/ubuntu/ oneiric-updates multiverse #deb-src http://us.archive.ubuntu.com/ubuntu/ oneiric-updates multiverse 

如果您需要下载源代码,请取消注释deb-src行(大多数用户不需要源代码,因此如果有疑问,请将其禁用)。

保存您的编辑(如果您使用nano, Ctrl + X ,然后键入Y以保存更改),然后,更新您的包列表,运行

 sudo apt-get update 
  • 有关管理存储库的其他信息,请参阅Ubuntu Wiki – 存储库

新版本的Ubuntu可用的另一个选项:

 sudo apt-add-repository multiverse && sudo apt-get update 

从手册页:

 Examples: apt-add-repository 'deb http://myserver/path/to/repo stable myrepo' apt-add-repository 'http://myserver/path/to/repo myrepo' apt-add-repository 'https://packages.medibuntu.org free non-free' apt-add-repository http://extras.ubuntu.com/ubuntu apt-add-repository ppa:user/repository apt-add-repository multiverse 

从命令行不使用文本编辑器或GUI:

 sudo sed -i "/^# deb.*multiverse/ s/^# //" /etc/apt/sources.list 

http://alestic.com/2012/05/aws-command-line-packages