我使用的是deepin 15.11并将/etc/apt/source.list更改为
deb [by-hash=force] http://mirrors.aliyun.com/deepin lion main contrib non-free
按照阿里巴巴的官方指南,但是当我使用时apt update
,出现错误
Ign:1 http://mirrors.aliyun.com/deepin lion InRelease
Hit:2 http://packages.microsoft.com/repos/vscode stable InRelease
Err:3 http://mirrors.aliyun.com/deepin lion Release
404 Not Found [IP: 222.186.18.240 80]
Hit:4 https://packages.microsoft.com/ubuntu/16.04/prod xenial InRelease
Reading package lists... Done
E: The repository 'http://mirrors.aliyun.com/deepin lion 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.
我曾经成功过apt update
,但今天失败了。我不知道为什么,你能帮我吗?谢谢。
答案1
E: The repository 'http://mirrors.aliyun.com/deepin lion Release' does not have a Release file.
意思是lion
目录http://mirrors.aliyun.com/deepin
不存在。
这deepin 仓库接受apricot
(又名stable
)和unstable
。
编辑您的sources.list
如下:
deb [by-hash=force] http://mirrors.aliyun.com/deepin apricot main contrib non-free
或者:
deb [by-hash=force] http://mirrors.aliyun.com/deepin stable main contrib non-free