欧美极品高清xxxxhd,国产日产欧美最新,无码AV国产东京热AV无码,国产精品人与动性XXX,国产传媒亚洲综合一区二区,四库影院永久国产精品,毛片免费免费高清视频,福利所导航夜趣136

 找回密碼
 立即注冊

QQ登錄

只需一步,快速開始

搜索
查看: 1899|回復: 0
收起左側

專題三 Ubtun18.04更換apt源為阿里源

[復制鏈接]
ID:591424 發(fā)表于 2022-3-23 09:48 | 顯示全部樓層 |閱讀模式
1.使用命令 sudo vim /etc/apt/sources.list 編輯源列表中的源地址信息,將其中的地址全部刪除或者注釋,換成以下下格式

  1. deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
  2. deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
  3. deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
  4. deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
  5. deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
  6. deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
  7. deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
  8. deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
  9. deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
  10. deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multivers
復制代碼

2.更新軟件列表

運行如下命令:


  1. sudo apt-get update
復制代碼

這個命令,會訪問源列表里的每個網址,并讀取軟件列表,然后保存在本地電腦。軟件包管理器里看到的軟件列表,都是通過update命令更新的。

3.更新本地軟件包
運行如下命令:
  1. sudo apt-get upgrade
復制代碼

這個命令,會把本地已安裝的軟件,與剛下載的軟件列表里對應軟件進行對比,如果發(fā)現(xiàn)已安裝的軟件版本太低,就會提示你更新。

在執(zhí)行這個命令的時候我收到以下錯誤提示,沒有請忽略

  1. E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarly unavailable)

  2. E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is an other process using it?
復制代碼
刪除鎖定文件就可以
sudo rm /var/lib/dpkg/lock-frontend
sudo rm /var/lib/dpkg/lock

輸入Yes開始更新本地列表,注意如果沒出現(xiàn)

0added,0 remove,done.

升級了 0 個軟件包,新安裝了 0 個軟件包,要卸載 0 個軟件包,有 0 個軟件包未被升級。

那就再執(zhí)行一次 sudo apt-get upgrade

回復

使用道具 舉報

您需要登錄后才可以回帖 登錄 | 立即注冊

本版積分規(guī)則

小黑屋|51黑電子論壇 |51黑電子論壇6群 QQ 管理員QQ:125739409;技術交流QQ群281945664

Powered by 單片機教程網

快速回復 返回頂部 返回列表