Bug#968257: release-notes: UpgradingToBuster: apt doesn't report how much space is needed, apt-get does

2020-08-11 Thread Braiam
Package: release-notes
Severity: normal

Dear Maintainer,

In "4.4.3. Make sure you have sufficient space for the upgrade" the first
code bloc shows using apt with Trivial-Only option to show how much space
is needed for the operation; but buster apt command does not show this string.
Using apt-get here would be correct.

-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'testing-debug'), (500,
'testing'), (50, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.7.0-1-amd64 (SMP w/12 CPU threads)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8), LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash



Bug#968257: release-notes: UpgradingToBuster: apt doesn't report how much space is needed, apt-get does

2020-08-12 Thread Justin B Rye
Braiam wrote:
> In "4.4.3. Make sure you have sufficient space for the upgrade" the first
> code bloc shows using apt with Trivial-Only option to show how much space
> is needed for the operation; but buster apt command does not show this string.

That is, the code-block has

 # apt -o APT::Get::Trivial-Only=true full-upgrade
 [ ... ]
 XXX upgraded, XXX newly installed, XXX to remove and XXX not upgraded.
 Need to get xx.xMB of archives.
 After this operation, AAAMB of additional disk space will be used.

I checked this on my desktop, and indeed it didn't say anything about
additional space being used; but in this particular case everything
had already been updated anyway.  When I booted up a spare buster test
machine that *did* have a minor update due it said:

 $ sudo apt -o APT::Get::Trivial-Only=true full-upgrade
 [sudo] password for jbr:
 Reading package lists... Done
 Building dependency tree   
 Reading state information... Done
 Calculating upgrade... Done
 The following packages will be upgraded:
   libjson-c3
 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
 Need to get 0 B/27.3 kB of archives.
 After this operation, 4,096 B of additional disk space will be used.
 E: Trivial Only specified but this is not a trivial operation.

So: are you sure?  Maybe when you say buster you really mean stretch,
which is the release we need to test these instructions on (but I no
longer have a stretch test machine handy).

> Using apt-get here would be correct.

Where *both* work we're trying to stick to apt.
-- 
JBR with qualifications in linguistics, experience as a Debian
sysadmin, and probably no clue about this particular package