LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 05-05-2013, 05:22 PM   #1
frog-o
LQ Newbie
 
Registered: Nov 2008
Posts: 13

Rep: Reputation: 0
Questions on GPG keyrings for debain apt-get? (fixing problem with gpg)


The Problem I having is ...

I have LMDE installed and getting errors with can not verify sources so in an a temp to fix this


I have created a junk directory moved everything in /etc/apt into the junk dir and recreated the following directory.

apt.conf.d preferences.d sources.list.d trusted.gpg.d

I created 2 files source list file in the sources.list.d

they look like this

# cat debain.list
deb [arch=amd64,i386] http://ftp.us.debian.org/debian jessie main contrib non-free

# cat mint.list
deb [arch=amd64,i386] http://mirror.metrocast.net/linuxmint-debian/latest/ testing main contrib non-free

and ran apt-get update

wich then error with

W: GPG error: http://mirror.metrocast.net testing Release: No keyring installed in /etc/apt/trusted.gpg.d/.
W: GPG error: http://ftp.us.debian.org jessie Release: No keyring installed in /etc/apt/trusted.gpg.d/.


I keep need to get gpg keys but I can't find any info on how to use and get gpg key
please

telling me how to Find and get them not just give me a command

like gpg --keyserver some.server.i.done.know.where.you.got.from.(possible some hack place)
.


Any help getting my apt-get working again would be appreciated Thank-you.

Note:
(I was in hope that when i add a source to the source.list.d dir and ran apt-get update it would download needed gpg file but it did not do this)

for anyone Interested since no man page exits for source.list

man source.list (dose not exits)


I figure Ill explain how i created the source.list file by looking at a working one and toying with it.


The perimeter need seem to be

deb (a deb package) or deb-src( I seen other use deb-src witch i think is for debain source)

arch (in my case i want =amd64,i386) I might be better with i686(for 32-bit support) but don't know if it supported

url (with can be found on debian.org packages search when going to download a package though there sight web interface on the last page before it start the download it say you can add a deb comand to the source.list file in /etc/apt ). It is very annoying the command they give on there page dose not work and dose not tell you where to get the need gpg keys to git this to work without complaining.

The last part I found where directory from the mirror (the url you put in as the 3rd parimiter, Interesting enough you can open the url in a web browser)

Last edited by frog-o; 05-12-2013 at 10:54 AM. Reason: Trying to make better title and worded better
 
Old 05-05-2013, 05:29 PM   #2
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
# apt-get install debian-archive-keyring

$ dpkg-query --load-avail -l '*keyring*'
 
Old 05-12-2013, 10:50 AM   #3
frog-o
LQ Newbie
 
Registered: Nov 2008
Posts: 13

Original Poster
Rep: Reputation: 0
First I would like 2 thank Shadow_7 for his reply. It did help me in my quest to fix my gpg key problems it also show me i need to word my title better. Maybe a title 'Question on gpg keys and how to get them working'. Would have been more appropriate. He only answer what I ask.I guess I deserve that .

4 people like me would like a more verbose answer I posted what i believe is correct reply that i wished i got(please remember I known nothing of gpg keys the reply might not be true, I only answer my own question because I don't think anyone going to answer this post because it word bad) .(Please feel free to correct my reply if there wrong, or you can add more info) I will also answer a third question I should of asked.


Where do you get gpg keys?

You get gpg key from the repository them self( you have to say yes to it for allow from an unknown source chick and egg problem).
You may be able to git them other ways but this is arguably one of the easy ways.

How do you use gpg keys ?
gpg key are you automatically, along as you have a new enough dpkg and have it probably configure. I would guess most Debian base Linux distribution do.


I keep getting an error when trying to install package with apt-get, it said it from an untrusted source and the gpg are missing or expired, how do i fix it ?
To get gpg key working you should

1.) just focus on getting one repository to work first, you do this by

a.)only leave one source in the source.list file
b.)make sure there no source in the source-list.d dir.

2.) Download the gpg key ring from there repository.

4.) do an apt-get update.
5.)try to install a package it should work with our error or warning about unknown source.

please keep in mind that you package manager GUI is different then apt-get and dpkg is different then apt-get.



Secondly,


I was able to fix my problem with gpg key a bunch of fiddling (I outline what I think I done above in question 3 not quit sure if this is all that you have 2 do thou but if anyone else is having problem with apt-get complaining about gpg keys. I what them to be able to see in more detail on what I did how to fix my gpg error problems. So i post what I tried and why I believe it to failed and explanation on what i did next.


The first thing i did after clean out all config file from /etc/apt and puting back the direct use by apt-get is get the gpg keys for debain package

running

# sudo apt-get install debian-archive-keyring

gave me a line that stated

debian-archive-keyring is already the newest version. So i figure I had to tell it to reinstall it to put back what is needed in my /etc/apt/trusted.gpg and /etc/apt/trustdb.gpg

I then used

sudo apt-get install debian-archive-keyring --reinstall

then ran

sudo apt-get update

This seem to fix debain problem but not mint keyrings( i could use apt-get install some debain package with out complaining)

so i delete my mint.list and ran apt-get update just 2 make sure that mint repository was causing the error.

sudo apt-get update

This seem to work ok but still did not get mintupdate to work

I thought it might be a cashing problem so I ran

apt-get clean

This seem to do nothing mintupdate still show package that where from the mint repository even thou it did not have access to the mint repository in it source files interesting( I figure it must store them someplace else I treid to edit the source file from the menu of mintupdate it did nothing tho).


I figure I need to install a new mintupdate since the old one is broke but how can i do this without mint repsoitory.

I copy this line from my old source.list 2 new one.

deb [arch=amd64,i386] http://packages.linuxmint.com/ debian main upstream import

I figure it might work now since a clean out the cache and accessing the main LMDE repository instead of a mirror but i still like to get an update all the mirror of linux mint.


I Put the http://packages.linuxmint.com/ in a web browser and found out interesting enough that you can get LMDE packages from there.


I tried to download mint-debian-mirrors_2013.02.18_all.deb and install it with the command

#sudo dpkg -i mint-debian-mirrors_2013.02.18_all.deb

it complain mint server could not be found. I don't think it done anying be it might so i put t here to be complete and ran


#apt-get update

This time it updated with no error but mintupdate still did not work it complain about untrusted sources.

so i figure I update mintupdate and did a aptget search and found

there 2 mint-update

mint-update
mint-update-debain

I told apt-get update to install mint-update

#apt-get install mint-update

it said it was going 2 remove mint-update-debain

I told it ok.

I now have been able to run and install a few package with mintupdate and it look like it newer 2.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Will apt-get installs 32bit debain package on 64bit debian/ubuntu machine ?? narendra1310 Linux - Software 1 03-09-2010 07:43 AM
GPG: Bad session key gpg between gpg on linux and gpg gui on windows XP konqi Linux - Software 1 07-21-2009 09:37 AM
apt-get; E: Type 'GPG' is not known on line 20 in source list /etc/apt/sources.list tomorrow Linux - Newbie 9 05-21-2009 08:42 AM
Debain: No X-windows found in apt-get DrBart Debian 6 06-14-2006 03:03 AM
apt-ger and java for debain sid green-ears Debian 3 01-01-2004 07:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 09:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration