Warning:请确保您知道您使用 Testing 源的后果!系统若是崩溃了博主概不负责!

当我们刚用 debian 的时候,不难发现它 stable 源里的软件都特别老。。。比如装网易云音乐的时候要用到 libfontconfig1 这个支持库,需要版本 2.11.3,而 stable 里只有 2.11.0,但 testing 里有 2.13.0,所以就需要启用 testing 源。

启用方法:

编辑/etc/apt/sources.list:

sudo gedit /etc/apt/sources.list

这里我使用的是阿里云的源。

向文件中添加以下内容:

deb http://mirrors.aliyun.com/debian testing main non-free contrib
deb-src http://mirrors.aliyun.com/debian testing main non-free contrib
deb http://mirrors.aliyun.com/debian-security/ testing/updates main contrib non-free
deb-src http://mirrors.aliyun.com/debian-security/ testing/updates main contrib non-free

保存文件,然后 sudo apt-get update 即可。

其实不止可以添加 testing,还可以添加 unstable(不推荐,不稳定),或者 old stable(有的貌似只有 old stable 有,比如 npm 在 testing 和 stable 里都没有。。。倒是 old stable 里有)。

注意网上还有讲怎么钉住 apt 的(就是可以做到从制定的源里下载软件),但我十分不推荐,因为比如你别的软件都是 stable 的,而你装了一个 testing 的支持库,很可能你的电脑就会在开机时显示 “糟糕!系统出现无法修复的错误,请注销后重试” 这样的东西。。。我就出现过两次,第一次不知道原因,直接重装了系统。第二次发现了问题,用命令修复了系统,方法如下。

先进入报错界面,然后按 ctrl+alt+f2 进入 tty2(如果是 f3 就是 tty3,以此类推,都一样的)。

然后如果钉住了 apt 就把钉子删掉。

然后执行命令:

sudo apt-get upgrade

全面升级软件到 testing 版本,然后重启就恢复了。

反正 testing 里的软件基本全都稳定了,你看我现在不就什么问题都氵

分类: 文章

XZYQvQ

炒鸡辣鸡的制杖蒟蒻一枚QvQ

0 条评论

发表回复

Avatar placeholder

您的电子邮箱地址不会被公开。 必填项已用 * 标注