vim /etc/apt/sources.list
尼玛,没有vim
vi /etc/apt/sources.list
把这段代码粘贴到文件末尾:
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ trusty main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ trusty main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ trusty-updates main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ trusty-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ trusty-backports main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ trusty-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ trusty-security main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ trusty-security main restricted universe multiverse
保存退出
vi编辑器可能用到的命令:
x删除字符
dd删除一行
再次apt安装,还是报同样的错
配置dns:
vim /etc/resolv.conf
nameserver 223.5.5.5
nameserver 223.6.6.6
posted on 2024-03-19 15:09
小王 阅读(69)
评论(0) 编辑 收藏 引用 所属分类:
linux