IT门户, 中国互联网人工智能物联网行业资讯平台--公众IT
新闻来源:互联网资料整理       发布时间:2023/4/6 5:10:21       共计:4619 浏览

我一般是通过命令获取的:

#sudo apt-get update

而/etc/apt/sources.list这个文件中是一个指示apt程序到哪里去获取资源的资源列表文件。apt-get update之后的内容不会反应在这里。另外,apt-get update只是更新了apt的资源列表,没有真正的对系统执行更新。如果需要,要使用apt-get upgrade来更新。

这个英文短文就是一些关于这个命令的说明,可以查看一下


Syncking with Repository After saving your sources.list file, we first want to update our local database so that it's in sync with Debian's sources:

apt-get updateThe output will show apt-get downloading the information from Debian's servers and then syncking its own database. Your output should look something like this:


linuxhelp.net:~# apt-get updateGet:1 ftp://ftp.debian.org testing/main Packages Get:2 http://security.debian.org stable/updates/main Packages Get:3 http://security.debian.org stable/updates/main Release Get:4 ftp://ftp.debian.org testing/main Release Get:5ftp://ftp.debian.org testing/main Sources Get:6 ftp://ftp.debian.org testing/main Release Fetched 4744kB in 2m40s (29.5kB/s)Reading Package Lists... Donelinuxhelp.net:~#

版权说明:
本网站凡注明“公众IT 原创”的皆为本站原创文章,如需转载请注明出处!
本网转载皆注明出处,遵循行业规范,如发现作品内容版权或其它问题的,请与我们联系处理!
您可以扫描右侧微信二维码联系我们。
网站首页 关于我们 联系我们 合作联系 会员说明 新闻投稿 隐私协议 网站地图