Discussion:
Processed: release-notes: Update apt upgrade guidance (Was: Re: Bug#977477: apt: Adding progression indication to apt-get output)
(too old to reply)
Debian Bug Tracking System
2020-12-15 15:20:02 UTC
Permalink
reassign -1 release-notes
Bug #977477 [apt] apt: Adding progression indication to apt-get output
Bug reassigned from package 'apt' to 'release-notes'.
No longer marked as found in versions apt/2.1.12.
Ignoring request to alter fixed versions of bug #977477 to the same values previously set
retitle -1 release-notes: Update apt upgrade guidance
Bug #977477 [release-notes] apt: Adding progression indication to apt-get output
Changed Bug title to 'release-notes: Update apt upgrade guidance' from 'apt: Adding progression indication to apt-get output'.
--
977477: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=977477
Debian Bug Tracking System
Contact ***@bugs.debian.org with problems
Samuel Thibault
2020-12-15 15:40:01 UTC
Permalink
The problem is that these are not equivalent: apt upgrade will attempt
to install additional packages required by newer versions of existing
packages. That can lead to conflicts/breaks with other existing
packages, and thus get into all the complexity that using apt-get
upgrade first avoids.
You mean that using apt upgrade upgrades more packages already, and
hence dist-upgrade has less conflicts?
No, I mean that apt upgrade will encounter more conflicts by trying to
install newer packages, which may break/conflict other old packages.
:D You can argue that in circles, you don't know which is going to be
better.
Whatever is "best" or "worse", what we want is that what users actually
use is what is documented and *tested*. If we fail that we'll continue
seeing users getting trapped into conflicts etc.
Of course people are free to apt upgrade --without-new-pkgs. The
optimal way to upgrade likely is
apt upgrade --without-new-pkgs
apt upgrade
apt full-upgrade
which is equivalent to
apt-get upgrade
apt-get upgrade --with-new-pkgs
apt-get dist-upgrade
Will the second step nicely behave in the case of a new package that
conflicts/breaks with an old already-installed package?
The problem is then that actual users end up in *other* situations than
what would typically be tested according to the release notes.
People should test apt for interactive systems, and apt-get for
non-interactive systems, as always.
I believe few developpers know this, and have their hands used to
apt-get, not apt. As shown by the release notes which document using
apt-get, not apt.
Enabling progress for apt-get - the legacy scripting frontend -
is a no-go. As is removing it from apt - the interactive user's
frontend.
So we'd rather make release-notes document using apt instead of
apt-get? I'm fine with that but we *ALSO* need to make sure that debian
developers actually *test* that path, and not the apt-get path.

Samuel
Paul Gevers
2021-03-16 21:20:02 UTC
Permalink
Control: tags -1 moreinfo

Hi Samuel,

On Tue, 15 Dec 2020 16:27:35 +0100 Samuel Thibault
Post by Samuel Thibault
So we'd rather make release-notes document using apt instead of
apt-get? I'm fine with that but we *ALSO* need to make sure that debian
developers actually *test* that path, and not the apt-get path.
Already the buster release notes talk about using apt instead of apt-get
and even has a note about the difference [1]. I'm not aware (but I don't
follow user facing help channels) that this has lead to problems that
would have been prevented with sticking to apt-get.

I agree apt should be tested, but I don't know how to fix that. What do
you propose we change in the release notes?

Paul

[1]
https://www.debian.org/releases/buster/amd64/release-notes/ch-upgrading.en.html#upgradingpackages
Samuel Thibault
2021-03-16 21:30:01 UTC
Permalink
Post by Paul Gevers
Post by Samuel Thibault
So we'd rather make release-notes document using apt instead of
apt-get? I'm fine with that but we *ALSO* need to make sure that debian
developers actually *test* that path, and not the apt-get path.
Already the buster release notes talk about using apt instead of apt-get
Mmm, actually no, it tells to use "apt-get upgrade"

https://www.debian.org/releases/buster/amd64/release-notes/ch-upgrading.en.html#minimal-upgrade

Possibly this should be turned to

"apt upgrade --without-new-pkgs"

?

Otherwise people will continue replacing apt-get with apt in "apt-get
upgrade" without knowing that they are really different, and get
upgrading bugs that maintainers that use "apt-get upgrade" (expectedly)
do not get.
Post by Paul Gevers
and even has a note about the difference [1]. I'm not aware (but I don't
follow user facing help channels) that this has lead to problems that
would have been prevented with sticking to apt-get.
I did see some users getting upgrading issues when running
"apt upgrade", while "apt-get upgrade" first would have solved them.

Samuel
Paul Gevers
2021-03-17 18:40:01 UTC
Permalink
Hi Samuel
Post by Samuel Thibault
Post by Paul Gevers
Post by Samuel Thibault
So we'd rather make release-notes document using apt instead of
apt-get? I'm fine with that but we *ALSO* need to make sure that debian
developers actually *test* that path, and not the apt-get path.
Already the buster release notes talk about using apt instead of apt-get
Mmm, actually no, it tells to use "apt-get upgrade"
https://www.debian.org/releases/buster/amd64/release-notes/ch-upgrading.en.html#minimal-upgrade
Possibly this should be turned to
"apt upgrade --without-new-pkgs"
?
Looking into history, I see we did this because of
https://bugs.debian.org/931637. I guess your suggestion is a better
alternative?

Paul
Samuel Thibault
2021-03-17 18:50:01 UTC
Permalink
Post by Paul Gevers
Post by Samuel Thibault
"apt upgrade --without-new-pkgs"
Looking into history, I see we did this because of
https://bugs.debian.org/931637. I guess your suggestion is a better
alternative?
It would probably fill both the objective of upgrading without new
packages, and letting users have a progression bar, yes.

Samuel
Paul Gevers
2021-03-18 11:10:01 UTC
Permalink
Hi Samuel, all
Post by Samuel Thibault
Post by Paul Gevers
Post by Samuel Thibault
"apt upgrade --without-new-pkgs"
Looking into history, I see we did this because of
https://bugs.debian.org/931637. I guess your suggestion is a better
alternative?
It would probably fill both the objective of upgrading without new
packages, and letting users have a progression bar, yes.
Sanity check, does the attached patch do what you mean? (I put Samuel as
the author, to give the credits).

Paul
Samuel Thibault
2021-03-18 11:10:01 UTC
Permalink
Hello,
Post by Paul Gevers
Post by Samuel Thibault
Post by Paul Gevers
Post by Samuel Thibault
"apt upgrade --without-new-pkgs"
Looking into history, I see we did this because of
https://bugs.debian.org/931637. I guess your suggestion is a better
alternative?
It would probably fill both the objective of upgrading without new
packages, and letting users have a progression bar, yes.
Sanity check, does the attached patch do what you mean?
Yes!

Samuel
Debian Bug Tracking System
2021-03-16 21:20:01 UTC
Permalink
tags -1 moreinfo
Bug #977477 [release-notes] release-notes: Update apt upgrade guidance
Added tag(s) moreinfo.
--
977477: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=977477
Debian Bug Tracking System
Contact ***@bugs.debian.org with problems
Debian Bug Tracking System
2021-03-18 20:40:02 UTC
Permalink
Your message dated Thu, 18 Mar 2021 21:28:12 +0100
with message-id <e02725dd-f2b9-d34a-a094-***@debian.org>
and subject line Re: Bug#977477: release-notes: Update apt upgrade guidance (Was: Re: Bug#977477: apt: Adding progression indication to apt-get output)
has caused the Debian Bug report #977477,
regarding release-notes: Update apt upgrade guidance
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ***@bugs.debian.org
immediately.)
--
977477: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=977477
Debian Bug Tracking System
Contact ***@bugs.debian.org with problems
Loading...