debian9.6更新源,并解决开机显示 Radeon kernel modesetting for r600 or later requires问题
  dSzaXU8MjqY1 2023年11月02日 47 0


如果系统不联网,更新不更新的都没有事,就是相当于windows或者手机上给软件升级一样。

一般我们都是将源从原来国外的更新到国内,我这里就更新为清华的,其他的还有阿里的,163的等等,其实都差不多。

1,备份

备份是个好习惯,特别是重要的文件,如果改废了,那就完蛋了。

guoyanzhang@bogon:~$ sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak

2,修改,cat是修改后的内容

guoyanzhang@bogon:~$ sudo cat /etc/apt/sources.list
[sudo] guoyanzhang 的密码:
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch main non-free contrib
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch-updates main non-free contrib
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch-backports main non-free contrib

deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch main non-free contrib
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch-updates main non-free contrib
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch-backports main non-free contrib

3,更新刚刚的修改内容

guoyanzhang@bogon:~$ sudo apt-get update

4,更新软件包

guoyanzhang@bogon:~$ sudo apt-get upgrade

5,解决开机问题

我笔记本开机是有*ERROR* Radeon kernel modesetting for r600 or later requires.

解决方法:

step1:就是在源文件里添加non-free contrib,刚刚已经添加过了;

step2:更新源文件,刚刚也更新了;

step3:安装firmware-linux-nonfree,nonfree就是因为debian是完全开源,所以发布的时候不能有nonfree的东西;

guoyanzhang@bogon:~$ apt-get install firmware-linux-nonfree

step4:重启,就没这个问题了。

6,学习

a,更多内容可以

guoyanzhang@bogon:~$ man apt-get

b,刚刚修改的源文件,就是apt-get要使用的文件;

c,deb是debian包目录,deb-src是源码目录,后者根据需要使用;

d,刚刚修改的源里有contrib,main,non-free,打开刚刚的URL,如下:

debian9.6更新源,并解决开机显示 Radeon kernel modesetting for r600 or later requires问题_apt

其实是文件夹,但这些文件夹的名字都是有一定意义的。

main软件仓库包括符合DFSG的开源软件。contrib也包括符合DFSG的开源软件,
但是依赖闭源软件来编译或者执行。non-free包括不符合DFSG的、可再分发的
闭源软件。main仓库被认为是Debian项目的一部分,但是contrib和non-free
不是。后两者只是为了用户的方便而维护和提供。如果你想一直能够在Debian上
安装闭源软件包,你需要添加contrib和non-free软件仓库。

DFSG,是the debian free software guidelines。

e,所以更新源的步骤,大致是:首先打开URL(​​https://mirrors.tuna.tsinghua.edu.cn/debian/​​),然后进入dists目录,再进入stretch目录,最后在contrib,main,non-free里寻找自己需要的包。

参考3:​​https://www.linuxquestions.org/questions/linux-kernel-70/radeon-kernel-modesetting-for-r600-or-later-requires-firmware-linux-nonfree-4175506682/​

 

【版权声明】本文内容来自摩杜云社区用户原创、第三方投稿、转载,内容版权归原作者所有。本网站的目的在于传递更多信息,不拥有版权,亦不承担相应法律责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@moduyun.com

  1. 分享:
最后一次编辑于 2023年11月08日 0

暂无评论

推荐阅读
dSzaXU8MjqY1