LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-19-2013, 03:02 PM   #1
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Iowa
Distribution: Debian distro family
Posts: 2,378

Rep: Reputation: Disabled
synaptic disabled by bad apt:default-release value


I presently can't use Synaptic, though I seem able to do anything with terminal apt-get. Synaptic says:
Code:
E: The value 'stable' is invalid for APT::Default-Release as such a release is not available in the sources
E: _cache->open() failed, please report.
This looks like possibly a bad value in one of the files in /etc/apt, but I suppose not, because I can't find any file that says anything like "stable" for "Default-Release" and I haven't edited anything in those files recently anyway. (No--correction: I have, but through Synaptic. I think I changed the preferred release from "highest" to "stable" after getting several buggy updates from testing.) So how do I fix this? Might it be because Debian has renamed some of their repositories (I don't know what they're doing--maybe stable has become oldstable or something, for all I know) and my information needs updating?

I've found that I can solve this by running apt-get update in a terminal before running Synaptic, and then changing the preferred release in Synaptic to "wheezy" rather than "stable"; but it still shouldn't happen at all. Wasn't before.

Last edited by newbiesforever; 09-19-2013 at 03:24 PM.
 
Old 09-20-2013, 12:30 AM   #2
eklavya
Member
 
Registered: Mar 2013
Posts: 636

Rep: Reputation: 142Reputation: 142
Open file /etc/apt/apt.conf
Can you see the line
Code:
APT::Default-Release “testing”;
Comment the line using // at starting of the line.

Now try again.
 
Old 09-20-2013, 12:59 AM   #3
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Iowa
Distribution: Debian distro family
Posts: 2,378

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by eklavya View Post
Open file /etc/apt/apt.conf
Can you see the line
Code:
APT::Default-Release “testing”;
Comment the line using // at starting of the line.

Now try again.
I'm sure I recognize that line, but oddly, it's missing from the file. The entire contents of the file are:
Code:
// Recommends are as of now still abused in many packages
APT::Install-Recommends "0";
APT::Install-Suggests "0";
I have no idea what happened to the line. So should I write it in, substituting whatever release I want for "testing"?
 
Old 09-20-2013, 02:23 AM   #4
eklavya
Member
 
Registered: Mar 2013
Posts: 636

Rep: Reputation: 142Reputation: 142
Did you recently update your system?

just follow this link, may be you get the solution
http://www.performancemagic.com/blog...fault-release/[COLOR="Silver"]

Last edited by onebuck; 09-20-2013 at 08:21 AM. Reason: remove duplicate
 
1 members found this post helpful.
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
apt-get install synaptic / aptitude install synaptic not working :S LittlePenguin Linux - Newbie 5 01-19-2011 07:25 AM
Gnome Apt, Debian pkg search, synaptic, apt-get each is best for what? streams &dragonflies Ubuntu 1 07-14-2008 02:41 PM
disabled IPV6 but hostname still bad landonmkelsey Linux - Networking 46 02-05-2008 12:30 PM
apt-get update errors since Debian released ( bad /etc/apt/sources.list ?) forgox Debian 10 06-13-2005 12:28 PM
What's up with Apt/Synaptic lately?? TippyToes Linux - Software 0 01-13-2004 01:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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