[Bug 2111333] [NEW] apt shows escapes-sequences when coloring output
Andrew Aitchison
2111333 at bugs.launchpad.net
Tue May 20 13:25:53 UTC 2025
Public bug reported:
# echo $TERM
xterm-256color
# apt show apt
ESC[1mPackage: ESC[0mESC[32maptESC[0m
ESC[1mVersion:ESC[0m 3.0.0
ESC[1mPriority:ESC[0m important
ESC[1mBuild-Essential:ESC[0m yes
ESC[1mSection:ESC[0m admin
ESC[1mOrigin:ESC[0m Ubuntu
ESC[1mMaintainer:ESC[0m Ubuntu Developers <ubuntu-devel-discuss at lists.ubuntu.com>
ESC[1mOriginal-Maintainer:ESC[0m APT Development Team <deity at lists.debian.org>
ESC[1mBugs:ESC[0m https://bugs.launchpad.net/ubuntu/+filebug
ESC[1mInstalled-Size: ESC[0m4,369 kB
ESC[1mProvides:ESC[0m apt-transport-https (= 3.0.0)
ESC[1mDepends:ESC[0m base-passwd (>= 3.6.1) | adduser, gpgv, libapt-pkg7.0 (>= 3.0.0), ubuntu-keyring, libc6 (>= 2.38), libgcc-s1 (>= 3.3.1), libseccomp2 (>= 2.4.2), libssl3t64 (>= 3.0.0), libstdc++6 (>= 13.1), libsystemd0
ESC[1mRecommends:ESC[0m ca-certificates
ESC[1mSuggests:ESC[0m apt-doc, aptitude | synaptic | wajig, dpkg-dev (>= 1.17.2), gnupg | gnupg2 | gnupg1, powermgmt-base
ESC[1mConflicts:ESC[0m apt-verify, libnettle8 (<< 3.9.1-2.2~)
ESC[1mBreaks:ESC[0m apt-transport-https (<< 1.5~alpha4~), apt-utils (<< 1.3~exp2~), aptitude (<< 0.8.10)
ESC[1mReplaces:ESC[0m apt-transport-https (<< 1.5~alpha4~), apt-utils (<< 1.3~exp2~)
ESC[1mTask:ESC[0m cloud-minimal, minimal, server-minimal
ESC[1mDownload-Size: ESC[0m1,440 kB
ESC[1mAPT-Manual-Installed: ESC[0myes
ESC[1mAPT-Sources: ESC[0mhttp://gb.archive.ubuntu.com/ubuntu plucky/main amd64 Packages
ESC[1mDescription: ESC[0mcommandline package manager
This package provides commandline tools for searching and managing as well
as querying information about packages as a low-level access to all
features of the libapt-pkg library.
.
These include:
* apt-get for retrieval of packages and information about them
from authenticated sources and for installation, upgrade and
removal of packages together with their dependencies
* apt-cache for querying available information about installed
as well as installable packages
* apt-cdrom to use removable media as a source for packages
* apt-config as an interface to the configuration settings
* apt-extracttemplates is used by debconf to prompt for configuration
questions before installation.
However with
APT_NO_COLOR=yes apt show apt
the output is monochrome but unpolluted.
ProblemType: Bug
DistroRelease: Ubuntu 25.04
Package: apt 3.0.0
ProcVersionSignature: Ubuntu 6.14.0-15.15-generic 6.14.0
Uname: Linux 6.14.0-15-generic x86_64
ApportVersion: 2.32.0-0ubuntu5
Architecture: amd64
CasperMD5CheckResult: unknown
Date: Tue May 20 14:15:59 2025
InstallationDate: Installed on 2018-12-01 (2362 days ago)
InstallationMedia: Lubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180426)
ProcEnviron:
LANG=en_GB.utf8
PATH=(custom, no user)
SHELL=/bin/bash
TERM=xterm
XDG_RUNTIME_DIR=<set>
SourcePackage: apt
UpgradeStatus: Upgraded to plucky on 2020-11-06 (1656 days ago)
modified.conffile..etc.logrotate.d.apt: [modified]
mtime.conffile..etc.logrotate.d.apt: 2025-02-09T08:57:34.172479
** Affects: apt (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug plucky
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apt in Ubuntu.
https://bugs.launchpad.net/bugs/2111333
Title:
apt shows escapes-sequences when coloring output
Status in apt package in Ubuntu:
New
Bug description:
# echo $TERM
xterm-256color
# apt show apt
ESC[1mPackage: ESC[0mESC[32maptESC[0m
ESC[1mVersion:ESC[0m 3.0.0
ESC[1mPriority:ESC[0m important
ESC[1mBuild-Essential:ESC[0m yes
ESC[1mSection:ESC[0m admin
ESC[1mOrigin:ESC[0m Ubuntu
ESC[1mMaintainer:ESC[0m Ubuntu Developers <ubuntu-devel-discuss at lists.ubuntu.com>
ESC[1mOriginal-Maintainer:ESC[0m APT Development Team <deity at lists.debian.org>
ESC[1mBugs:ESC[0m https://bugs.launchpad.net/ubuntu/+filebug
ESC[1mInstalled-Size: ESC[0m4,369 kB
ESC[1mProvides:ESC[0m apt-transport-https (= 3.0.0)
ESC[1mDepends:ESC[0m base-passwd (>= 3.6.1) | adduser, gpgv, libapt-pkg7.0 (>= 3.0.0), ubuntu-keyring, libc6 (>= 2.38), libgcc-s1 (>= 3.3.1), libseccomp2 (>= 2.4.2), libssl3t64 (>= 3.0.0), libstdc++6 (>= 13.1), libsystemd0
ESC[1mRecommends:ESC[0m ca-certificates
ESC[1mSuggests:ESC[0m apt-doc, aptitude | synaptic | wajig, dpkg-dev (>= 1.17.2), gnupg | gnupg2 | gnupg1, powermgmt-base
ESC[1mConflicts:ESC[0m apt-verify, libnettle8 (<< 3.9.1-2.2~)
ESC[1mBreaks:ESC[0m apt-transport-https (<< 1.5~alpha4~), apt-utils (<< 1.3~exp2~), aptitude (<< 0.8.10)
ESC[1mReplaces:ESC[0m apt-transport-https (<< 1.5~alpha4~), apt-utils (<< 1.3~exp2~)
ESC[1mTask:ESC[0m cloud-minimal, minimal, server-minimal
ESC[1mDownload-Size: ESC[0m1,440 kB
ESC[1mAPT-Manual-Installed: ESC[0myes
ESC[1mAPT-Sources: ESC[0mhttp://gb.archive.ubuntu.com/ubuntu plucky/main amd64 Packages
ESC[1mDescription: ESC[0mcommandline package manager
This package provides commandline tools for searching and managing as well
as querying information about packages as a low-level access to all
features of the libapt-pkg library.
.
These include:
* apt-get for retrieval of packages and information about them
from authenticated sources and for installation, upgrade and
removal of packages together with their dependencies
* apt-cache for querying available information about installed
as well as installable packages
* apt-cdrom to use removable media as a source for packages
* apt-config as an interface to the configuration settings
* apt-extracttemplates is used by debconf to prompt for configuration
questions before installation.
However with
APT_NO_COLOR=yes apt show apt
the output is monochrome but unpolluted.
ProblemType: Bug
DistroRelease: Ubuntu 25.04
Package: apt 3.0.0
ProcVersionSignature: Ubuntu 6.14.0-15.15-generic 6.14.0
Uname: Linux 6.14.0-15-generic x86_64
ApportVersion: 2.32.0-0ubuntu5
Architecture: amd64
CasperMD5CheckResult: unknown
Date: Tue May 20 14:15:59 2025
InstallationDate: Installed on 2018-12-01 (2362 days ago)
InstallationMedia: Lubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180426)
ProcEnviron:
LANG=en_GB.utf8
PATH=(custom, no user)
SHELL=/bin/bash
TERM=xterm
XDG_RUNTIME_DIR=<set>
SourcePackage: apt
UpgradeStatus: Upgraded to plucky on 2020-11-06 (1656 days ago)
modified.conffile..etc.logrotate.d.apt: [modified]
mtime.conffile..etc.logrotate.d.apt: 2025-02-09T08:57:34.172479
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/2111333/+subscriptions
More information about the foundations-bugs
mailing list