[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Strange behavior with APT::Default-Release



Hi

I have a strange behavior when I start using APT::Default-Release. It
suddenly whats to install packages while the apt-get upgrade process. But
it should not install any since the release hasn't changed because default
is still "testing".

My /etc/apt/sources.list before using APT::Default-Release:

--
deb http://sunsite.cnlab-switch.ch/ftp/mirror/debian/ testing main non-free contrib
deb-src http://sunsite.cnlab-switch.ch/ftp/mirror/debian/ testing main non-free contrib


deb http://security.debian.org/ stable/updates main contrib non-free
--

apt-get upgrade says:

--
frija:/var/spool/squid# apt-get upgrade
Reading Package Lists... Done
Building Dependency Tree... Done
0 packages upgraded, 0 newly installed, 0 to remove and 0  not upgraded.
frija:/var/spool/squid# 
--

apt-get dist-upgrade says:

--
frija:/var/spool/squid# apt-get dist-upgrade
Reading Package Lists... Done
Building Dependency Tree... Done
Calculating Upgrade... Done
0 packages upgraded, 0 newly installed, 0 to remove and 0  not upgraded.
frija:/var/spool/squid# 
--

Now I add unstable to sources.list:

--
deb http://sunsite.cnlab-switch.ch/ftp/mirror/debian/ testing main non-free contrib
deb-src http://sunsite.cnlab-switch.ch/ftp/mirror/debian/ testing main non-free contrib

deb http://sunsite.cnlab-switch.ch/ftp/mirror/debian/ unstable main non-free contrib 
deb-src http://sunsite.cnlab-switch.ch/ftp/mirror/debian/ unstable main non-free contrib 

deb http://security.debian.org/ stable/updates main contrib non-free
--

And I set APT::Default-Release in /etc/apt/apt.conf:

--
APT::Default-Release "testing";
--

apt-get update says:

--
frija:/var/spool/squid# apt-get update 
Hit http://security.debian.org stable/updates/main Packages
Hit http://security.debian.org stable/updates/main Release
Hit http://security.debian.org stable/updates/contrib Packages
Hit http://security.debian.org stable/updates/contrib Release
Hit http://security.debian.org stable/updates/non-free Packages
Hit http://security.debian.org stable/updates/non-free Release
Hit http://sunsite.cnlab-switch.ch testing/main Packages
Hit http://sunsite.cnlab-switch.ch testing/main Release
Hit http://sunsite.cnlab-switch.ch testing/non-free Packages
Hit http://sunsite.cnlab-switch.ch testing/non-free Release
Hit http://sunsite.cnlab-switch.ch testing/contrib Packages
Hit http://sunsite.cnlab-switch.ch testing/contrib Release
Hit http://sunsite.cnlab-switch.ch testing/main Sources
Hit http://sunsite.cnlab-switch.ch testing/main Release
Hit http://sunsite.cnlab-switch.ch testing/non-free Sources
Hit http://sunsite.cnlab-switch.ch testing/non-free Release
Hit http://sunsite.cnlab-switch.ch testing/contrib Sources
Hit http://sunsite.cnlab-switch.ch testing/contrib Release
Get:1 http://sunsite.cnlab-switch.ch unstable/main Packages [2303kB]
Get:2 http://sunsite.cnlab-switch.ch unstable/main Release [82B]
Get:3 http://sunsite.cnlab-switch.ch unstable/non-free Packages [73.1kB]                                            
Get:4 http://sunsite.cnlab-switch.ch unstable/non-free Release [86B]                                                
Get:5 http://sunsite.cnlab-switch.ch unstable/contrib Packages [75.7kB]                                             
Get:6 http://sunsite.cnlab-switch.ch unstable/contrib Release [85B]                                                 
Get:7 http://sunsite.cnlab-switch.ch unstable/main Sources [938kB]                                                  
Get:8 http://sunsite.cnlab-switch.ch unstable/main Release [84B]                                                    
Get:9 http://sunsite.cnlab-switch.ch unstable/non-free Sources [32.2kB]                                             
Get:10 http://sunsite.cnlab-switch.ch unstable/non-free Release [88B]                                               
Get:11 http://sunsite.cnlab-switch.ch unstable/contrib Sources [32.2kB]                                             
Get:12 http://sunsite.cnlab-switch.ch unstable/contrib Release [87B]                                                
Fetched 3455kB in 1m58s (29.2kB/s)                                                                                  
Reading Package Lists... Done
Building Dependency Tree... Done
frija:/var/spool/squid# 
--

apt-get upgrade says:

--
frija:/var/spool/squid# apt-get upgrade
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages have been kept back
  php4 php4-gd 
0 packages upgraded, 0 newly installed, 0 to remove and 2  not upgraded.
frija:/var/spool/squid# 
--

apt-get install php4 says:

--
frija:/var/spool/squid# apt-get install php4
Reading Package Lists... Done
Building Dependency Tree... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.

Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:

Sorry, but the following packages have unmet dependencies:
  php4: Depends: libc6 (>= 2.3.1-1) but 2.2.5-14.3 is to be installed
E: Sorry, broken packages
frija:/var/spool/squid# 
-- 

I have the same effect on another machine where samba is installed with 
samba and samba-common.

I think what happend is that it wants to install unstable php4 for some 
reason.

Best,
	Hans




Reply to: