LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   apt-get; E: Type 'GPG' is not known on line 20 in source list /etc/apt/sources.list (http://www.linuxquestions.org/questions/linux-newbie-8/apt-get%3B-e-type-gpg-is-not-known-on-line-20-in-source-list-etc-apt-sources-list-726911/)

tomorrow 05-18-2009 09:13 PM

apt-get; E: Type 'GPG' is not known on line 20 in source list /etc/apt/sources.list
 
Ok, so I'm running a kinda old version of Ubuntu - Edgy Eft (6.10).

A friend of mine installed it a couple of years ago and I've never updated anything with apt-get until now.

So, now, it looks like it doesn't have / know how to use GPG.
I enter:
Code:

apt-get update
And I get:
Code:

E: Type 'GPG' is not known on line 20 in source list /etc/apt/sources.list
???

I'd appreciate any help. Thanks

Matir 05-19-2009 01:57 PM

Look at your /etc/apt/sources.list. My guess is something got uncommented by mistake.

tomorrow 05-19-2009 05:47 PM

Thanks Matir. Unfortunately, I don't think the problem is in /etc/apt/sources.list. I compared it line-for-line with a couple of sources.list samples posted on the web. It is exactly the same.
I considered simply commenting out the GPG lines, but wouldn't that compromise the security of the download?

Matir 05-19-2009 07:13 PM

What do your GPG lines look like? None of my sources.list files contain any lines beginning with GPG (and it does verify signed packages).

tomorrow 05-21-2009 07:23 AM

Here is what lines 20 onward say:

Quote:

GPG Key Information

wget http://www.kubuntu.org/announcements...iddell-key.gpg | sudo apt-key add

farslayer 05-21-2009 07:31 AM

that is a command you would manually type in a terminal to download and install a key..
it should not be in your sources list.

Matir 05-21-2009 08:12 AM

Agreed with what farslayer said. For example, my sources.list looks like:
Code:

#deb cdrom:[Ubuntu 9.04 _Jaunty Jackalope_ - Alpha amd64 (20090207)]/ jaunty main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://us.archive.ubuntu.com/ubuntu/ jaunty main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ jaunty main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ jaunty-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ jaunty-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ jaunty universe
deb-src http://us.archive.ubuntu.com/ubuntu/ jaunty universe
deb http://us.archive.ubuntu.com/ubuntu/ jaunty-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ jaunty-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://us.archive.ubuntu.com/ubuntu/ jaunty multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ jaunty multiverse
deb http://us.archive.ubuntu.com/ubuntu/ jaunty-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ jaunty-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ jaunty-backports main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ jaunty-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository. This software is not part of Ubuntu, but is
## offered by Canonical and the respective vendors as a service to Ubuntu
## users.
# deb http://archive.canonical.com/ubuntu jaunty partner
# deb-src http://archive.canonical.com/ubuntu jaunty partner

deb http://security.ubuntu.com/ubuntu jaunty-security main restricted
deb-src http://security.ubuntu.com/ubuntu jaunty-security main restricted
deb http://security.ubuntu.com/ubuntu jaunty-security universe
deb-src http://security.ubuntu.com/ubuntu jaunty-security universe
deb http://security.ubuntu.com/ubuntu jaunty-security multiverse
deb-src http://security.ubuntu.com/ubuntu jaunty-security multiverse

Where did you see samples with that line in it?

tomorrow 05-21-2009 08:22 AM

Keeping in mind, I'm running a pretty out-dated version (Edgy Eft) ...

Here's the link. This matched my list line-for-line:

http://www.ubuntugeek.com/ubuntu-edg...list-file.html

Matir 05-21-2009 08:33 AM

That is the worst formatting for a source.list that I've ever seen. :)

Those lines are intended as comments within his text, I believe. The format for Edgy Eft's sources.list is no different from even Jaunty Jackalope. If you replace all instances of "jaunty" with "edgy" in what I posted, that should get you started with the base distro.

To be honest, though, you'll get a much better user experience if you reinstall with a newer version of Ubuntu. Newer and more software, fewer bugs, all the goodies. :) It doesn't seem like you have much invested in your current install, so you'd probably just need to back up the files in your home directory.

tomorrow 05-21-2009 08:42 AM

Ok. Thanks guys. I'll do a backup and reinstall with the latest version.


All times are GMT -5. The time now is 09:28 PM.