Ubuntu更新源列表时NO_PUBKEY(找不到公钥)问题的解决方法

Stupig posted @ 2010年7月12日 07:18 in Linux with tags ubuntu linux PubKey , 3919 阅读

  在使用Ubuntu的过程中,有时我们会因为想试一下一些新奇的东东,于是我们可能会修改软件源的配置文件(/etc/apt/sources.list)。修改完成之后当然要“update”一下,但在“update”完成之后却发现出现了“GPG签名验证错误:××××,由于没有公钥,下列签名无法进行验证: NO_PUBKEY ×××××”的问题,如下图:

NoPubkey

  此时要如何解决呢?其实Ubuntu社区为我们提供了解决方案,在“http://keyserver.ubuntu.com/”里一般都可以找到我们所需要的公钥(PUBKEY)。当然,不是说直接访问这个网页去搜索下载再导入,而是通过终端来实现。下面是解决方法:

$ gpg --keyserver keyserver.ubuntu.com --recv 21C022AA985E0E11
# 后面的字符串是NO_PUBKEY后的提供字符
$ gpg --export --armor 21C022AA985E0E11 | sudo apt-key add -
# 注意命令最后面还有一个“-”,千万不要忘记了它!

  通过运行这两个简单的终端命令之后,我们已经把公钥(PUBKEY)成功的导入了(如果失败了,会出现提示的,本文就不多加说明了)。现在再来“update”一下,是不是就没问题了呢?

AAA 说:
2021年8月09日 21:17

Excellent article. Very interesting to read. I really love to read such a nice article. Thanks! keep rocking. Fast-track pharmacy tech classes

BASIT 说:
2021年8月15日 15:25

I read a article under the same title some time ago, but this articles quality is much, much better. How you do this.. buy google voice usa number

dfg` 说:
2021年8月22日 17:57

That's why its more practical that you may appropriate study previous to developing. You'll be able to post more significant posting like this. เว็บไม่โกง

dfg` 说:
2021年8月25日 21:14

It is truly a well-researched content and excellent wording. I got so engaged in this material that I couldn’t wait reading. I am impressed with your work and skill. Thanks. buy youtube subscribers

dfg` 说:
2021年8月26日 22:50

The examples below is definetly for instance glimmer brilliant. Each one of these insignificant issues are built utilizing wide variety of cornerstone knowledge. I spend time these folks a great deal. nh lottery slingo

dfg` 说:
2021年9月11日 17:02

You there, this is really good post here. Thanks for taking the time to post such valuable information. Quality content is what always gets the visitors coming. krt carts

dfg` 说:
2021年9月12日 14:30

Wow, cool post. I’d like to write like this too – taking time and real hard work to make a great article… but I put things off too much and never seem to get started. Thanks though. 代写会被查出来吗

dfg` 说:
2021年9月13日 16:00

Thank you because you have been willing to share information with us. we will always appreciate all you have done here because I know you are very concerned with our. 먹튀사이트

dfg` 说:
2021年9月14日 14:25

This type of message always inspiring and I prefer to read quality content, so happy to find good place to many here in the post, the writing is just great, thanks for the post. free bigfish slots

dfg` 说:
2021年9月21日 19:40

I recently came across your blog and have been reading along. I thought I would leave my first comment. I don't know what to say except that I have enjoyed reading. Nice blog. I will keep visiting this blog very often. https://muabannhadat.tv/bat-dong-san/hoa-binh

dfg` 说:
2021年9月23日 17:23

Yes i am totally agreed with this article and i just want say that this article is very nice and very informative article.I will make sure to be reading your blog more. You made a good point but I can't help but wonder, what about the other side? !!!!!!THANKS!!!!!! standard maltipoo puppy for sale

dfg` 说:
2021年9月25日 15:54

This is such a great resource that you are providing and you give it away for free. I love seeing blog that understand the value of providing a quality resource for free. Rottweiler puppies for sale nsw

dfg` 说:
2021年9月25日 22:06

Mifegest Kit Uses, price, side effects. How to use Mifegest Kit? Buy Online Mifegest tablet in 100% Private Pack at SmackDeal.com. Mifigest Kit tablet is a combination of two drugs used for medical abortion (terminating a pregnancy). This drug blocks progesterone’s action, a female hormone necessary to maintain fertility and induce contractions in the uterus, further assisting in an abortion. Mifigest tablets should be taken with food or on the advice of your doctor.

dfg` 说:
2021年9月27日 14:20

Hello I am so delighted I located your blog, I really located you by mistake, while I was watching on google for something else, Anyways I am here now and could just like to say thank for a tremendous post and a all round entertaining website. Please do keep up the great work. Buy Cannabis concentrates UK

dfg` 说:
2021年10月08日 00:25

What is an outstanding post! “I’ll be back” (to read more of your content). Thanks for the nudge! white label real estate crowdfunding software

dfg` 说:
2021年10月09日 16:00

This article gives the light in which we can observe the reality. This is very nice one and gives indepth information. Thanks for this nice article. WhatsApp Automation Tool

dfg` 说:
2021年10月12日 22:30

This is highly informatics, crisp and clear. I think that everything has been described in systematic manner so that reader could get maximum information and learn many things. VPN검증

dfg` 说:
2021年10月14日 23:33

If you are looking for more information about flat rate locksmith Las Vegas check that right away. slamdunk

dfg` 说:
2021年10月17日 22:43

I wanted to thank you for this great read!! I definitely enjoying every little bit of it I have you bookmarked to check out new stuff you post. SITUS JOKER123

dfg` 说:
2021年10月21日 15:19

Thank you a bunch for sharing this with all of us you actually realize what you are talking about! Bookmarked. Please also seek advice from my site =). We could have a hyperlink change contract between us! https://linktr.ee/bartberater;https://linktr.ee/bartberater

dfg` 说:
2021年10月23日 00:14

It is my first visit to your blog, and I am very impressed with the articles that you serve. Give adequate knowledge for me. Thank you for sharing useful material. I will be back for the more great post. 犀利士購買

dfg` 说:
2021年10月25日 18:18

Good news for Free Fire players. You can get Genera Free Fire Redeem Code for India, Singapore, Malaysia, Indonesia and Europe server. As per the official releases, working reward Kode Redeem FF today availabel on NewsGater.com

dfg` 说:
2021年10月27日 20:44

Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I'll be subscribing to your feed and I hope you post again soon. Big thanks for the useful info. https://movies123.digital/

dfg` 说:
2021年10月28日 23:17

it's really nice and meanful. it's really cool blog. Linking is very useful thing.you have really helped lots of people who visit blog and provide them usefull information. sildalis 120

dfg` 说:
2021年10月30日 14:51

If you are looking for more information about flat rate locksmith Las Vegas check that right away. Parksville's Most Successful Restaurants

satac key dates 说:
2021年11月01日 17:49

메이저사이트 메이저놀이터에서는 스포츠 종목으로 축구,야구,농구에 대한 배팅이 가능하면서 먹튀가 존재하지 않는 사이트를 일컫는 명칭입니다.

dfg` 说:
2021年11月03日 13:59

hello!! Very interesting discussion glad that I came across such informative post. Keep up the good work friend. Glad to be part of your net community. THC vape juice UK

satac key dates 说:
2021年11月03日 20:00

مانا رشــفة متجــر وتطبيــق الكترونــي مختــص فــي بيــع وتوصيــل ميــاه الشــرب الــى المنــازل او المســاجد او أي مــكان تحددونــه مــن خــال وســائل النقــل التــي نمتلكهــا بالإضافــة الــى مســتودعاتنا المنتشــرة فــي عمــوم المملكــة لضمــان الســرعة والكفــاءة بالعمــل كل ذلــك عــن طريـق تطبيـق بتصميم بسـيط سـهل الإ

satac key dates 说:
2021年11月03日 21:57

best website design & development agency Charlotte NC We're not just another website company. Evolution in technology is continually transforming how businesses operate and how people interact with the world.

satac key dates 说:
2021年11月04日 16:13

soap2day.eus Soap2day is a FREE Movie Streaming site to watch movies and tv series. Soap2dayto, soap2day to, soap 2 day, soaptoday is free and safe to use.

satac key dates 说:
2021年11月04日 21:32

Levizo Information risk management software in UK LEVIZO provide Third-party risk management services in UK, Information security services in UK and Information risk management Services in UK. Contact us today for more details and quotation.

dfg` 说:
2021年11月04日 22:19

I think this is an informative post and it is very beneficial and knowledgeable. Therefore, I would like to thank you for the endeavors that you have made in writing this article. All the content is absolutely well-researched. Thanks... game slot online terpercaya

dfg` 说:
2021年11月07日 22:02

very interesting post.this is my first time visit here.i found so mmany interesting stuff in your blog especially its discussion..thanks for the post! agen judi slot online terbaik

dfg` 说:
2021年11月08日 20:43

I have been checking out a few of your stories and i can state pretty good stuff. I will definitely bookmark your blog. mm88new

dfg` 说:
2021年11月10日 17:24

I just couldn't leave your website before telling you that I truly enjoyed the top quality info you present to your visitors? Will be back again frequently to check up on new posts. Candy Burst

dfdffd 说:
2021年11月16日 01:12

This is my first time i visit here. I found so many interesting stuff in your blog especially its discussion. From the tons of comments on your articles, I guess I am not the only one having all the enjoyment here keep up the good work 메이저토토


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter