The following signatures couldn't be verified because the public key is not available
来源:互联网 发布:单身约会软件app 编辑:程序博客网 时间:2024/05/17 06:58
在Debian/Ubuntu上用apt-get安装最新版本的nginx
Debian/Ubuntu上使用apt-get安装nginx,我们会发现安装的并不是最新版本的nginx。其实nginx提供了apt源,通过nginx的apt源即可安装最新版本的nginx。
1、首先我们要把nginx的apt源加入/etc/apt/sources.list:
Debian 6(squeeze):
deb http://nginx.org/packages/debian/ squeeze nginx
deb-src http://nginx.org/packages/debian/ squeeze nginx
如果是Debian 5,则将上面的squeeze改成lenny即可。
Ubuntu 12.04 LTS(precise):
deb http://nginx.org/packages/ubuntu/ precise nginx
deb-src http://nginx.org/packages/ubuntu/ precise nginx
2、更新apt-key:
wget http://nginx.org/keys/nginx_signing.key
sudo apt-key add nginx_signing.key
如果不执行这一步,执行以下步骤时会出现类似这样的错误:
GPG error: http://nginx.org precise Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY ABF5BD827BD9BF62
3、更新apt
apt-get update
4、安装nginx
apt-get install nginx
如果出现错误提示 /etc/logrotate.d/nginx 和这个相关,则先执行:
apt-get remove nginx-common
然后再执行apt-get install nginx
期间会有提示你是否更新配置文件,回答Y即可
5、安装完毕,执行
/usr/sbin/nginx -v
查看版本是否是最新的。
- The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 010
- The following signatures couldn't be verified because the public key is not available
- The following signatures couldn't be verified because the public key is not available
- The following signatures couldn't be verified because the public key is not available
- 修复debian:The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 010908312D230C5F
- 解决GPG error: The following signatures couldn't be verified because the public key is not available
- ubuntu14.04 报错 The following signatures couldn't be verified because the public key is not available
- 修复 apt-get update “the following signatures couldn’t be verified because the public key is not avai
- Fix apt-get update “the following signatures couldn’t be verified because the public key is not avai
- apt-get couldn't be verified because the public key is not available: NO_PUBKEY XXX
- W: There is no public key available for the following key IDs, E: Couldn't rebuild package cache
- W: There is no public key available for the following key IDs: 3B4FE6ACC0B21F32
- W: GPG error: http://apt.postgresql.org lucid-pgdg Release: The following signatures couldn't be ver
- Coroutine couldn't be started because the the game object 'GameController' is inactive!
- The animation state could not be played because it couldn't be found!
- The file “Pods.xcconfig” couldn’t be opened because there is no such file.
- The file “Info.plist” couldn’t be opened because there is no such file
- The file “Info.plist” couldn’t be opened because there is no such file
- Android如何判断是否是平板
- 蛇形填数
- java xml学习(二)
- [2014-3-11]JAVA笔记_抽象类(abstract class)、接口(interface)
- js判断变量是否空值的代码
- The following signatures couldn't be verified because the public key is not available
- ClassLoader理解
- HDOJ1021 Fibonacci Again
- 关于alibaba的fastjson
- 字符设备驱动
- linux版本 Centos下安装tar包/rpm包
- VS2008项目中相关目录的说明
- RT_Thread最新开发板RealBoard—LPC4088的介绍及编译环境的搭建和下载
- 树莓派(rasperberry pi 2)上装mysql远程无法访问