Public bug reported:

After the most recent upgrade of ubuntu-advantage-tools/ubuntu-pro-
client (34~22.04), running apt upgrade --simulate (as non-root) prints
the following:

```
NOTE: This is only a simulation!
      apt needs root privileges for real execution.
      Keep also in mind that locking is deactivated,
      so don't depend on the relevance to the real current situation!
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
/bin/sh: 1: cannot create /var/log/ubuntu-advantage-apt-hook.log: Permission 
denied
/bin/sh: 1: cannot create /var/log/ubuntu-advantage-apt-hook.log: Permission 
denied
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
/bin/sh: 1: cannot create /var/log/ubuntu-advantage-apt-hook.log: Permission 
denied
/bin/sh: 1: cannot create /var/log/ubuntu-advantage-apt-hook.log: Permission 
denied
```

It appears to be caused by `/etc/apt/apt.conf.d/20apt-esm-hook.conf`,
which indiscriminately tries to write to the log file. This is not
critical, but clutters the output of the command. Please get rid of
this.

** Affects: ubuntu-advantage-tools (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2084677

Title:
  apt upgrade --simulate prints permission denied because ubuntu-
  advantage-apt-hook.log ist not accessible

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/2084677/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to