ubuntu20.04 LTS系统默认源sources.list文件的修改
如果不慎修改了source.list内容,导致一系列错误,建议恢复默认源文件。
sudogedit/etc/apt/sources.list
然后把下面默认源内容复制进去
ubuntu20.LTS系统默认源sources.list文件内容
#debcdrom:[Ubuntu20.04LTS_FocalFossa_-Releaseamd64(20200423)]/focalmainrestricted #Seehttp://help.ubuntu.com/community/UpgradeNotesforhowtoupgradeto #newerversionsofthedistribution. debhttp://cn.archive.ubuntu.com/ubuntu/focalmainrestricted #deb-srchttp://cn.archive.ubuntu.com/ubuntu/focalmainrestricted ##Majorbugfixupdatesproducedafterthefinalreleaseofthe ##distribution. debhttp://cn.archive.ubuntu.com/ubuntu/focal-updatesmainrestricted #deb-srchttp://cn.archive.ubuntu.com/ubuntu/focal-updatesmainrestricted ##N.B.softwarefromthisrepositoryisENTIRELYUNSUPPORTEDbytheUbuntu ##team.Also,pleasenotethatsoftwareinuniverseWILLNOTreceiveany ##revieworupdatesfromtheUbuntusecurityteam. debhttp://cn.archive.ubuntu.com/ubuntu/focaluniverse #deb-srchttp://cn.archive.ubuntu.com/ubuntu/focaluniverse debhttp://cn.archive.ubuntu.com/ubuntu/focal-updatesuniverse #deb-srchttp://cn.archive.ubuntu.com/ubuntu/focal-updatesuniverse ##N.B.softwarefromthisrepositoryisENTIRELYUNSUPPORTEDbytheUbuntu ##team,andmaynotbeunderafreelicence.Pleasesatisfyyourselfasto ##yourrightstousethesoftware.Also,pleasenotethatsoftwarein ##multiverseWILLNOTreceiveanyrevieworupdatesfromtheUbuntu ##securityteam. debhttp://cn.archive.ubuntu.com/ubuntu/focalmultiverse #deb-srchttp://cn.archive.ubuntu.com/ubuntu/focalmultiverse debhttp://cn.archive.ubuntu.com/ubuntu/focal-updatesmultiverse #deb-srchttp://cn.archive.ubuntu.com/ubuntu/focal-updatesmultiverse ##N.B.softwarefromthisrepositorymaynothavebeentestedas ##extensivelyasthatcontainedinthemainrelease,althoughitincludes ##newerversionsofsomeapplicationswhichmayprovideusefulfeatures. ##Also,pleasenotethatsoftwareinbackportsWILLNOTreceiveanyreview ##orupdatesfromtheUbuntusecurityteam. debhttp://cn.archive.ubuntu.com/ubuntu/focal-backportsmainrestricteduniversemultiverse #deb-srchttp://cn.archive.ubuntu.com/ubuntu/focal-backportsmainrestricteduniversemultiverse ##UncommentthefollowingtwolinestoaddsoftwarefromCanonical's ##'partner'repository. ##ThissoftwareisnotpartofUbuntu,butisofferedbyCanonicalandthe ##respectivevendorsasaservicetoUbuntuusers. #debhttp://archive.canonical.com/ubuntufocalpartner #deb-srchttp://archive.canonical.com/ubuntufocalpartner debhttp://security.ubuntu.com/ubuntufocal-securitymainrestricted #deb-srchttp://security.ubuntu.com/ubuntufocal-securitymainrestricted debhttp://security.ubuntu.com/ubuntufocal-securityuniverse #deb-srchttp://security.ubuntu.com/ubuntufocal-securityuniverse debhttp://security.ubuntu.com/ubuntufocal-securitymultiverse #deb-srchttp://security.ubuntu.com/ubuntufocal-securitymultiverse #Thissystemwasinstalledusingsmallremovablemedia #(e.g.netinst,liveorsingleCD).Thematching"debcdrom" #entriesweredisabledattheendoftheinstallationprocess. #Forinformationabouthowtoconfigureaptpackagesources, #seethesources.list(5)manual.
可以有效解决很多报错
sudoaptupdate
到此这篇关于ubuntu20.04LTS系统默认源sources.list文件的修改的文章就介绍到这了,更多相关ubuntu20.04LTSsources.list内容请搜索毛票票以前的文章或继续浏览下面的相关文章希望大家以后多多支持毛票票!
声明:本文内容来源于网络,版权归原作者所有,内容由互联网用户自发贡献自行上传,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任。如果您发现有涉嫌版权的内容,欢迎发送邮件至:czq8825#qq.com(发邮件时,请将#更换为@)进行举报,并提供相关证据,一经查实,本站将立刻删除涉嫌侵权内容。