linux 报错:bash: add-apt-repository: command not found
解决方法:sudo apt-get install software-properties-common可能无法下载,遇到以下报错: Failed to fetch http://解决方案:参考ubuntu apt-get 报错 Failed to fetch http://deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted u
·
解决方法:
sudo apt-get install software-properties-common
可能无法下载,遇到以下报错: Failed to fetch http://
解决方案:参考ubuntu apt-get 报错 Failed to fetch http://
vim /etc/apt/sources.list
deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
##测试版源
deb http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse
# 源码
deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
##测试版源
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse
# Canonical 合作伙伴和附加
deb http://archive.canonical.com/ubuntu/ xenial partner
然后,
apt-get update
更多推荐
已为社区贡献1条内容
所有评论(0)