Getting an error when attempting to apt-get install

I am on a Debian 9 VM and I recently upgraded the VM from nanode to a higher tier spec with 2GB of RAM. When I tried to do an apt-get install, I get the following error:

The value 'stable' is invalid for APT::Default-Release as such a release is not available in the sources

A SuperUser question addressed this by going to the /root/.synaptic folder, but no such folder exists in my VM.

Is there a way to fix this issue?

2 Replies

Got it to work by editing the file in /etc/apt/apt.conf.d/00local

The value in the file was:

APT::Default-Release "stable";

Changed it to:

APT::Default-Release "stretch";

Hey there,

We're happy to try and help with this.

This looks like an issue with your systems ability to call the correct sources to run the task for your version rather than an issue with Synaptic. Your sources.list entries likely indicate that you're tracking "wheezy", which is now "oldstable", not "stable". None of the sources in your list will be providing "stable", so the message is entirely correct.

We recommend that you review your sources list in order to configure for stable updates that will allow you to run this.

We hope that helps.

Tara T
Linode Support Team


Please enter an answer

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct