美文网首页
ubuntu软件安装不上,一招解决

ubuntu软件安装不上,一招解决

作者: 叫我老村长 | 来源:发表于2018-11-14 20:05 被阅读6次
本文基于Ubuntu 16.04版本。

1). 对source.list文件进行备份

sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup1

首先编辑sources.list这个文件

vi /etc/apt/sources.list

把sources.list文件内容替换成如下

deb-src http://archive.ubuntu.com/ubuntu xenial main restricted #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted
deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted multiverse universe #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted multiverse universe #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial universe
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates universe
deb http://mirrors.aliyun.com/ubuntu/ xenial multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse #Added by software-properties
deb http://archive.canonical.com/ubuntu xenial partner
deb-src http://archive.canonical.com/ubuntu xenial partner
deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted multiverse universe #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial-security universe
deb http://mirrors.aliyun.com/ubuntu/ xenial-security multiverse

接下来执行以下命令,就完成阿里云kali linux镜像源了

apt-get update

相关文章

网友评论

      本文标题:ubuntu软件安装不上,一招解决

      本文链接:https://www.haomeiwen.com/subject/rvpobftx.html