deepin安装Nginx

徐焱
2023-12-01

deepin安装Nginx

安装

$ echo deb http://nginx.org/packages/debian/ buster nginx | sudo tee /etc/apt/sources.list.d/nginx.list   
注:主线版本源为 deb http://nginx.org/packages/mainline/debian/ buster nginx
$ apt install gnupg2
$ wget http://nginx.org/keys/nginx_signing.key && sudo apt-key add nginx_signing.key 
$ sudo apt update && apt install nginx -y

如果遇到报错dpkg-deb: 错误: 粘贴 子进程被信号(断开的管道) 终止了 在处理时有错误发生: /var/cache/apt/archives/nginx_1.20.1-1~buster_amd64.deb needrestart is being skipped since dpkg has failed

解决: 强制覆盖改文件

  • sudo dpkg -i --force-overwrite “/var/cache/apt/archives/nginx_1.20.1-1~buster_amd64.deb”
 类似资料: