欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

Linux yum安裝postgresql出現(xiàn)Bad GPG signature問題的解決方法

 更新時間:2024年02月28日 09:03:52   作者:是良辰  
這篇文章給大家介紹了Linux yum安裝postgresql出現(xiàn)Bad GPG signature問題的解決方法,文中通過代碼示例給大家介紹的非常詳細,具有一定的參考價值,需要的朋友可以參考下

官方文檔:https://www.postgresql.org/download/linux/redhat/

sudo yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
sudo yum install -y postgresql12-server
sudo /usr/pgsql-12/bin/postgresql-12-setup initdb
sudo systemctl enable postgresql-12
sudo systemctl start postgresql-12

安裝官方文檔操作執(zhí)行如下命令:

sudo yum install -y postgresql12-server

提示找不到,此時需要進行如下操作:

# 查找repo文件,復制pgdg-redhat-all.repo這個文件名
ls -l /etc/yum.repos.d/

# 編輯這個配置文件,將剛剛復制的文件名添加進去
vim /etc/yum/pluginconf.d/releasever_adapter.conf

繼續(xù)執(zhí)行:sudo yum install -y postgresql12-server

出現(xiàn)錯誤:Error: Failed to download metadata for repo 'pgdg-common': repomd.xml GPG signature verification error: Bad GPG signature

此時只需要修改安裝命令即可:

sudo yum install -y --nogpgcheck postgresql12-server

到此這篇關(guān)于Linux yum安裝pgsql出現(xiàn)Bad GPG signature問題的解決方法的文章就介紹到這了,更多相關(guān)Linux安裝pgsql出錯內(nèi)容請搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!

相關(guān)文章

最新評論