LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 07-06-2007, 05:00 AM   #1
meniscus
Member
 
Registered: May 2006
Posts: 70

Rep: Reputation: 15
Cant add repositories after ubuntu upgrade?


I upgraded from ubuntu dapper to feisty there yesterday and every time i try an add the universe and multiverse repositories i get the following.

Code:
E: Could not get lock /var/lib/apt/lists/lock - open (11 Resource temporarily unavailable)
E: Unable to lock the list directory
I get a similar error via the command line when i type


Code:
sudo aptitude update
Any suggestions on what i might do to fix this?

Thanks
 
Old 07-06-2007, 05:39 AM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
First make sure you don't have any apt/synaptic/aptitude/etc. running. Then simply remove the 'lock' file and re-try. The file is there to prevent the usage of multiple instances of those apps at the same time; if it's there while the program isn't running, you can safely remove it.
 
Old 07-06-2007, 07:43 AM   #3
meniscus
Member
 
Registered: May 2006
Posts: 70

Original Poster
Rep: Reputation: 15
That did it! Thank you.

It gave me these errors..

Code:
W: Duplicate sources.list entry http://archive.ubuntu.com edgy/main Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_edgy_main_binary-i386_Packages)
W: Duplicate sources.list entry http://archive.ubuntu.com edgy/restricted Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_edgy_restricted_binary-i386_Packages)
W: Duplicate sources.list entry http://archive.ubuntu.com edgy/universe Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_edgy_universe_binary-i386_Packages)
W: Duplicate sources.list entry http://archive.ubuntu.com edgy/multiverse Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_edgy_multiverse_binary-i386_Packages)

Should i worry about them?
 
Old 07-06-2007, 07:51 AM   #4
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
No, I don't think so. "Duplicate entry" simply means that those lines it showed are written at least two times in the reposity files; apt-get doesn't do anything with identical duplicate lines, so it warns you that there are unneeded lines there (which just take up space from the file).

If you don't want to see the error message all the time, you can simply go trough the reposity files and remove all duplicate lines.

If you want that easily done, you can do it with uniq. It's a tool to remove duplicate lines; command works like
Code:
uniq infile outfile
where uniq reads 'infile' trough, removes duplicate lines and puts the output to 'outfile'. So just feed the reposity files to uniq (one by one, unless you want to script) and copy the output over the input. Probably just as easy is if you open Synaptic, reposity configuration and scroll trough the content, removing duplicate lines if you happen to see any.
 
Old 07-06-2007, 08:26 AM   #5
meniscus
Member
 
Registered: May 2006
Posts: 70

Original Poster
Rep: Reputation: 15
Thanks very much. You've been a great help to me:-)
 
  


Reply

Tags
apt, lock


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
LXer: Installing Xen On An Ubuntu Feisty Fawn Server From The Ubuntu Repositories LXer Syndicated Linux News 0 07-01-2007 06:46 AM
Cannot add repositories mutti_wilson SUSE / openSUSE 7 02-05-2007 01:48 PM
How do I add repositories? nottobrite Linux - Newbie 2 07-13-2004 07:34 PM
add repositories??!!? ilectrcbob Linux - Newbie 3 06-18-2004 11:32 AM
Are there any other Repositories I should add frontier1 Fedora 1 01-12-2004 09:14 AM

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

All times are GMT -5. The time now is 12:37 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