debian9.6更新源,並解決開機顯示 Radeon kernel modesetting for r600 or later requires問題

如果系統不聯網,更新不更新的都沒有事,就是相當於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,如下:

其實是文件夾,但這些文件夾的名字都是有一定意義的。

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裏尋找自己需要的包。

參考1:https://www.cnblogs.com/lzq1126/p/5596839.html

參考2:https://blog.csdn.net/yjk13703623757/article/details/78943345

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

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章