Where is APT::Default-Release stored? [SOLVED]

Post your update and upgrade related errors here
Forum rules
Before you post please read this

Where is APT::Default-Release stored? [SOLVED]

Postby Brian49 on Sun Jul 22, 2012 5:46 pm

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.
Last edited by Brian49 on Mon Jul 23, 2012 4:39 am, edited 1 time in total.
Brian49
Level 5
Level 5
 
Posts: 610
Joined: Thu Oct 29, 2009 2:27 pm

Linux Mint is funded by ads and donations.
 

Re: Where is APT::Default-Release stored?

Postby xircon on Sun Jul 22, 2012 8:27 pm

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
Dell Inspiron N5010 / Core I5 / ATI Mobility Radeon HD5400, LMDE Tracking Sid & Cinnamon Desktop
"Ubuntu is an African word meaning 'I can't configure Debian'"
User avatar
xircon
Level 5
Level 5
 
Posts: 775
Joined: Sun Aug 01, 2010 7:59 am
Location: Sheffield, UK

Re: Where is APT::Default-Release stored?

Postby Brian49 on Mon Jul 23, 2012 4:39 am

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.
Brian49
Level 5
Level 5
 
Posts: 610
Joined: Thu Oct 29, 2009 2:27 pm

Re: Where is APT::Default-Release stored? [SOLVED]

Postby viking777 on Mon Jul 23, 2012 7:01 am

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.


It is supposed to live in /etc/apt/apt.conf.d/00local in the form:

Code: Select all
APT::Default-Release "testing";


That file only exists if you mix sources and as I don't, I can't test if that statement is true or not.
Fujitsu Lifebook AH532. Intel i5 processor, 6Gb ram, Intel HD3000 graphics, Intel Audio/wifi. Realtek RTL8111/8168B Ethernet.Lubuntu 13.10,Ubuntu12.10 (Unity), Mint16 (Cinnamon), Manjaro (Xfce).
Image
User avatar
viking777
Level 14
Level 14
 
Posts: 5153
Joined: Mon Dec 01, 2008 11:21 am

Re: Where is APT::Default-Release stored? [SOLVED]

Postby eanfrid on Mon Jul 23, 2012 7:37 am

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 :)
Main desktop: Debian GNU/Linux Wheezy 64bit w/custom 3.14 longterm kernel - MATE 1.8.1
(i5 2400@3.7GHz - 16GB DDR3 - HD6770 w/radeon driver - SSD+RAID1)
True private storage on SpiderOak
User avatar
eanfrid
Level 7
Level 7
 
Posts: 1786
Joined: Mon Apr 30, 2012 2:49 am
Location: FR

Re: Where is APT::Default-Release stored? [SOLVED]

Postby lahirdenganselamat on Sat Jun 22, 2013 6:08 am

I know this is old post, but now I know that the setting is stored on /root/.synaptic/synaptic.conf
ASUS 1215B AMD E-350 with Linux Mint 15 KDE, Precise Puppy, and Saluki
User avatar
lahirdenganselamat
Level 4
Level 4
 
Posts: 437
Joined: Mon Oct 17, 2011 10:30 pm
Location: Yogyakarta

Re: Where is APT::Default-Release stored? [SOLVED]

Postby eanfrid on Sat Jun 22, 2013 7:02 am

lahirdenganselamat wrote:I know this is old post, but now I know that the setting is stored on /root/.synaptic/synaptic.conf

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.
Main desktop: Debian GNU/Linux Wheezy 64bit w/custom 3.14 longterm kernel - MATE 1.8.1
(i5 2400@3.7GHz - 16GB DDR3 - HD6770 w/radeon driver - SSD+RAID1)
True private storage on SpiderOak
User avatar
eanfrid
Level 7
Level 7
 
Posts: 1786
Joined: Mon Apr 30, 2012 2:49 am
Location: FR

Linux Mint is funded by ads and donations.
 

Return to Update/Upgrade Issues

Who is online

Users browsing this forum: No registered users and 4 guests