Bug#825742: apt: Should not say "Use 'sudo …" if I run "apt …" from a root shell spawned with "sudo -i"
Package: apt
Version: 1.2.12
Severity: minor
Hi,
this happened today to me:
# apt-get dist-upgrade --download-only
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
[…]
Use 'sudo apt autoremove' to remove them.
[…]
apt doesn't seem to make if a difference if it is run with "sudo apt" or
directly from a root shell spawned with "sudo -i".
(Yes, I know this is really minor, but I'd consider it nice to
have. Feel free to change the severity to wishlist or close it as
wontfix in case it's more effort than gain. :-)
-- Package-specific info:
-- (/etc/apt/preferences present, but not submitted) --
-- (/etc/apt/sources.list present, but not submitted) --
-- System Information:
Debian Release: stretch/sid
APT prefers unstable
APT policy: (990, 'unstable'), (980, 'unstable-debug'), (600, 'testing'), (111, 'buildd-unstable'), (111, 'buildd-experimental'), (110, 'experimental'), (105, 'experimental-debug')
Architecture: amd64 (x86_64)
Kernel: Linux 4.6.0-trunk-amd64 (SMP w/4 CPU cores)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages apt depends on:
ii adduser 3.114
ii debian-archive-keyring 2014.3
ii gnupg 1.4.20-6
ii gnupg2 2.1.11-7
ii gpgv 1.4.20-6
ii init-system-helpers 1.33
ii libapt-pkg5.0 1.2.12
ii libc6 2.22-9
ii libgcc1 1:6.1.1-4
ii libstdc++6 6.1.1-4
apt recommends no packages.
Versions of packages apt suggests:
ii apt-doc 1.2.12
ii aptitude 0.8.1-1
ii dpkg-dev 1.18.7
ii python-apt 1.1.0~beta2
ii synaptic 0.83+b1
ii wajig 2.17
-- Configuration Files:
/etc/apt/apt.conf.d/01autoremove changed:
APT
{
NeverAutoRemove
{
"^firmware-linux.*";
"^linux-firmware$";
};
VersionedKernelPackages
{
# linux kernels
"linux-image";
"linux-headers";
"linux-image-extra";
"linux-signed-image";
# kfreebsd kernels
"kfreebsd-image";
"kfreebsd-headers";
# hurd kernels
"gnumach-image";
# (out-of-tree) modules
".*-modules";
".*-kernel";
"linux-backports-modules-.*";
# tools
"linux-tools";
};
Never-MarkAuto-Sections
{
};
Move-Autobit-Sections
{
"oldlibs";
"contrib/oldlibs";
"non-free/oldlibs";
"restricted/oldlibs";
"universe/oldlibs";
"multiverse/oldlibs";
};
};
-- no debconf information
Reply to: