LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 11-27-2010, 10:49 PM   #1
Elixer
Member
 
Registered: Dec 2009
Location: Massachusetts, USA
Distribution: Debian 8 64
Posts: 121

Rep: Reputation: 16
Synaptic, softare center & softwaare sources willl not show repositories


Hello Folks,
I Recintly installed Debian Squeeze and trying to get all the goodies installed I had in Lenny.

Synaptic, software sources and software center now fails to display and allow selecting from /etc/apt/source.list. When using Synaptic and I chose "Settings" then "Repositories" I now get a message "repositories changed, click reload button" when I do it just reloads and displays downloading 34 packages as it has since first install. Normaly I would get a window where I can select or deselct sources from /etc/apt/sources.list, I also recolect it asked me to insert the DVD I installed the OS from but it does not do this now as well.

When opening "software sources" it propmts for root or allows if I have prevoiusly used root but just stalls and then quits.

When using "Software Center" and selecting "Edit" then ""Software Sources" I get same results.

I verified sources.list exists, backed it up and made a few changes to it and still no results.

This most likely has happened since I used smxi to install nvidia drivershortly after install . Installing the debian modual \driver suplied would not work. i have since tried installing GoogleEarth same way i did with Lenny without results. I also used smxi with report it would not build.

Anything simple like Users and groups I have yet to configure properly that would cause this? I have yet to make any changes except add 2 users. Any suggestions welcome, Jon




This is a fairly new install
 
Old 11-29-2010, 04:51 AM   #2
the trooper
Senior Member
 
Registered: Jun 2006
Location: England
Distribution: Debian Bullseye
Posts: 1,508

Rep: Reputation: Disabled
What are you trying to install?.
What is the output of cat /etc/apt/sources.list?.
Are you using 64bit Debian?.

Quote:
This most likely has happened since I used smxi to install nvidia drivershortly after install
I doubt it.....
 
Old 11-29-2010, 09:30 PM   #3
Elixer
Member
 
Registered: Dec 2009
Location: Massachusetts, USA
Distribution: Debian 8 64
Posts: 121

Original Poster
Rep: Reputation: 16
I am running Squeeze i386 on a 2.4 ghz intel chip on an Asus desktop type main board, nothing odd.

I tried installing GoogleEarth. both from the .bin file downloaded from there site as I have done in Lenny. I was unsusessfull and then tried smxi. smixi reported that it failed to build. It also reported google earth was only working on sid at this time. I may not be entirely accurate in the text but this is what I understood.

My largest concern at this time is that something is messed up as synaptic, software sources and Software center will not let me even get to the window to enable or disable repositories. All 3 programs obviously use the same reasource that is disfuntioning.

I have "#" out all items in /etc/apt/sources.list that smxi put in plus the install DVD and only left the 2 original repositories the OS instal put in.

The message I get whan I run Synaptic as follows. Opened synaptic, went to "settings" then "repositories" and this is where it would normaly show all avalable sources in /etc/apt/sources.list but instead it reports "repositories have changed and I must reload". So I reload and 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 only asssume this is a result that "#" out the install DVD.

At times I get good information in the terminal whan I run a utility from it, here is what I get when I start synaptic, go to settings, repositories.

Code:
jon@DebSid:~$ su-to-root -X -c /usr/sbin/synaptic
/usr/lib/pymodules/python2.6/softwareproperties/SoftwareProperties.py:34: DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import md5
Traceback (most recent call last):
  File "/usr/bin/software-properties-gtk", line 100, in <module>
    app = SoftwarePropertiesGtk(datadir=data_dir, options=options, file=file)
  File "/usr/lib/pymodules/python2.6/softwareproperties/gtk/SoftwarePropertiesGtk.py", line 75, in __init__
    SoftwareProperties.__init__(self, options=options, datadir=datadir)
  File "/usr/lib/pymodules/python2.6/softwareproperties/SoftwareProperties.py", line 55, in __init__
    self.reload_sourceslist()
  File "/usr/lib/pymodules/python2.6/softwareproperties/SoftwareProperties.py", line 450, in reload_sourceslist
    self.distro.get_sources(self.sourceslist)    
  File "/usr/lib/python2.6/dist-packages/aptsources/distro.py", line 90, in get_sources
    raise NoDistroTemplateException("Error: could not find a "
aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template
Ther following windows than show up

The repository may no longer be available or could not be contacted because of network problems. If available an older version of the failed index will be used. Otherwise the repository will be ignored. Check your network connection and ensure the repository address in the preferences is correct.

Code:
E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the list directory
Internet connection is good, can start browser no problem

Going forward, When I was in smxi I snooped around to see what was there. All sorts of things. Best I recall I paged through various menus and 1 was kennel upgrade. I did not think I allowed it to do it as I backed out. Aparently some stuff was written as I have Liquorix in my repository, (I "#" it out).

Here is sources.list
Code:
jon@DebSid:~$ cat /etc/apt/sources.list
# 
deb cdrom:[Debian GNU/Linux squeeze-di-beta1 _Squeeze_ - Official Beta i386 DVD Binary-1 20101027-01:46]/ squeeze contrib main
#
deb http://security.debian.org/ squeeze/updates main contrib
#
deb-src http://security.debian.org/ squeeze/updates main contrib

# Liquorix sources added by smxi
#deb http://liquorix.net/debian/ sid main

# aptosid sources added by smxi
#deb http://aptosid.com/debian/ sid main fix.main
#deb-src http://aptosid.com/debian/ sid main fix.main



###########################
## Debian Testing/Squeeze ##
###########################
# Testing
#deb http://ftp.debian.org/debian/ testing main contrib non-free
#deb-src http://ftp.debian.org/debian/ testing main contrib non-free
# Testing Security  http://secure-testing-master.debian.net/
#deb http://security.debian.org squeeze/updates main contrib non-free
#deb-src http://security.debian.org squeeze/updates main contrib non-free
#Testing Proposed Updates
#deb http://ftp.debian.org/debian/ testing-proposed-updates main contrib non-free
#deb-src http://ftp.debian.org/debian/ testing-proposed-updates main contrib non-free

jon@DebSid:~$

I followed the path that the error in synaptic showed "/var/lib/apt/lists/lock ". when I got there to lists, I see3 file relitive to Liquorix.

I had to have unknowinly allowed this to happen in smixi, as I only assume liquorix is a kernel upgrade. If this is my problem can I use smxi to downgrade back to original Squeeze default or is it a 1 way road?
I figure I deserve a speeding ticket about now. Jon

Last edited by XavierP; 12-01-2010 at 01:14 AM.
 
Old 11-30-2010, 12:15 AM   #4
j1alu
Member
 
Registered: Apr 2009
Distribution: debian gnu/linux
Posts: 798

Rep: Reputation: Disabled
Backup your existing /etc/apt/sources.list
and edit it like this:
Code:
###########################
## Debian Testing/Squeeze ##
###########################
# Testing
deb http://ftp.debian.org/debian/ testing main contrib non-free
deb http://security.debian.org squeeze/updates main contrib non-free
Do "apt-get update".
If that works do the upgrade. Then add further lines you think you need.
If it doesn't work post the error-messages.
(or, for what its worth, try it even without the security line).

I don't think the liquorix-kernel is the problem, but of course you can remove it again.

Check if you got entries at /etc/apt/source.list.d/

Figure out what you got installed related to:
python-software-properties
and remove it (as the quick and dirty solution) or search for bug-reports and if similar problems and -perhaps- a solution is already posted.
http://www.debian.org/Bugs/
Same for synaptic and other package tools.

Last edited by j1alu; 11-30-2010 at 12:20 AM.
 
1 members found this post helpful.
Old 11-30-2010, 02:55 AM   #5
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
Put # in front of cdrom: source.

Code:
apt-get clean && apt-get update
 
Old 11-30-2010, 05:21 AM   #6
the trooper
Senior Member
 
Registered: Jun 2006
Location: England
Distribution: Debian Bullseye
Posts: 1,508

Rep: Reputation: Disabled
As j1alu has pointed out your sources.list needs fixing,follow his/her suggestions here.

Last edited by the trooper; 11-30-2010 at 05:32 AM.
 
Old 11-30-2010, 09:18 PM   #7
Elixer
Member
 
Registered: Dec 2009
Location: Massachusetts, USA
Distribution: Debian 8 64
Posts: 121

Original Poster
Rep: Reputation: 16
editited out everything in sources.list except the 2 lines as suggested by j1alu although I have done exactly just this yesterday

My directory /etc/apt/sources.list.d/ is completly empty

Results as follows fro apt-get uprade

root@DebSid:/home/jon# apt-get update
E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/lib/apt/lists/
root@DebSid:/home/jon#

This is in reference to the following suggestion:
Figure out what you got installed related to:
python-software-properties
and remove it (as the quick and dirty solution) or search for bug-reports and if similar problems and -perhaps- a solution is already posted.

I have following installed related to python-software-properties. (aptdaemon, gnome, python-aptdaemon,python-aptdaemon-gtk, software-center and software-properties-gtk) non of which I have selectively installed. I have not tried uninstalling any of these items as of yet as i am unsure of the consequence of each item.

Thanks for all so far, Jon
 
Old 12-01-2010, 03:53 AM   #8
the trooper
Senior Member
 
Registered: Jun 2006
Location: England
Distribution: Debian Bullseye
Posts: 1,508

Rep: Reputation: Disabled
Seen this before,see the link here:

http://www.linuxquestions.org/questi...ilable-360554/

Specifically post #11

Also here:

http://www.techdrivein.com/2010/01/h...k-open-11.html
 
1 members found this post helpful.
Old 12-01-2010, 09:10 PM   #9
Elixer
Member
 
Registered: Dec 2009
Location: Massachusetts, USA
Distribution: Debian 8 64
Posts: 121

Original Poster
Rep: Reputation: 16
removing /var/lib/dpkg/lock and running dpkg -configure -a fixed problem. So simple to fix, just why or how did it become a problem. I notice that it is now regenerated and it has no bytes info in it.m Thanks for the help again, Jon
 
  


Reply



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
Synaptic and non-standard repositories. Galaxy_Stranger Linux - Software 2 07-10-2010 10:19 AM
Mandriva + Synaptic + Repositories dfwcomputer Linux - Newbie 5 05-03-2008 01:07 PM
Trying to understand sources.list & repositories darklight55 Ubuntu 3 12-04-2006 09:05 PM
I like synaptic, but, where is the repositories? jerrypf Mandriva 1 08-15-2004 03:25 AM
repositories in synaptic demmylls Linux - General 3 10-07-2003 01:02 PM

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

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