解决Debian9无法更新的问题 2023-05-09 Website News 暂无评论 1460 次阅读 最近Debian9源失效了,无法更新,查了一下,原来是地址变了,替换一下就好了 ```csharp sudo sed -i s/deb.debian.org/archive.debian.org/g /etc/apt/sources.list sudo sed -i s/deb.debian.org/archive.debian.org/g /etc/apt/sources.list.d/stretch-backports.list sudo sed -i 's|security.debian.org|archive.debian.org|g' /etc/apt/sources.list sudo sed -i '/stretch-updates/d' /etc/apt/sources.list ``` 或者手动更新一下源 ```csharp nano /etc/apt/sources.list ``` #按i进入编辑模式,复制下面的源替换进去,随后按:wq结束编辑并保存 ```csharp deb http://archive.debian.org/debian stretch main deb-src http://archive.debian.org/debian stretch main deb http://archive.debian.org/debian-security stretch/updates main deb [arch=amd64] https://download.docker.com/linux/debian stretch stable deb-src http://archive.debian.org/debian-security stretch/updates main ``` ```csharp deb http://archive.debian.org/debian/ stretch main contrib non-free deb http://archive.debian.org/debian/ stretch-proposed-updates main contrib non-free deb http://archive.debian.org/debian-security stretch/updates main contrib non-free ``` 标签: Debian, 更新 本作品采用 知识共享署名-相同方式共享 4.0 国际许可协议 进行许可。
评论已关闭