linux修改apt-get 源
阿新 • • 發佈:2022-03-24
1. cd /etc/apt/
2. cp source.list source.list.bak //備份當前的原始檔 3. vi source.list //root使用者修改 4. 清空或者註釋掉之前的源 5. 貼上以下內容deb http://ports.ubuntu.com/ bionic main restricted universe multiverse deb-src http://ports.ubuntu.com/ bionic main restricted universe multiverse deb http://ports.ubuntu.com/ bionic-updates main restricted universe multiversedeb-src http://ports.ubuntu.com/ bionic-updates main restricted universe multiverse deb http://ports.ubuntu.com/ bionic-security main restricted universe multiverse deb-src http://ports.ubuntu.com/ bionic-security main restricted universe multiverse deb http://ports.ubuntu.com/ bionic-backports main restricted universe multiversedeb-src http://ports.ubuntu.com/ bionic-backports main restricted universe multiverse # deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable # deb-src [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable # deb [arch=amd64]https://download.docker.com/linux/ubuntu] bionic stable # deb-src [arch=amd64]https://download.docker.com/linux/ubuntu] bionic stable deb [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable # deb-src [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable # deb-src [arch=amd64] https://download.docker.com/linux/ubuntu bionic test deb [arch=amd64] https://download.docker.com/linux/ubuntu artful stable # deb-src [arch=amd64] https://download.docker.com/linux/ubuntu artful stable
6. apt-get update 7. apt-get upgrade