alc*_*emy -3 updates package-management apt repository
当我尝试使用 APT 运行更新时,如果单个存储库存在问题,APT 将无法继续并且更新失败... APT 不应该跳过该存储库并继续吗?特别是当它是一个单独的文件时/etc/sources.list.d/?并且没有连接到任何 Ubuntu 存储库?
这不是一个安全漏洞吗?如果可以写入错误的存储库列表,它将阻止重要的安全存储库通过无人值守的更新进行更新,不是吗?幸运的是,它第二次更新了安全存储库……也许这是设计使然。
这就是我所追求的apt update。存储库的更新在损坏后不会继续。
Hit:1 http://archive.ubuntu.com/ubuntu - InRelease
Hit:2 http://security.ubuntu.com/ubuntu --security InRelease
Hit:3 http://archive.ubuntu.com/ubuntu --updates InRelease
Hit:4 http://archive.ubuntu.com/ubuntu --backports InRelease
Ign:5 http://apt.keepsolid.com/ubuntu - InRelease
Err:6 http://apt.keepsolid.com/ubuntu - Release
404 Not Found [IP: 144.217.71.199 80]
Reading package lists... Done
E: The repository 'http://apt.keepsolid.com/ubuntu - 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)
这是设计使然。查看 的源代码apt,只有三种可能的响应代码:
0\xe2\x80\x94 没有错误
\n 1\xe2\x80\x94 没有传递参数
\n 100\xe2\x80\x94 重要的事情\xe2\x80\x99t 不对
因为apt负责在计算机上安装软件,所以对于什么时候可以继续以及什么时候应该彻底失败需要非常谨慎。当存在可以忽略的问题时,W会发送一条(警告)消息来通知您有错误,但任何E(错误)都会强制apt停止。
对于绝大多数人来说,拥有一个运行旧版本软件的工作系统比安装了一半最新版本软件的损坏系统要好。
\n为什么\xe2\x80\x99t没有apt说\xe2\x80\x9c之类的东西哦,这个repo没有这个系统版本的release文件,所以让\xe2\x80\x99s默默地跳过它?\xe2\x80\ x9d 因为它\xe2\x80\x99s 不是apt\xe2\x80\x99s 管理源的工作。源管理的责任落在系统管理员身上。如果管理员不想管理,那么apt会尽力而为,仅此而已。
如果您认为这apt应该自行管理,也许您可以为 Debian 团队写一份提案,并让他们在未来的版本中考虑它
| 归档时间: |
|
| 查看次数: |
262 次 |
| 最近记录: |