本文将分享ubuntu配置apt-get源的详细内容,并且还将对ubuntu设置apt源进行详尽解释,此外,我们还将为大家带来关于apt-getupdate失败ubuntu:Temporyfailur
本文将分享ubuntu 配置apt-get源的详细内容,并且还将对ubuntu设置apt源进行详尽解释,此外,我们还将为大家带来关于apt-get update 失败 ubuntu:Tempory failure resolving 'cn.archive.ubuntu.com ubuntu、debian10 更新apt-get源、dl站,可以自己做apt-get源,自己做cydia源等等就爽了....、install nginx on ubuntu install ubuntu usb install ubuntu 14.04 ubuntu install jd的相关知识,希望对你有所帮助。
本文目录一览:- ubuntu 配置apt-get源(ubuntu设置apt源)
- apt-get update 失败 ubuntu:Tempory failure resolving 'cn.archive.ubuntu.com ubuntu
- debian10 更新apt-get源
- dl站,可以自己做apt-get源,自己做cydia源等等就爽了....
- install nginx on ubuntu install ubuntu usb install ubuntu 14.04 ubuntu install jd
ubuntu 配置apt-get源(ubuntu设置apt源)
ubantu安装软件速度慢一般是因为系统默认选择的源导致,可以通过手动配置源设置解决。
1. 原文件备份
sudo mv /etc/apt/sources.list /etc/apt/sources.list_bk
2. 编辑源列表文件
sudo vim /etc/apt/sources.list
3. 添加如下内容
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
4. 更新源
sudo apt-get update
apt-get update 失败 ubuntu:Tempory failure resolving 'cn.archive.ubuntu.com ubuntu
当运行apt-get update后出现如下错误时:E: Some index files Failed to download,they have been ignored,or old ones used instead.
可以将目录下/var/lib/apt/lists/partial/所有的文件清掉,再次运行apt-get update即可!自带源在大陆不好。
出现以下错误:
ubuntu:Tempory failure resolving ''cn.archive.ubuntu.com ubuntu
1,重启生效:
sudovi/etc/resolvconf/resolv.conf.d/base(这个文件默认是空的)
在里面插入:
nameserver8.8.8.8
nameserver8.8.4.4
如果有多个DNS就一行一个
修改好保存,然后执行
sudoresolvconf-u
再看/etc/resolv.conf,最下面就多了2行:
cat/etc/resolv.conf
#Dynamicresolv.conf(5)fileforglibcresolver(3)generatedbyresolvconf(8)
#DONOTEDITTHISFILEBYHAND--YOURCHANGESWILLBEOVERWRITTEN
可以看到我们的设置已经加上了,然后再ping一个域名,当时就可以解析了,无需重启。
2,重启失效:
配置文件地址 /etc/resolv.conf
使用编辑器打开
改为如下内容:
search localdomain
nameserver 202.96.128.86 希望修改成的DNS
nameserver 202.96.128.166 备用DNS
重启网络:sudo /etc/init.d/networking restart。即可
debian10 更新apt-get源
debian版本
执行以下命令,查看当前debian
版本号:
cat /etc/issue
结果如下:
root@l:~# cat /etc/issue
Debian GNU/Linux 10 \n \l
更新源
备份sources.list
文件:
mv /etc/apt/sources.list /etc/apt/sources.list.bak
修改sources.list
文件内容,删除默认的内容,改成国内源:
deb http://mirrors.aliyun.com/debian/ buster main non-free contrib
deb http://mirrors.aliyun.com/debian/ buster-updates main non-free contrib
deb http://mirrors.aliyun.com/debian/ buster-backports main non-free contrib
deb http://mirrors.aliyun.com/debian-security/ buster/updates main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ buster main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ buster-updates main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ buster-backports main non-free contrib
deb-src http://mirrors.aliyun.com/debian-security/ buster/updates main non-free contrib
然后执行更新命令:
apt-get update
apt-get upgrade
dl站,可以自己做apt-get源,自己做cydia源等等就爽了....
rt,rt~~~
install nginx on ubuntu install ubuntu usb install ubuntu 14.04 ubuntu install jd
关于ubuntu 配置apt-get源和ubuntu设置apt源的问题就给大家分享到这里,感谢你花时间阅读本站内容,更多关于apt-get update 失败 ubuntu:Tempory failure resolving 'cn.archive.ubuntu.com ubuntu、debian10 更新apt-get源、dl站,可以自己做apt-get源,自己做cydia源等等就爽了....、install nginx on ubuntu install ubuntu usb install ubuntu 14.04 ubuntu install jd等相关知识的信息别忘了在本站进行查找喔。
本文标签: