使用添加ppa存储库时sudo add-apt-repository ppa:...
,为什么要执行sudo apt-get update
?
我是Ubuntu的新手,我看不到它的用途,因为没有从回购协议中安装任何软件包。只需很长时间即可循环浏览我已安装的软件包。
从手册页:
update is used to resynchronize the package index files from their sources.
The indexes of available packages are fetched from the location(s) specified
in /etc/apt/sources.list. For example, when using a Debian archive, this
command retrieves and scans the Packages.gz files, so that information about
new and updated packages is available. An update should always be performed
before an upgrade or dist-upgrade. Please be aware that the overall progress
meter will be incorrect as the size of the package files cannot be known in
advance.
添加apt-add-repository
只会在中添加一行/etc/apt/source.list
。
apt-get update
从所有已知存储库下载最新的软件包索引
我也建议阅读apt-get Wiki页面
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句