Warning: W:Unable to read /var/lib/ubuntu-advantage/apt-esm/etc/apt/apt.conf.d/ - DirectoryExists (2: No such file or directory)

Bug #2064624 reported by Nobuto Murata
24
This bug affects 5 people
Affects Status Importance Assigned to Milestone
ubuntu-advantage-tools (Ubuntu)
Fix Committed
High
Unassigned

Bug Description

The following warnings are visible out of the box.

/usr/lib/python3/dist-packages/uaclient/apt.py:288: Warning: W:Unable to read /var/lib/ubuntu-advantage/apt-esm/etc/apt/apt.conf.d/ - DirectoryExists (2: No such file or directory)
  apt_pkg.init()
/usr/lib/python3/dist-packages/uaclient/apt.py:270: Warning: W:Unable to read /var/lib/ubuntu-advantage/apt-esm/etc/apt/preferences.d/ - DirectoryExists (2: No such file or directory)
  apt_pkg.init_system()

$ apt policy ubuntu-pro-client
ubuntu-pro-client:
  Installed: 31.2.3
  Candidate: 31.2.3
  Version table:
 *** 31.2.3 500
        500 http://archive.ubuntu.com/ubuntu noble/main amd64 Packages
        100 /var/lib/dpkg/status

$ pro security-status
/usr/lib/python3/dist-packages/uaclient/apt.py:288: Warning: W:Unable to read /var/lib/ubuntu-advantage/apt-esm/etc/apt/apt.conf.d/ - DirectoryExists (2: No such file or directory)
  apt_pkg.init()
/usr/lib/python3/dist-packages/uaclient/apt.py:270: Warning: W:Unable to read /var/lib/ubuntu-advantage/apt-esm/etc/apt/preferences.d/ - DirectoryExists (2: No such file or directory)
  apt_pkg.init_system()
598 packages installed:
    597 packages from Ubuntu Main/Restricted repository
    1 package from Ubuntu Universe/Multiverse repository

To get more information about the packages, run
    pro security-status --help
for a list of available options.

This machine is receiving security patching for Ubuntu Main/Restricted
repository until 2029.
This machine is NOT attached to an Ubuntu Pro subscription.

Ubuntu Pro with 'esm-infra' enabled provides security updates for
Main/Restricted packages until 2034.

Ubuntu Pro with 'esm-apps' enabled provides security updates for
Universe/Multiverse packages until 2034.

Try Ubuntu Pro with a free personal subscription on up to 5 machines.
Learn more at https://ubuntu.com/pro

$ tree /var/lib/ubuntu-advantage/apt-esm/etc/
/var/lib/ubuntu-advantage/apt-esm/etc/
└── apt
    ├── sources.list
    └── sources.list.d
        └── ubuntu-esm-apps.sources

3 directories, 2 files

ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: ubuntu-pro-client 31.2.3
ProcVersionSignature: User Name 6.8.0-31.31-generic 6.8.1
Uname: Linux 6.8.0-31-generic x86_64
ApportVersion: 2.28.1-0ubuntu2
Architecture: amd64
CasperMD5CheckResult: unknown
CloudArchitecture: x86_64
CloudBuildName: server
CloudID: lxd
CloudName: lxd
CloudPlatform: lxd
CloudSerial: 20240423
CloudSubPlatform: LXD socket API v. 1.0 (/dev/lxd/sock)
Date: Thu May 2 13:28:48 2024
ProcEnviron:
 LANG=C.UTF-8
 PATH=(custom, no user)
 SHELL=/bin/bash
 TERM=xterm-256color
 XDG_RUNTIME_DIR=<set>
SourcePackage: ubuntu-advantage-tools
UpgradeStatus: No upgrade log present (probably fresh install)
apparmor_logs.txt:

cloud-id.txt: lxd
livepatch-status.txt-error: Invalid command specified '/snap/bin/canonical-livepatch status'.
uaclient.conf:
 contract_url: https://contracts.canonical.com
 log_level: debug

Revision history for this message
Nobuto Murata (nobuto) wrote :
information type: Private → Public
tags: removed: need-amd64-retrace
Revision history for this message
Grant Orndorff (orndorffgrant) wrote :

Thanks Nobuto!

First reported here: https://github.com/canonical/ubuntu-pro-client/issues/3060

Fixed upstream and to be released in v32 of ubuntu-pro-client in mid May (See LP: 2060732 for overall SRU bug)

Changed in ubuntu-advantage-tools (Ubuntu):
status: New → Fix Committed
importance: Undecided → High
Revision history for this message
Davide (sblantipodi) wrote :

may I ask when this bugfix will be released please? thanks

Revision history for this message
Grant Orndorff (orndorffgrant) wrote :

Hello Davide,

It is currently in -proposed, and scheduled to be released to -updates early next week.

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.