LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-03-2008, 12:57 AM   #1
john83reuben
Member
 
Registered: Oct 2007
Location: Kuala Lumpur,Malaysia
Distribution: Debian Etch, OpenSuse
Posts: 132

Rep: Reputation: 17
problem in updating in debian


hi guys. I have problems in updating my debian. I am using debian 4.0. My /etc/apt/sources.list file contains

---------------------------------------------------------------------------------
# deb cdrom:[Debian GNU/Linux 4.0 r1 _Etch_ - Official i386 CD Binary-1 2007081$
# deb cdrom:[Debian GNU/Linux 4.0 r1 _Etch_ - Official i386 CD Binary-1 2007081$
#deb http://security.debian.org/ etch/updates main contrib
#deb http://http.us.debian.org/debian/ etch main contrib non-free
#deb http://http.us.debian.org/debian/ sarge main contrib non-free
#deb-src http://security.debian.org/ etch/updates main contrib
# Wine
# Debian Etch (4.0):
#sudo wget http://wine.budgetdedicated.com/apt/...st.d/etch.list -O #/et$
#Stable
deb http://http.us.debian.org/debian/ stable main contrib non-free
#Stable Sources
deb-src http://http.us.debian.org/debian/ stable main contrib non-free
#Security Updates Stable
deb http://security.debian.org/ stable/updates main contrib non-free

# Debian Stable Backports
# For information visit

# If you need the backports key, try
# gpg --recv-keys 16BA136C
# gpg --export |apt-key add -
#deb http://www.backports.org/debian etch-backports main contrib non-free

# Debian Unofficial Repository
# For more info visit http://debian-unofficial.org/
deb http://ftp.debian-unofficial.org/debian stable main contrib non-free restri$deb-src http://ftp.debian-unofficial.org/debian stable main contrib non-free re$

--------------------------------------------------------------------------------------
when i try apt-get update, it updates a bit, and then an error appeared. THe error looks loke this.

Fetched 6013kB in 10m37s (9439B/s)
Reading package lists... Done
W: GPG error: http://ftp.debian-unofficial.org stable Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 394D199524C52AC3
W: You may want to run apt-get update to correct these problems

may i know how to solve this problem..THank you

john
 
Old 01-03-2008, 04:32 AM   #2
mariogarcia
Member
 
Registered: Sep 2005
Distribution: debian, solaris 10
Posts: 202

Rep: Reputation: 31
the public keys from those repositories must be imported in apt-get.

you need to have gnupg package installed.

insert a command like this :

$ gpg --keyserver wwwkeys.eu.pgp.net --recv-keys 394D199524C52AC3

$ gpg –armor –export 394D199524C52AC3 | sudo apt-key add -

this should resolve the trick.

alternatively you could search in apt-cache for the keyring if exists.
 
Old 01-03-2008, 06:33 AM   #3
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
The first command will work, not the second. Below are the ones I use that work as root since I don't have sudo set up:
Quote:
#gpg --keyserver subkeys.pgp.net --recv-keys 24C52AC3
#gpg --armor --export 24C52AC3 | apt-key add -
 
Old 01-03-2008, 10:16 AM   #4
mariogarcia
Member
 
Registered: Sep 2005
Distribution: debian, solaris 10
Posts: 202

Rep: Reputation: 31
the second work for me. it's a matter of setup. If you set up sudo it will work as well
 
Old 01-05-2008, 01:49 AM   #5
john83reuben
Member
 
Registered: Oct 2007
Location: Kuala Lumpur,Malaysia
Distribution: Debian Etch, OpenSuse
Posts: 132

Original Poster
Rep: Reputation: 17
guys my problem starts again.....problem in my sourceslist......

I have change my sourceslist..and it looks like this

------------------------------------------------------------------------------------------------
#
# deb cdrom:[Debian GNU/Linux 4.0 r1 _Etch_ - Official i386 CD Binary-1 20070819-11:52]/ etch contrib main

deb cdrom:[Debian GNU/Linux 4.0 r1 _Etch_ - Official i386 CD Binary-1 20070819-11:52]/ etch contrib main

deb http://ftp.debian.org/debian/ etch main contrib non-free
deb-src http://ftp.debian.org/debian/ etch main contrib non-free

deb http://security.debian.org/ etch/updates main contrib non-free
deb-src http://security.debian.org/ etch/updates main contrib non-free

deb http://ftp.debian-unofficial.org/debian etch main contrib non-free restricted
deb-src http://ftp.debian-unofficial.org/debian etch main contrib non-free restricted

---------------------------------------------------------------------------------------------------
when i try to run apt-get update

this error shows
----------------------------------------------------------------------

E: Could not get lock /var/lib/apt/lists/lock - open (11 Resource temporarily unavailable)
E: Unable to lock the list directory
-----------------------------------------------------------------------------------

what does it means....What should I do? Is it problem in the sourceslist...
 
Old 01-05-2008, 04:43 AM   #6
mariogarcia
Member
 
Registered: Sep 2005
Distribution: debian, solaris 10
Posts: 202

Rep: Reputation: 31
that means you are not root!

or

that there's a process hanging of apt in other console. try to kill, or reboot and then try apt-get update again.

also I am not sure about the cdrom entry the one which is not commented. i would remove it. it has no use.
 
Old 01-05-2008, 02:34 PM   #7
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
Make sure synaptic is not open as it is an application running apt, you can only run one instance of apt at a time, when you try to run a second instance you'll get that error.
 
  


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
Updating Apache & PHP on Debian debsys07 Linux - General 6 06-20-2007 05:01 PM
Updating more debian machines at once ? sarajevo Debian 2 03-04-2007 06:17 AM
Updating Grub - Debian ghughes20 Linux - Newbie 3 10-25-2005 10:36 AM
Updating debian for glib6 RRolleston Debian 1 12-19-2004 04:38 PM
Debian Menus not updating reyemarr Debian 0 03-22-2004 06:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:10 PM.

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