国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

debian11 設(shè)置apt源為國內(nèi)

這篇具有很好參考價(jià)值的文章主要介紹了debian11 設(shè)置apt源為國內(nèi)。希望對(duì)大家有所幫助。如果存在錯(cuò)誤或未考慮完全的地方,請(qǐng)大家不吝賜教,您也可以點(diǎn)擊"舉報(bào)違法"按鈕提交疑問。

??話不多說,直接上代碼。將apt源設(shè)置為網(wǎng)易

cat > /etc/apt/sources.list << EOF
deb https://mirrors.163.com/debian/ bullseye main non-free contrib
deb-src https://mirrors.163.com/debian/ bullseye main non-free contrib
deb https://mirrors.163.com/debian-security/ bullseye-security main
deb-src https://mirrors.163.com/debian-security/ bullseye-security main
deb https://mirrors.163.com/debian/ bullseye-updates main non-free contrib
deb-src https://mirrors.163.com/debian/ bullseye-updates main non-free contrib
deb https://mirrors.163.com/debian/ bullseye-backports main non-free contrib
deb-src https://mirrors.163.com/debian/ bullseye-backports main non-free contrib
EOF

??執(zhí)行命令:apt-get update
??查閱資料時(shí),很多都是設(shè)置阿里云的源

cat > /etc/apt/sources.list << EOF
deb http://mirrors.cloud.aliyuncs.com/debian/ bullseye main contrib non-free
deb-src http://mirrors.cloud.aliyuncs.com/debian/ bullseye main contrib non-free

deb http://mirrors.cloud.aliyuncs.com/debian/ bullseye-updates main contrib non-free
deb-src http://mirrors.cloud.aliyuncs.com/debian/ bullseye-updates main contrib non-free

deb http://mirrors.cloud.aliyuncs.com/debian/ bullseye-backports main contrib non-free
deb-src http://mirrors.cloud.aliyuncs.com/debian/ bullseye-backports main contrib non-free

deb http://mirrors.cloud.aliyuncs.com/debian/ bullseye-proposed-updates main contrib non-free
deb-src http://mirrors.cloud.aliyuncs.com/debian/ bullseye-proposed-updates main contrib non-free

deb http://mirrors.cloud.aliyuncs.com/debian-security/ bullseye-security main contrib non-free
deb-src http://mirrors.cloud.aliyuncs.com/debian-security/ bullseye-security main contrib non-free
EOF

??實(shí)測(cè)不行報(bào)錯(cuò)如下:

錯(cuò)誤:1 http://mirrors.cloud.aliyuncs.com/debian bullseye InRelease
  無法解析域名“mirrors.cloud.aliyuncs.com”
錯(cuò)誤:2 http://mirrors.cloud.aliyuncs.com/debian bullseye-updates InRelease
  無法解析域名“mirrors.cloud.aliyuncs.com”
錯(cuò)誤:3 http://mirrors.cloud.aliyuncs.com/debian bullseye-backports InRelease
  無法解析域名“mirrors.cloud.aliyuncs.com”
錯(cuò)誤:4 http://mirrors.cloud.aliyuncs.com/debian bullseye-proposed-updates InRelease
  無法解析域名“mirrors.cloud.aliyuncs.com”
錯(cuò)誤:5 http://mirrors.cloud.aliyuncs.com/debian-security bullseye-security InRelease
  無法解析域名“mirrors.cloud.aliyuncs.com”
正在讀取軟件包列表... 完成
W: 無法下載 http://mirrors.cloud.aliyuncs.com/debian/dists/bullseye/InRelease  無法解析域名“mirrors.cloud.aliyuncs.com”
W: 無法下載 http://mirrors.cloud.aliyuncs.com/debian/dists/bullseye-updates/InRelease  無法解析域名“mirrors.cloud.aliyuncs.com”
W: 無法下載 http://mirrors.cloud.aliyuncs.com/debian/dists/bullseye-backports/InRelease  無法解析域名“mirrors.cloud.aliyuncs.com”
W: 無法下載 http://mirrors.cloud.aliyuncs.com/debian/dists/bullseye-proposed-updates/InRelease  無法解析域名“mirrors.cloud.aliyuncs.com”
W: 無法下載 http://mirrors.cloud.aliyuncs.com/debian-security/dists/bullseye-security/InRelease  無法解析域名“mirrors.cloud.aliyuncs.com”
W: 部分索引文件下載失敗。如果忽略它們,那將轉(zhuǎn)而使用舊的索引文件。

??更新dns,在配置文件中加入阿里巴巴提供的DNS域名解析,然而還是不行文章來源地址http://www.zghlxwxcb.cn/news/detail-505999.html

sudo vim  /etc/resolv.conf 
nameserver 8.8.8.8 
nameserver 8.8.4.4
nameserver 223.5.5.5
nameserver 223.6.6.

到了這里,關(guān)于debian11 設(shè)置apt源為國內(nèi)的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來自互聯(lián)網(wǎng)用戶投稿,該文觀點(diǎn)僅代表作者本人,不代表本站立場(chǎng)。本站僅提供信息存儲(chǔ)空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請(qǐng)注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實(shí)不符,請(qǐng)點(diǎn)擊違法舉報(bào)進(jìn)行投訴反饋,一經(jīng)查實(shí),立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費(fèi)用

相關(guān)文章

  • 基于debian 11的apt錯(cuò)誤 Key is stored in legacy trusted.gpg keyring

    背景 使用阿里云的鏡像安裝k8s軟件時(shí),執(zhí)行了如下命令 添加了一個(gè)key,然后添加了一個(gè)下載源,最后update更新一下. 接下來在執(zhí)行 apt-get update 的時(shí)候,遇到錯(cuò)誤: 解決方案 出現(xiàn)的原因是因?yàn)閍pt-get update命令使用了過時(shí)的 apt-key 工具導(dǎo)致的,這實(shí)際是一條警告.在新版本的apt中不再使用

    2024年02月15日
    瀏覽(17)
  • armbian Debian 11(bullseye)配置國內(nèi)源

    清空原內(nèi)容 將下面內(nèi)容添加進(jìn)配置文件,按需選擇國內(nèi)源

    2024年02月16日
    瀏覽(47)
  • 本文整理了Debian 11在國內(nèi)的幾個(gè)軟件源。

    本文整理了Debian 11在國內(nèi)的幾個(gè)軟件源。

    ? 1.使用說明? 一般情況下,將/etc/apt/sources.list文件中Debian默認(rèn)的軟件倉庫地址和安全更新倉庫地址修改為國內(nèi)的鏡像地址即可,比如將deb.debian.org和security.debian.org改為mirrors.xxx.com,并使用https訪問,可使用如下命令: 修改之后再運(yùn)行apt update更新索引。 2.國內(nèi)常見鏡像站點(diǎn)

    2024年02月07日
    瀏覽(45)
  • 解決Ubuntu 或Debian apt-get IPv6問題:如何設(shè)置僅使用IPv4

    解決Ubuntu 或Debian apt-get IPv6問題:如何設(shè)置僅使用IPv4

    解決Ubuntu 或Debian apt-get IPv6問題:如何設(shè)置僅使用IPv4 背景 : 在Ubuntu 22.04(包括 20.04 18.04 等版本) 或 Debian (10、11、12)系統(tǒng)中,當(dāng)你使用 apt update 或 apt install 命令時(shí),系統(tǒng)默認(rèn)會(huì)優(yōu)先使用IPv6網(wǎng)絡(luò)。但有些時(shí)候,盡管系統(tǒng)開啟了IPv6,但實(shí)際上IPv6網(wǎng)絡(luò)并不可用,這就導(dǎo)致了apt命令

    2024年02月10日
    瀏覽(31)
  • 【Ubuntu】更換下載源為國內(nèi)源

    【Ubuntu】更換下載源為國內(nèi)源

    1.點(diǎn)擊左下角圖標(biāo) 2.找到softwareUpdates 3.點(diǎn)擊這個(gè)三角 4.點(diǎn)擊other 5.上滑找到china,選擇任意一個(gè)源即可,我這里選擇了aliyun,隨后點(diǎn)擊choose server 點(diǎn)擊close關(guān)掉之后會(huì)顯示一個(gè)reload的的彈窗,可以自動(dòng)更新,我們可以選擇close然后進(jìn)行一個(gè) 手動(dòng)更新 新電腦和換源之后需要更新一

    2024年02月13日
    瀏覽(19)
  • PVE/Debian11設(shè)置開機(jī)自啟動(dòng)項(xiàng)

    在PVE中想要設(shè)置WOL網(wǎng)絡(luò)喚醒,這其中遇到了debian開機(jī)自啟動(dòng)項(xiàng)一直不生效的問題,根據(jù)實(shí)驗(yàn)懷疑是sh兼容性不好的問題,最后通過使用bash執(zhí)行解決問題。 Proxmox VE 7.3 基于 Debian 11.5 “Bullseye” 構(gòu)建,但采用了較新的內(nèi)核版本:Linux kernel 5.15/5.19,還將重要的軟件進(jìn)行了升級(jí):

    2024年02月07日
    瀏覽(16)
  • 如何在 Debian 11 上設(shè)置一個(gè)靜態(tài) IP 地址

    如何在 Debian 11 上設(shè)置一個(gè)靜態(tài) IP 地址

    當(dāng)你在電腦上安裝一個(gè)新的操作系統(tǒng)時(shí),DHCP服務(wù)器會(huì)給你分配一個(gè)動(dòng)態(tài)IP地址。然而,在各種情況下,你可能需要在你的機(jī)器上 設(shè)置 一個(gè) 靜態(tài)IP地址 ,例如,當(dāng)你正在托管一個(gè)網(wǎng)絡(luò)服務(wù)器,或者任何服務(wù)需要一個(gè)IP地址而不是域名,或者在你即將授予某人遠(yuǎn)程訪問你的系統(tǒng)

    2024年02月02日
    瀏覽(20)
  • 更換 PVE7 軟件倉庫源和 CT 模板(LXC)源為國內(nèi)源

    PVE7 安裝后默認(rèn)配置的 apt 軟件源和 CT (LXC) 容器模板源均是官方默認(rèn)的,國內(nèi)使用性能不佳,建議替換為 清華 Tuna 提供的國內(nèi)鏡像源,速度將有一個(gè)較大的提升。 如果 pve 官網(wǎng) iso 鏡像下載較慢,也可在 tuna 提供的鏡像站下載:https://mirrors.tuna.tsinghua.edu.cn/proxmox/iso/ 注:本文以

    2024年02月05日
    瀏覽(18)
  • debian apt安裝mysqlodbc

    debian apt安裝mysqlodbc

    mysql的deb包下載地址 下載后上傳到linux后,

    2024年02月09日
    瀏覽(17)
  • Debian10更換apt源

    想用vim去編輯,發(fā)現(xiàn)沒有vim,可以這樣做 /etc/apt/sources.list 修改這個(gè)文件,當(dāng)然你修改之前也可以先備份一下,我這邊就不備份了 然后就可以去下載軟件了 阿里云 清華源 中科大 163源

    2024年02月15日
    瀏覽(21)

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請(qǐng)作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包