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
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持毛票票。