Feature request: List executed commands in "Details"

Bug #2020140 reported by David Hedlund
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
update-manager (Ubuntu)
New
Wishlist
Unassigned

Bug Description

update-manager is listing if packages are downloaded, installed, and removed in the "Details" section, but the responsible commands (apt-get upgrade, apt-get dist-upgrade, apt autoremove, apt clean, apt full-upgrade, etc) for these actions are not listed in the section.

Please add them, so people can build scripts, and reproduce bugs, based on update-manager. This would be particular useful for Ubuntu Server, as it does not use a desktop environment by default as required by update-manager (the "graphical management of software packages updates").

ProblemType: Bug
DistroRelease: Ubuntu 23.04
Package: update-manager 1:23.04.2
ProcVersionSignature: Ubuntu 6.2.0-20.20-generic 6.2.6
Uname: Linux 6.2.0-20-generic x86_64
ApportVersion: 2.26.1-0ubuntu2
Aptdaemon:

Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: ubuntu:GNOME
Date: Fri May 19 00:47:10 2023
GsettingsChanges:
 b'com.ubuntu.update-manager' b'first-run' b'false'
 b'com.ubuntu.update-manager' b'launch-count' b'1'
 b'com.ubuntu.update-manager' b'launch-time' b'int64 1682649175'
InstallationDate: Installed on 2023-04-23 (25 days ago)
InstallationMedia: Ubuntu 23.04 "Lunar Lobster" - Release amd64 (20230418)
PackageArchitecture: all
ProcEnviron:
 LANG=en_US.UTF-8
 PATH=(custom, no user)
 SHELL=/bin/bash
 TERM=xterm-256color
 XDG_RUNTIME_DIR=<set>
SourcePackage: update-manager
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
David Hedlund (g-public) wrote :
Revision history for this message
David Hedlund (g-public) wrote :

Maintainers: Please change the "Importance" to "Wishlist"

Changed in update-manager (Ubuntu):
importance: Undecided → Wishlist
Revision history for this message
David Hedlund (g-public) wrote :

Thank you Brian.

Revision history for this message
Seth Arnold (seth-arnold) wrote :

I have trouble reading my way around the code, but it's possible that what you want may not actually exist; it's possible this program is issuing API calls that do the underlying work without executing higher-level commands like 'apt-get install' etc.

You can check with the execsnoop-bpfcc program from the bpfcc-tools package, but be forewarned it'll spit a *lot* of data, as the maintainer scripts are simple shell scripts that execute a lot of programs, repetitively.

Thanks

Revision history for this message
David Hedlund (g-public) wrote (last edit ):

Thank you very much for suggesting execsnoop-bpfcc, I'll try it.

I started this mailing-list thread in ubuntu-devel-discuss:

    update-manager: terminal-based version - https://lists.ubuntu.com/archives/ubuntu-devel-discuss/2023-May/019539.html

description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.