I've recently been amending my sources.list to focus on Unstable. Now, when I try to run Synaptic, I get this error message:
"The value 'testing' is invalid for APT::Default-Release as such a release is not available in the sources"
This seems to imply that Testing is set as the default release. But I can't find any file in /etc/apt/apt.conf.d where that is specified.
There was no file apt.conf in /etc, so I created one with this content:
APT::Default-Release "unstable";
But I still get the same error message when I try to run Synaptic. Can anyone point me in the right direction, please? Thanks very much.
Where is APT::Default-Release stored? [SOLVED]
Forum rules
LMDE 2 has reached end of support as of 1-1-2019
LMDE 2 has reached end of support as of 1-1-2019
Where is APT::Default-Release stored? [SOLVED]
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: Where is APT::Default-Release stored?
Brian
Post the contents of your sources.list, perhaps one of us can spot the error.
Also try sudo apt-get update from a terminal to update the indexes.
Cheers
Steve
Post the contents of your sources.list, perhaps one of us can spot the error.
Also try sudo apt-get update from a terminal to update the indexes.
Cheers
Steve
Re: Where is APT::Default-Release stored?
Thank you for responding. I've managed to sort out the problem a few moments ago.
I was able to get Synaptic running by uncommenting the Testing repository in sources.list. Then I went to Settings - Preferences - Distribution where I found that the preference had been set to Testing (I certainly didn't set it that way). So I changed it back to Unstable. Then I commented Testing again in sources.list and reloaded all packages. All is now well.
There's just one small mystery remaining. Those Synaptic preferences must surely be stored in a file somewhere, but I can't find it anywhere on my system.
Thanks again.
I was able to get Synaptic running by uncommenting the Testing repository in sources.list. Then I went to Settings - Preferences - Distribution where I found that the preference had been set to Testing (I certainly didn't set it that way). So I changed it back to Unstable. Then I commented Testing again in sources.list and reloaded all packages. All is now well.
There's just one small mystery remaining. Those Synaptic preferences must surely be stored in a file somewhere, but I can't find it anywhere on my system.
Thanks again.
Re: Where is APT::Default-Release stored? [SOLVED]
It is supposed to live in /etc/apt/apt.conf.d/00local in the form:There's just one small mystery remaining. Those Synaptic preferences must surely be stored in a file somewhere, but I can't find it anywhere on my system.
Code: Select all
APT::Default-Release "testing";
Re: Where is APT::Default-Release stored? [SOLVED]
Even if I prefer a centralized /etc/apt/apt.conf instead of multiple files under /etc/apt/apt.conf.d, it is actually the way it does work
- lahirdenganselamat
- Level 4
- Posts: 420
- Joined: Mon Oct 17, 2011 10:30 pm
- Location: Yogyakarta
Re: Where is APT::Default-Release stored? [SOLVED]
I know this is old post, but now I know that the setting is stored on /root/.synaptic/synaptic.conf
Re: Where is APT::Default-Release stored? [SOLVED]
In this case, this setting only applies to Synaptic. Any other package manager will still get its default settings in the system-wide "/etc/apt" tree.lahirdenganselamat wrote:I know this is old post, but now I know that the setting is stored on /root/.synaptic/synaptic.conf