Ubuntu 7.10修改软件源的方法
安装好ubuntu17.10后,我们发现使用apt-get安装软件时特别慢,所以需要更换一下软件源。
方法:
1.备份自带源
sudocp/etc/apt/sources.list~/sources.list.bak
2.修改源:
把以下内容贴到/etc/apt/sources.list文件中:
#debcdrom:[Ubuntu17.04_ZestyZapus_-Releaseamd64(20170412)]/zestymainrestricted #Seehttp://help.ubuntu.com/community/UpgradeNotesforhowtoupgradeto #newerversionsofthedistribution. debhttp://mirrors.aliyun.com/ubuntu/artfulmainrestricted #deb-srchttp://us.archive.ubuntu.com/ubuntu/zestymainrestricted ##Majorbugfixupdatesproducedafterthefinalreleaseofthe ##distribution. debhttp://mirrors.aliyun.com/ubuntu/artful-updatesmainrestricted #deb-srchttp://us.archive.ubuntu.com/ubuntu/zesty-updatesmainrestricted ##N.B.softwarefromthisrepositoryisENTIRELYUNSUPPORTEDbytheUbuntu ##team.Also,pleasenotethatsoftwareinuniverseWILLNOTreceiveany ##revieworupdatesfromtheUbuntusecurityteam. debhttp://mirrors.aliyun.com/ubuntu/artfuluniverse #deb-srchttp://us.archive.ubuntu.com/ubuntu/zestyuniverse debhttp://mirrors.aliyun.com/ubuntu/artful-updatesuniverse #deb-srchttp://us.archive.ubuntu.com/ubuntu/zesty-updatesuniverse ##N.B.softwarefromthisrepositoryisENTIRELYUNSUPPORTEDbytheUbuntu ##team,andmaynotbeunderafreelicence.Pleasesatisfyyourselfasto ##yourrightstousethesoftware.Also,pleasenotethatsoftwarein ##multiverseWILLNOTreceiveanyrevieworupdatesfromtheUbuntu ##securityteam. debhttp://mirrors.aliyun.com/ubuntu/artfulmultiverse #deb-srchttp://us.archive.ubuntu.com/ubuntu/zestymultiverse debhttp://mirrors.aliyun.com/ubuntu/artful-updatesmultiverse #deb-srchttp://us.archive.ubuntu.com/ubuntu/zesty-updatesmultiverse ##N.B.softwarefromthisrepositorymaynothavebeentestedas ##extensivelyasthatcontainedinthemainrelease,althoughitincludes ##newerversionsofsomeapplicationswhichmayprovideusefulfeatures. ##Also,pleasenotethatsoftwareinbackportsWILLNOTreceiveanyreview ##orupdatesfromtheUbuntusecurityteam. #debhttp://mirrors.aliyun.com/ubuntu/artful-backportsmainrestricteduniversemultiverse #deb-srchttp://us.archive.ubuntu.com/ubuntu/zesty-backportsmainrestricteduniversemultiverse ##UncommentthefollowingtwolinestoaddsoftwarefromCanonical's ##'partner'repository. ##ThissoftwareisnotpartofUbuntu,butisofferedbyCanonicalandthe ##respectivevendorsasaservicetoUbuntuusers. #debhttp://archive.canonical.com/ubuntuzestypartner #deb-srchttp://archive.canonical.com/ubuntuzestypartner#debcdrom:[Ubuntu17.04_ZestyZapus_-Releaseamd64(20170412)]/zestymainrestricted #Seehttp://help.ubuntu.com/community/UpgradeNotesforhowtoupgradeto #newerversionsofthedistribution. #debhttp://mirrors.aliyun.com/ubuntu/artfulmainrestricted #deb-srchttp://us.archive.ubuntu.com/ubuntu/zestymainrestricted ##Majorbugfixupdatesproducedafterthefinalreleaseofthe ##distribution. #debhttp://mirrors.aliyun.com/ubuntu/artful-updatesmainrestricted #deb-srchttp://us.archive.ubuntu.com/ubuntu/zesty-updatesmainrestricted ##N.B.softwarefromthisrepositoryisENTIRELYUNSUPPORTEDbytheUbuntu ##team.Also,pleasenotethatsoftwareinuniverseWILLNOTreceiveany ##revieworupdatesfromtheUbuntusecurityteam. #debhttp://mirrors.aliyun.com/ubuntu/artfuluniverse #deb-srchttp://us.archive.ubuntu.com/ubuntu/zestyuniverse #debhttp://mirrors.aliyun.com/ubuntu/artful-updatesuniverse #deb-srchttp://us.archive.ubuntu.com/ubuntu/zesty-updatesuniverse ##N.B.softwarefromthisrepositoryisENTIRELYUNSUPPORTEDbytheUbuntu ##team,andmaynotbeunderafreelicence.Pleasesatisfyyourselfasto ##yourrightstousethesoftware.Also,pleasenotethatsoftwarein ##multiverseWILLNOTreceiveanyrevieworupdatesfromtheUbuntu ##securityteam. #debhttp://mirrors.aliyun.com/ubuntu/artfulmultiverse #deb-srchttp://us.archive.ubuntu.com/ubuntu/zestymultiverse #debhttp://mirrors.aliyun.com/ubuntu/artful-updatesmultiverse #deb-srchttp://us.archive.ubuntu.com/ubuntu/zesty-updatesmultiverse ##N.B.softwarefromthisrepositorymaynothavebeentestedas ##extensivelyasthatcontainedinthemainrelease,althoughitincludes ##newerversionsofsomeapplicationswhichmayprovideusefulfeatures. ##Also,pleasenotethatsoftwareinbackportsWILLNOTreceiveanyreview ##orupdatesfromtheUbuntusecurityteam. #debhttp://mirrors.aliyun.com/ubuntu/artful-backportsmainrestricteduniversemultiverse #deb-srchttp://us.archive.ubuntu.com/ubuntu/zesty-backportsmainrestricteduniversemultiverse ##UncommentthefollowingtwolinestoaddsoftwarefromCanonical's ##'partner'repository. ##ThissoftwareisnotpartofUbuntu,butisofferedbyCanonicalandthe ##respectivevendorsasaservicetoUbuntuusers. #debhttp://archive.canonical.com/ubuntuzestypartner #deb-srchttp://archive.canonical.com/ubuntuzestypartner
3.更新源
sudoapt-getupdate
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持毛票票。
热门推荐
7 简短的二胎祝福语
10 简短霸气女儿生日 祝福语
11 祝福语高考小众诗句简短
12 元旦祝福语20秒简短
13 老师过年祝福语大全 简短
14 一生祝福语简短
15 产检祝福语简短霸气
16 朋友店开张祝福语简短
17 生日爱情祝福语大全简短
18 朋友女儿生日祝福语 简短