Re: apt-get dist-upgrade doesn't downgrade to stable

2003-01-24 Thread Lloyd Zusman
Osamu Aoki [EMAIL PROTECTED] writes:

 On Thu, Jan 23, 2003 at 07:18:18PM -0500, Lloyd Zusman wrote:
 
 [ ... ]

 I learned this in this list but reading manual page of apt-get (8)
 ...
  --default-release
This  option controls the default input to the policy engine, it
creates a default  pin  at  priority  990  using  the  specified
release  string.  The preferences file may further override this
setting. In short, this option lets you have simple control over
which  distribution packages will be retrieved from. Some common
examples might be -t '2.1*' or -t unstable.  Configuration Item:
APT::Default-Release

 This is where it is documented.  Tricky :-)

Yes, I see it now, and it's less tricky than I thought.  I overlooked
it the first few times I read the manual, though, because at that time,
I didn't yet understand about /etc/apt/apt.conf.

Thank you.

-- 
 Lloyd Zusman
 [EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: apt-get dist-upgrade doesn't downgrade to stable

2003-01-23 Thread Lloyd Zusman
Osamu Aoki [EMAIL PROTECTED] writes:

 On Wed, Jan 22, 2003 at 11:08:09PM -0500, Lloyd Zusman wrote:
 ...
 
 [ ... ]

  apt-get update  apt-get -t testing dist-upgrade
  ^^
  Why -t is set here
 -t set priority of that testing to 990 overriding 1001
 This is what went wrong.

   # apt-get update  apt-get dist-upgrade

 This is what you needed :-)

Yes, it indeed is what I needed.  It worked great.  Thank you!

Is it also true that setting /etc/apt/apt.conf to contain
`APT::Default-Release testing;' also sets testing to 990?


-- 
 Lloyd Zusman
 [EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: apt-get dist-upgrade doesn't downgrade to stable

2003-01-23 Thread Osamu Aoki
On Thu, Jan 23, 2003 at 06:57:53AM -0500, Lloyd Zusman wrote:
 Osamu Aoki [EMAIL PROTECTED] writes:
 
  On Wed, Jan 22, 2003 at 11:08:09PM -0500, Lloyd Zusman wrote:
  ...
  
  [ ... ]
 
   apt-get update  apt-get -t testing dist-upgrade
   ^^
   Why -t is set here
  -t set priority of that testing to 990 overriding 1001
  This is what went wrong.
 
# apt-get update  apt-get dist-upgrade
 
  This is what you needed :-)
 
 Yes, it indeed is what I needed.  It worked great.  Thank you!
 
 Is it also true that setting /etc/apt/apt.conf to contain
 `APT::Default-Release testing;' also sets testing to 990?

Yes, that is my understanding. man apt_preferences

   100 to 1000
  Standard  priorities.  990  is  the  priority  set by the
  --target-release  apt-get(8) option. 
 
-- 
~\^o^/~~~ ~\^.^/~~~ ~\^*^/~~~ ~\^_^/~~~ ~\^+^/~~~ ~\^:^/~~~ ~\^v^/~~~ +
Osamu Aoki [EMAIL PROTECTED]   Cupertino CA USA, GPG-key: A8061F32
 .''`.  Debian Reference: post-installation user's guide for non-developers
 : :' : http://qref.sf.net and http://people.debian.org/~osamu
 `. `'  Our Priorities are Our Users and Free Software --- Social Contract


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: apt-get dist-upgrade doesn't downgrade to stable

2003-01-23 Thread Mohammed Sameer
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Once upon a time Simon Law wrote @ Wed, 22 Jan 2003 12:29:14 -0500

 On Wed, Jan 22, 2003 at 06:15:53PM +0200, Mohammed Sameer wrote:
  -BEGIN PGP SIGNED MESSAGE-
  Hash: SHA1
  
  Hi,
  I have a mixed system (stable+unstable) and wanted to downgrade to
  stable.
  
  here's my /etc/apt/preferences
  
  Package: *
  Pin: release a=stable
  Pin-Priority: 1001
  
  and /etc/apt/apt.conf
  
  APT::Default-Release stable;
 
   Make sure you have stable in your sources.list.  Take out
 APT::Default-Release stable;.  Then apt-get update  apt-get -t
 stable dist-upgrade.  You should see it downgrade.
 
 Simon
 
I've managed lastly to do that, though the system was broken during the
downgrade and i had to --force-all the removal of some packages libc
but i lastly did it, Not so easy you know :-)
 Can't imagine myself doing that on an RPM based system ;)

Really thanks for help

- -- 
- 
- -- Katoob Main Developer
Linux registered user # 224950
ICQ # 58475622
FIRST  make  it  run, THEN make it run fast Brian Kernighan.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.0 (GNU/Linux)

iD8DBQE+MGZ9y2aOKaP9DfcRAmfdAJ4wGWxSf2OuujUVzuz95nvIqK8EgACgxM08
dAoN1musoM618/TsxZ5Acr0=
=1j1X
-END PGP SIGNATURE-


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: apt-get dist-upgrade doesn't downgrade to stable

2003-01-23 Thread Lloyd Zusman
Osamu Aoki [EMAIL PROTECTED] writes:

 On Thu, Jan 23, 2003 at 06:57:53AM -0500, Lloyd Zusman wrote:
 
 [ ... ]

 Is it also true that setting /etc/apt/apt.conf to contain
 `APT::Default-Release testing;' also sets testing to 990?

 Yes, that is my understanding. man apt_preferences

100 to 1000
   Standard  priorities.  990  is  the  priority  set by the
   --target-release  apt-get(8) option. 

Yes ... I read that, too.  But it doesn't say anything specifically
about the `APT::Default-Release testing;' in apt.conf, and I have
learned the hard way not to make assumptions about the way that various
settings in various places interract with one another in the 'apt'
system.

But using the empirical method, I have determined (I think!) that
`APT::Default-Release' does indeed seem to correspond to the same
numerical priority as the --target-release option.

Thank you for your helpful posts.

-- 
 Lloyd Zusman
 [EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: apt-get dist-upgrade doesn't downgrade to stable

2003-01-23 Thread Osamu Aoki
On Thu, Jan 23, 2003 at 07:18:18PM -0500, Lloyd Zusman wrote:
 Osamu Aoki [EMAIL PROTECTED] writes:
 
  On Thu, Jan 23, 2003 at 06:57:53AM -0500, Lloyd Zusman wrote:
  
  [ ... ]
 
  Is it also true that setting /etc/apt/apt.conf to contain
  `APT::Default-Release testing;' also sets testing to 990?
 
  Yes, that is my understanding. man apt_preferences
 
 100 to 1000
Standard  priorities.  990  is  the  priority  set by the
--target-release  apt-get(8) option. 
 
 Yes ... I read that, too.  But it doesn't say anything specifically
 about the `APT::Default-Release testing;' in apt.conf, and I have
 learned the hard way not to make assumptions about the way that various
 settings in various places interract with one another in the 'apt'
 system.
 
 But using the empirical method, I have determined (I think!) that
 `APT::Default-Release' does indeed seem to correspond to the same
 numerical priority as the --target-release option.

I learned this in this list but reading manual page of apt-get (8)
...
 --default-release
   This  option controls the default input to the policy engine, it
   creates a default  pin  at  priority  990  using  the  specified
   release  string.  The preferences file may further override this
   setting. In short, this option lets you have simple control over
   which  distribution packages will be retrieved from. Some common
   examples might be -t '2.1*' or -t unstable.  Configuration Item:
   APT::Default-Release

This is where it is documented.  Tricky :-)
-- 
~\^o^/~~~ ~\^.^/~~~ ~\^*^/~~~ ~\^_^/~~~ ~\^+^/~~~ ~\^:^/~~~ ~\^v^/~~~ +
Osamu Aoki [EMAIL PROTECTED]   Cupertino CA USA, GPG-key: A8061F32
 .''`.  Debian Reference: post-installation user's guide for non-developers
 : :' : http://qref.sf.net and http://people.debian.org/~osamu
 `. `'  Our Priorities are Our Users and Free Software --- Social Contract


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: apt-get dist-upgrade doesn't downgrade to stable

2003-01-22 Thread Simon Law
On Wed, Jan 22, 2003 at 06:15:53PM +0200, Mohammed Sameer wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Hi,
 I have a mixed system (stable+unstable) and wanted to downgrade to stable.
 
 here's my /etc/apt/preferences
 
 Package: *
 Pin: release a=stable
 Pin-Priority: 1001
 
 and /etc/apt/apt.conf
 
 APT::Default-Release stable;

Make sure you have stable in your sources.list.  Take out
APT::Default-Release stable;.  Then apt-get update  apt-get -t
stable dist-upgrade.  You should see it downgrade.

Simon


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: apt-get dist-upgrade doesn't downgrade to stable

2003-01-22 Thread Lloyd Zusman
Simon Law [EMAIL PROTECTED] writes:

 On Wed, Jan 22, 2003 at 06:15:53PM +0200, Mohammed Sameer wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Hi,
 I have a mixed system (stable+unstable) and wanted to downgrade to stable.
 
 here's my /etc/apt/preferences
 
 Package: *
 Pin: release a=stable
 Pin-Priority: 1001
 
 and /etc/apt/apt.conf
 
 APT::Default-Release stable;

   Make sure you have stable in your sources.list.  Take out
 APT::Default-Release stable;.  Then apt-get update  apt-get -t
 stable dist-upgrade.  You should see it downgrade.

 Simon

I had a similar problem, and so I appreciate this information.  But my
understanding is still a bit shaky.  Could someone point me to an
appropriate doc which explains why `APT::Default-Release stable;' has
to be removed from /etc/apt/apt.conf' in order for the downgrade to take
place? ... or else perhaps could someone post a short explanation here?

Since we are talking about downgrading to `stable', I don't understand
why the presence of `APT::Default-Release stable;' would prevent that.

Thanks.

-- 
 Lloyd Zusman
 [EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: apt-get dist-upgrade doesn't downgrade to stable

2003-01-22 Thread Lloyd Zusman
Dale Hair [EMAIL PROTECTED] writes:

 On Wed, 2003-01-22 at 12:22, Lloyd Zusman wrote:
 Simon Law [EMAIL PROTECTED] writes:
 
  On Wed, Jan 22, 2003 at 06:15:53PM +0200, Mohammed Sameer wrote:
 
  [ ... ]
  
  here's my /etc/apt/preferences
  
  Package: *
  Pin: release a=stable
  Pin-Priority: 1001
  
  and /etc/apt/apt.conf
  
  APT::Default-Release stable;
 
 Make sure you have stable in your sources.list.  Take out
  APT::Default-Release stable;.  Then apt-get update  apt-get -t
  stable dist-upgrade.  You should see it downgrade.
 
  Simon
 
 [ ... ]

 I just tried exactly what Mohammed said he did and my testing/unstable
 machine wanted to remove 176 packages and downgrade 586 to stable.  I
 also tried it with apt.conf set to testing with the same results.  The
 preferences file seems to have priority over the apt.conf file.

Something is strange on my system.  I did the same thing, except I
wanted to downgrade from a mixed testing+unstable system to a pure
testing system.  I followed the same steps as above, except replacing
the string 'stable' with 'testing'.  Nevertheless, nothing got
downgraded (see below for details).

I know that I previously installed perl-5.8.0 from the 'unstable'
distribution, and that it is my default perl interpreter (I can tell by
running perl -V).  But the following did not do anything, and after
these steps, I was still using perl-5.8.0 instead of perl-5.6.1 from
'testing' ...

contents of /etc/apt/preferences

 Package: *
 Pin: release a=testing
 Pin-Priority: 1001

/etc/apt/apt.conf was completely deleted

Then ...

 apt-get update  apt-get -t testing dist-upgrade

My output (after proper output from the apt-get update portion):

 Reading Package Lists... Done
 Building Dependency Tree... Done
 Calculating Upgrade... Done
 0 packages upgraded, 0 newly installed, 0 to remove and 0  not upgraded.

So no downgrade (nor anything else) took place.

Does anyone know what else might be affecting this, besides the contents
of /etc/apt/apt.conf and /etc/apt/preferences?

-- 
 Lloyd Zusman
 [EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: apt-get dist-upgrade doesn't downgrade to stable

2003-01-22 Thread Osamu Aoki
On Wed, Jan 22, 2003 at 11:08:09PM -0500, Lloyd Zusman wrote:
...
 testing system.  I followed the same steps as above, except replacing
 the string 'stable' with 'testing'.  Nevertheless, nothing got
 downgraded (see below for details).
 
 I know that I previously installed perl-5.8.0 from the 'unstable'
 distribution, and that it is my default perl interpreter (I can tell by
 running perl -V).  But the following did not do anything, and after
 these steps, I was still using perl-5.8.0 instead of perl-5.6.1 from
 'testing' ...
 
 contents of /etc/apt/preferences
 
  Package: *
  Pin: release a=testing
  Pin-Priority: 1001
 
 /etc/apt/apt.conf was completely deleted
 
 Then ...
 
  apt-get update  apt-get -t testing dist-upgrade
 ^^
 Why -t is set here
-t set priority of that testing to 990 overriding 1001
This is what went wrong.

  # apt-get update  apt-get dist-upgrade

This is what you needed :-)
-- 
~\^o^/~~~ ~\^.^/~~~ ~\^*^/~~~ ~\^_^/~~~ ~\^+^/~~~ ~\^:^/~~~ ~\^v^/~~~ +
Osamu Aoki [EMAIL PROTECTED]   Cupertino CA USA, GPG-key: A8061F32
 .''`.  Debian Reference: post-installation user's guide for non-developers
 : :' : http://qref.sf.net and http://people.debian.org/~osamu
 `. `'  Our Priorities are Our Users and Free Software --- Social Contract


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]