pondelok 31. januára 2022

Ubuntu - expire gpg key

When we have a problem with expire gpg key




 #check key

apt-key list                         à example - expired: 2000-01-01



#download new key from repository server (check proxy server)




10.223.120.3:8000 - test


10.223.248.3:8000 - production

(proxy: /etc/apt/apt.conf)

wget -e use_proxy=yes -e http_proxy=http://10.10.10.31:3935 http://reposerver.com/pub/gpg.key


#add new key 


apt-key add gpg.key


#check key


apt-key list


# For error:


E: Repository 'http://landscape.oam-sa.mn.de.tmo/repository/standalone/ubuntu bionic InRelease' changed its 'Suite' value from '' to 'bionic'


N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.


# Fix and use new gpg key


apt-get update --allow-releaseinfo-change





Special thanks: Marian, Tomas and of course Jan


read this: 

https://linuxtutorials.org/This-must-be-accepted-explicitly-before-updates-for-this-repository-can-be-applied-See-apt-secure-8-manpage-for-details/

Žiadne komentáre:

Zverejnenie komentára