如何在 Debian 下安装闭源软件包
提问 : 我需要在 Debian 下安装特定的闭源设备驱动。然而, 我无法在 Debian 中找到并安装软件包。如何在 Debian 下安装闭源软件包?
Debian 是一个拥有 48,000 软件包的发行版. 这些软件包被分为三类: main, contrib 和 non-free, 主要是根据许可证要求, 参照 Debian 开源软件指南 (DFSG)。
main 软件仓库包括符合 DFSG 的开源软件。contrib 也包括符合 DFSG 的开源软件,但是依赖闭源软件来编译或者执行。non-free 包括不符合 DFSG 的、可再分发的闭源软件。main 仓库被认为是 Debian 项目的一部分,但是 contrib 和 non-free 不是。后两者只是为了用户的方便而维护和提供。
如果你想一直能够在 Debian 上安装闭源软件包,你需要添加 contrib 和 non-free 软件仓库。这样做,用文本编辑器打开 /etc/apt/sources.list 添加"contrib non-free""到每个源。
下面是适用于 Debian Wheezy 的 /etc/apt/sources.list 例子。
deb http://ftp.us.debian.org/debian/ wheezy main contrib non-free deb-src http://ftp.us.debian.org/debian/ wheezy main contrib non-free deb http://security.debian.org/ wheezy/updates main contrib non-free deb-src http://security.debian.org/ wheezy/updates main contrib non-free # wheezy-updates, 之前叫做 'volatile' deb http://ftp.us.debian.org/debian/ wheezy-updates main contrib non-free deb-src http://ftp.us.debian.org/debian/ wheezy-updates main contrib non-free
修改完源后, 运行下面命令去下载 contrib 和 non-free 软件仓库的文件索引。
$ sudo apt-get update
如果你用 aptitude, 运行下面命令。
$ sudo aptitude update
现在你在 Debian 上搜索和安装任何闭源软件包。
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论