Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
【已解决】无法使用nginx源怎么办呢
Experiences and Insight
345
views ·
0
replies ·
To
floor
Go
thepoy
deepin
2020-01-19 23:06
Author
本帖最后由 thepoy 于 2020-1-19 15:26 编辑
根据nginx官方文档一步一步来的,最后update的时候出了问题:
➜ ~ sudo apt update
命中:1 http://packages.deepin.com/deepin lion InRelease
命中:2 https://download.sublimetext.com apt/stable/ InRelease
忽略:3 http://nginx.org/packages/debian stable InRelease
命中:4 https://typora.io/linux ./ InRelease
错误:5 http://nginx.org/packages/debian stable Release
404 Not Found [IP: 62.210.92.35 80] # ip可以ping通
正在读取软件包列表... 完成
E: 仓库 “http://nginx.org/packages/debian stable Release” 没有 Release 文件。
N: 无法安全地用该源进行更新,所以默认禁用该源。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
Copy the Code
怎么才能解决呢?
deepin15.11基于debian 9(
stretch
),所以在添加源时需要指定系统版本。
官方文档中的添加源的代码:
echo "deb http://nginx.org/packages/debian `lsb_release -cs` nginx" \
| sudo tee /etc/apt/sources.list.d/nginx.list
Copy the Code
改为:
echo "deb http://nginx.org/packages/debian stretch nginx" \
| sudo tee /etc/apt/sources.list.d/nginx.list
Copy the Code
即可
Reply
Like 0
Favorite
View the author
All Replies
No replies yet
Please
sign
in first
Featured Collection
Change
[Tutorial] deepin25 WSL Offline Installation Guide
UOS AI 2.8 Released! Three New Intelligent Agents & Major Evolution
Solid Q&A | deepin 25 Common Questions – The Immutable System Edition
New Thread
Popular Ranking
Change
WiFi Drivers
Popular Events
More
根据nginx官方文档一步一步来的,最后update的时候出了问题:
怎么才能解决呢?
deepin15.11基于debian 9(stretch),所以在添加源时需要指定系统版本。
官方文档中的添加源的代码: