8

After an upgrade from Debian Squeeze (stable) to Wheezy (testing), Synaptic fails with the following error:

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.

However, this value is set nowhere in /etc. How do I fix this error?

7

I get the same error with apt, so it's unrelated to synaptic. However, this config exists:

# grep -ri stable /etc
/etc/apt.conf.d/99myDefaultRelease:APT::Default-Release "stable";

So changing that file to "jessie" would fix it in my case (as I'm on jessie.)

| improve this answer | |
  • 1
    this one solved my problem in my raspberry pie 3 :D – Anik Islam Abhi Nov 14 '17 at 4:46
  • Thanks, solved same problem on Debian – Matina G Oct 15 '19 at 9:59
6

Have a look into /root/.synaptic/synaptic.conf. Look for the DefaultDistro line and change its value, e.g. replace stable with wheezy.

| improve this answer | |
1

Even I was getting the same error, While I was updating my kali linux using apt-get update This is what I did and it worked for me.

grep -ri stable /etc

(some of you might get stable, testing, or rolling in the error message. Just replace that keyword in the above command and fire it)

I got a list of paths to files that used a stable keyword. after having a closer look I found this path.

/etc/apt/apt.conf.d/00local:APT::Default-Release "stable";

I removed this file using rm /etc/apt/apt.conf.d/00local and tried updating and it worked.

For However, this value is set nowhere in /etc. How do I fix this error? Maybe you should try the above steps in other directories too. :)

| improve this answer | |
0

Open the Terminal (keyboard shortcut: Ctrl+Alt+T)

Enter the command:

lsb_release -a

Your version will be shown on the Description line.

| improve this answer | |
  • Can you explain exactly how this answers the question? – Scott Apr 22 '17 at 3:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.