50 debian apt package-management
每当尝试从源代码安装某些程序或专门运行 apt update 时,我都会收到以下消息:
E: The repository 'http://ftp.ca.debian.org/debian stretch/updates Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Run Code Online (Sandbox Code Playgroud)
我在添加架构 i386 后开始得到这个。没有它,我将无法安装专有的 Nvidia 驱动程序,并且 Steam 客户端根本无法启动。这是我的/etc/apt/sources.list
阅读内容:
deb http://ftp.ca.debian.org/debian/ stretch main contrib non-free
deb-src http://ftp.ca.debian.org/debian/ stretch main contrib non-free
deb http://ftp.ca.debian.org/debian/ stretch/updates main contrib non-free
deb-src http://ftp.ca.debian.org/debian/ stretch/updates main contrib non-free
####stretch-updates, previously known as 'volatile'
deb http://ftp.ca.debian.org/debian/ stretch-updates main contrib non-free
deb-src http://ftp.ca.debian.org/debian/ stretch-updates main contrib non-free
Run Code Online (Sandbox Code Playgroud)
Ste*_*itt 32
你有stretch-updates
和stretch/updates
,但后者不再存在(至少在你使用的镜子上)。您应该删除对 的引用stretch/updates
,或者 - 如果您希望这些stretch/updates
行提供安全更新 -将它们替换为
deb http://security.debian.org/ stretch/updates main contrib non-free
Run Code Online (Sandbox Code Playgroud)
Ali*_*ari 29
运行以下命令,它应该被修复
echo "deb http://archive.debian.org/debian stretch main contrib non-free" > /etc/apt/sources.list
Run Code Online (Sandbox Code Playgroud)
或者通过运行以下命令将存储库网站更改deb.debian.org
为archive.debian.org
:
sed -i s/deb.debian.org/archive.debian.org/g /etc/apt/sources.list
Run Code Online (Sandbox Code Playgroud)
如果也有安全性(security.debian.org),那么:
sed -i s/security.debian.org/archive.debian.org/g /etc/apt/sources.list
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
138392 次 |
最近记录: |