我尝试使用终端更新我的 OS Debian jessie,但出现错误:
“E: The method driver /usr/lib/apt/methods/https could not be found.” error?
Run Code Online (Sandbox Code Playgroud)
我的 sources.list :
deb http://httpredir.debian.org/debian/ jessie main
deb-src http://httpredir.debian.org/debian/ jessie main
deb http://security.debian.org/ jessie/updates main
deb-src http://security.debian.org/ jessie/updates main
# jessie-updates, previously known as 'volatile'
deb http://httpredir.debian.org/debian/ jessie-updates main
deb-src http://httpredir.debian.org/debian/ jessie-updates main
deb http://ftp.de.debian.org/debian jessie main
Run Code Online (Sandbox Code Playgroud)
如何修复apt-get update和aptitude update?
我对使用 yum 安装软件包不是很熟悉。在前世,我使用了 apt。
目前,我正在查看一些运行说明
# yum install http://example.com/package.rpm
这显然会订阅一个特定的存储库,从中可以下载更多的包。这是一件安全的事情吗?
为了比较,我知道 apt 包有 gpg 签名,这意味着通过 http 下载不是问题。如此处所述。并且在使用apt下载主库外的包时,可以手动添加一个让apt接受的gpg密钥,以确保任何非标准包都具有相同的可信来源。
如果我运行上面的命令,yum 会在开始安装之前要求我接受 gpg 密钥,还是可以安装任何东西?
如果相关,我的/etc/yum.conf文件包含gpgcheck=1在该[main]部分内。
我注意到 Debian 10 的全新安装使用 CDN 来下载名为deb.debian.org. 这是比使用特定于国家/地区的镜像(例如ftp.uk.debian.org.
我查看了 https://deb.debian.org。\xc2\xa0\n它说它也可以用于安全更新,即。debian-security\xc2\xa0\n我\xc2\xa0将我更改/etc/apt/sources.list为使用deb.debian.org,\n包括安全性更新。
然而,现在我想我犯了一个错误。我注意到全新安装的 Debian 10 仍然用于security.debian.org安全更新。
是否有任何其他信息可以帮助解决此问题并决定我应该使用哪个来源?
\n$ cat /etc/apt/sources.list\n# \n\n# deb cdrom:[Official Debian GNU/Linux Live 10.0.0 standard 2019-07-06T10:36]/ buster main\n\n#deb cdrom:[Official Debian GNU/Linux Live 10.0.0 standard 2019-07-06T10:36]/ buster main\n\ndeb http://deb.debian.org/debian/ buster main\ndeb-src http://deb.debian.org/debian/ buster main\n\ndeb http://security.debian.org/debian-security buster/updates main\ndeb-src http://security.debian.org/debian-security buster/updates main\n\n# buster-updates, previously known as 'volatile'\ndeb http://deb.debian.org/debian/ buster-updates main\ndeb-src http://deb.debian.org/debian/ buster-updates main\n\n# This …Run Code Online (Sandbox Code Playgroud)